Skip to content

fix(config-api): added asset validation and pagination, removed redundant fields for TR, agama swagger spec #8582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ad74527
fix(config-api): user attribute validation error handling
pujavs Apr 25, 2024
1ed77f2
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Apr 26, 2024
1e18060
fix(config-api): user attribute validation error handling
pujavs Apr 26, 2024
a25977c
fix(config-api): user attribute validation error handling
pujavs Apr 26, 2024
483ff35
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Apr 29, 2024
aae1be8
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Apr 30, 2024
8319446
fix: added new IDP attributes
pujavs Apr 30, 2024
d608621
fix: added new IDP attributes
pujavs Apr 30, 2024
2c25eb5
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs May 14, 2024
670d488
fix(config-api): idp default values set
pujavs May 15, 2024
9d265d8
fix(config-api): set important fields while configuring IDP to fix au…
pujavs May 15, 2024
42a5cd5
fix(config-api): idp metadata default values issue#8384
pujavs May 16, 2024
706eef0
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs May 17, 2024
6a386e6
feat: idp metadata default value and removing filepath in document-store
pujavs May 17, 2024
3e4b45c
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs May 17, 2024
f942fe0
feat: idp metadata default value and removing filepath in document-store
pujavs May 17, 2024
fd2de6d
fix: assetmgt and idp changes
pujavs May 17, 2024
e7aa37e
fix: assetmgt and idp changes
pujavs May 17, 2024
82ab7f5
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs May 20, 2024
91bb2cd
fix(config-api): validation for imp fields of asset mgt
pujavs May 20, 2024
461dffb
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs May 21, 2024
a54a3ba
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs May 22, 2024
a51306f
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs May 23, 2024
7868af9
feat(config-api): pagination for get asset by name, asset filename an…
pujavs May 23, 2024
c344079
fix(config-api): added asset validation, removed redundant fields for TR
pujavs May 24, 2024
899625d
fix(config-api): agama swagger spec changes
pujavs May 24, 2024
aa8b58a
fix(config-api): agama swagger spec changes
pujavs May 24, 2024
c0c8f2b
fix(config-api): added asset validation, removed redundant fields for TR
pujavs May 24, 2024
cff488a
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs May 24, 2024
7ef4699
fix(config-api): added asset validation, removed redundant fields for TR
pujavs May 24, 2024
755c38a
fix(config-api): added asset validation, removed redundant fields for TR
pujavs May 24, 2024
91f2af7
Merge branch 'main' into jans-config-fix
yuriyz May 24, 2024
72a2e46
Merge branch 'main' into jans-config-fix
devrimyatar May 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,39 @@ public class AssetMgtConfiguration {
*/
private boolean assetServerUploadEnabled;

/**
* Flag indicating if file extension validation is enabled
*/
private boolean fileExtensionValidationEnabled;

/**
* Flag indicating if service module name extension validation is enabled
*/
private boolean moduleNameValidationEnabled;

/**
* Base directory on server to upload the asset
*/
private String assetBaseDirectory;

/**
* List of supported service module where asset can be uploaded
*/
private List<String> jansModules;

/**
* Asset type mapped to server directory
*/
private List<AssetDirMapping> assetDirMapping;



public boolean isAssetMgtEnabled() {
return assetMgtEnabled;
}

public void setAssetMgtEnabled(boolean assetMgtEnabled) {
this.assetMgtEnabled = assetMgtEnabled;
}

public boolean isAssetServerUploadEnabled() {
return assetServerUploadEnabled;
}
Expand All @@ -43,6 +57,22 @@ public void setAssetServerUploadEnabled(boolean assetServerUploadEnabled) {
this.assetServerUploadEnabled = assetServerUploadEnabled;
}

public boolean isFileExtensionValidationEnabled() {
return fileExtensionValidationEnabled;
}

public void setFileExtensionValidationEnabled(boolean fileExtensionValidationEnabled) {
this.fileExtensionValidationEnabled = fileExtensionValidationEnabled;
}

public boolean isModuleNameValidationEnabled() {
return moduleNameValidationEnabled;
}

public void setModuleNameValidationEnabled(boolean moduleNameValidationEnabled) {
this.moduleNameValidationEnabled = moduleNameValidationEnabled;
}

public String getAssetBaseDirectory() {
return assetBaseDirectory;
}
Expand All @@ -51,6 +81,14 @@ public void setAssetBaseDirectory(String assetBaseDirectory) {
this.assetBaseDirectory = assetBaseDirectory;
}

public List<String> getJansModules() {
return jansModules;
}

public void setJansModules(List<String> jansModules) {
this.jansModules = jansModules;
}

public List<AssetDirMapping> getAssetDirMapping() {
return assetDirMapping;
}
Expand All @@ -62,8 +100,9 @@ public void setAssetDirMapping(List<AssetDirMapping> assetDirMapping) {
@Override
public String toString() {
return "AssetMgtConfiguration [assetMgtEnabled=" + assetMgtEnabled + ", assetServerUploadEnabled="
+ assetServerUploadEnabled + ", assetBaseDirectory=" + assetBaseDirectory + ", assetDirMapping="
+ assetDirMapping + "]";
+ assetServerUploadEnabled + ", fileExtensionValidationEnabled=" + fileExtensionValidationEnabled
+ ", moduleNameValidationEnabled=" + moduleNameValidationEnabled + ", assetBaseDirectory="
+ assetBaseDirectory + ", jansModules=" + jansModules + ", assetDirMapping=" + assetDirMapping + "]";
}

}
78 changes: 54 additions & 24 deletions jans-config-api/docs/jans-config-api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ paths:
type: string
- name: autoconfigure
in: query
description: 'Boolean value to indicating to auto configure the project '
schema:
type: string
requestBody:
description: Agama gama file
content:
application/zip:
schema:
Expand Down Expand Up @@ -355,6 +357,8 @@ paths:
schema:
type: string
requestBody:
description: "Agama flow config, key is `name` of config property and `value`\
\ is the property value. "
content:
application/json:
schema:
Expand Down Expand Up @@ -395,11 +399,13 @@ paths:
parameters:
- name: start
in: query
description: Start index for the result
schema:
type: integer
format: int32
- name: count
in: query
description: Search size - count of the results to return
schema:
type: integer
format: int32
Expand Down Expand Up @@ -574,7 +580,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/PagedResult'
$ref: '#/components/schemas/DocumentPagedResult'
examples:
Response example:
description: Response example
Expand Down Expand Up @@ -659,7 +665,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/PagedResult'
$ref: '#/components/schemas/DocumentPagedResult'
examples:
Response example:
description: Response example
Expand Down Expand Up @@ -8063,17 +8069,6 @@ components:
type: string
description:
type: string
AssetForm:
required:
- assetFile
- document
type: object
properties:
document:
$ref: '#/components/schemas/Document'
assetFile:
type: string
format: binary
Document:
type: object
properties:
Expand Down Expand Up @@ -8106,6 +8101,33 @@ components:
type: string
baseDn:
type: string
DocumentPagedResult:
type: object
properties:
start:
type: integer
format: int32
totalEntriesCount:
type: integer
format: int32
entriesCount:
type: integer
format: int32
entries:
type: array
items:
$ref: '#/components/schemas/Document'
AssetForm:
required:
- assetFile
- document
type: object
properties:
document:
$ref: '#/components/schemas/Document'
assetFile:
type: string
format: binary
AttributeValidation:
type: object
properties:
Expand Down Expand Up @@ -8219,19 +8241,19 @@ components:
type: string
selected:
type: boolean
userCanView:
whitePagesCanView:
type: boolean
adminCanView:
userCanEdit:
type: boolean
adminCanEdit:
type: boolean
userCanEdit:
userCanView:
type: boolean
adminCanAccess:
adminCanView:
type: boolean
userCanAccess:
type: boolean
whitePagesCanView:
adminCanAccess:
type: boolean
baseDn:
type: string
Expand Down Expand Up @@ -9057,8 +9079,6 @@ components:
type: boolean
lockMessageConfig:
$ref: '#/components/schemas/LockMessageConfig'
fapi:
type: boolean
allResponseTypesSupported:
uniqueItems: true
type: array
Expand All @@ -9068,6 +9088,8 @@ components:
- code
- token
- id_token
fapi:
type: boolean
AuthenticationFilter:
required:
- baseDn
Expand Down Expand Up @@ -9946,8 +9968,16 @@ components:
type: boolean
assetServerUploadEnabled:
type: boolean
fileExtensionValidationEnabled:
type: boolean
moduleNameValidationEnabled:
type: boolean
assetBaseDirectory:
type: string
jansModules:
type: array
items:
type: string
assetDirMapping:
type: array
items:
Expand Down Expand Up @@ -10109,14 +10139,14 @@ components:
type: boolean
internal:
type: boolean
locationPath:
type: string
locationType:
type: string
enum:
- ldap
- db
- file
locationPath:
type: string
baseDn:
type: string
ScriptError:
Expand Down Expand Up @@ -10545,10 +10575,10 @@ components:
ttl:
type: integer
format: int32
opbrowserState:
type: string
persisted:
type: boolean
opbrowserState:
type: string
SessionIdAccessMap:
type: object
properties:
Expand Down
9 changes: 0 additions & 9 deletions jans-config-api/plugins/docs/kc-saml-plugin-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1135,14 +1135,8 @@ components:
maxLength: 4000
minLength: 0
type: string
rootUrl:
type: string
adminUrl:
type: string
baseUrl:
type: string
surrogateAuthRequired:
type: boolean
enabled:
type: boolean
alwaysDisplayInConsole:
Expand Down Expand Up @@ -1174,9 +1168,6 @@ components:
type: array
items:
type: string
url:
pattern: "^(https?|http)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
type: string
spLogoutURL:
pattern: "^$|(^(https?|http)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|])"
type: string
Expand Down
10 changes: 5 additions & 5 deletions jans-config-api/plugins/docs/lock-plugin-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ components:
type: string
externalLoggerConfiguration:
type: string
metricChannel:
type: string
metricReporterInterval:
type: integer
format: int32
Expand All @@ -132,15 +130,17 @@ components:
format: int32
opaConfiguration:
$ref: '#/components/schemas/OpaConfiguration'
pdpType:
messageConsumerType:
type: string
policyConsumerType:
type: string
policiesJsonUrisAuthorizationToken:
policiesJsonUrisAccessToken:
type: string
policiesJsonUris:
type: array
items:
type: string
policiesZipUrisAuthorizationToken:
policiesZipUrisAccessToken:
type: string
policiesZipUris:
type: array
Expand Down
Loading