From a8b8d76640ff6520a462ff2bb477db50c2b60207 Mon Sep 17 00:00:00 2001 From: pujavs <43700552+pujavs@users.noreply.github.com> Date: Fri, 5 Aug 2022 19:20:01 +0530 Subject: [PATCH] feat(jans-config-api): Scope object changes for creator details (#2033) * bug(jans-config-api): fixed swagger format issue * fix(jans-config-api): fixed due to couchbase clustter change * feat(jans-config-api): new endpoint to get UmaResource based on associatedClient * fix(jans-config-api): swagger spec fix for client attributes * fix(jans-config-api): reverted the local test properties * test(jans-config-api): commented test case * feat(jans-config-api): scim config endpoint enhancment * feat(jans-config-api): swagger and DTO change for new fields for scim config endpoint * feat(jans-config-api): swagger and DTO change for new fields for scim config endpoint * fix(jans-config-api): rectified endpoint url in swagger spec for uma resource * feat(jans-config-api): agama endpoint fixes * fix(jans-config-api): agama endpoint enhancements * fix(jans-config-api): fixed swagger spec for Uma Resource delete * fix(jans-config-api): agama endpoint enhancements * fix(jans-config-api): agama endpoint enhancements * fix(jans-config-api): agama endpoint enhancements * fix(jans-config-api): agama endpoint enhancements * fix(jans-config-api): agama endpoint enhancements * feat(jans-config-api): agama patch endpoint * feat(jans-config-api): agama patch endpoint * feat(jans-config-api): agama patch endpoint * feat(jans-config-api): Scope object changes for creator details * feat(jans-config-api): Scope object changes for creator details --- .../docs/jans-config-api-swagger.yaml | 28 +++++++++++++++++-- .../profiles/local/test.properties | 4 +-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/jans-config-api/docs/jans-config-api-swagger.yaml b/jans-config-api/docs/jans-config-api-swagger.yaml index b248078b1b4..de80ccdef1b 100644 --- a/jans-config-api/docs/jans-config-api-swagger.yaml +++ b/jans-config-api/docs/jans-config-api-swagger.yaml @@ -5071,7 +5071,7 @@ components: description: Enable/Disable usage of highest level script in case ACR script does not exist. agamaConfiguration: type: object - desciption: Engine Config which offers an alternative way to build authentication flows in Janssen server + description: Engine Config which offers an alternative way to build authentication flows in Janssen server $ref: '#/components/schemas/EngineConfig' GluuAttribute: @@ -5273,14 +5273,32 @@ components: type: object description: ScopeAttributes properties: - spontaneousClientId: - type: string spontaneousClientScopes: type: array items: type: string showInConfigurationEndpoint: type: boolean + creatorId: + description: Id of the scope creator. If creator is client then client_id if user then user_id + type: string + creatorType: + description: Scope creator type + type: string + enum: + - NONE + - CLIENT + - USER + - AUTO + creationDate: + description: Scope creation date time. + type: string + format: date + creatorAttributes: + description: Stores creator attributes + type: object + additionalProperties: + type: string umaType: description: Specifies if the scope is of type UMA. type: boolean @@ -5293,6 +5311,9 @@ components: description: Expiry date of the Scope. type: string format: date + + + ExtendedScope: allOf: # Combines the Scope and the inline model - $ref: '#/components/schemas/Scope' @@ -5304,6 +5325,7 @@ components: type: array items: $ref: '#/components/schemas/Client' + CustomAttribute: title: CustomAttribute description: Attribute. diff --git a/jans-config-api/profiles/local/test.properties b/jans-config-api/profiles/local/test.properties index fea5d396a4c..763fc6813ac 100644 --- a/jans-config-api/profiles/local/test.properties +++ b/jans-config-api/profiles/local/test.properties @@ -4,6 +4,6 @@ test.scopes=https://jans.io/oauth/config/acrs.readonly https://jans.io/oauth/con # jans.server token.endpoint=https://jans.server1/jans-auth/restv1/token token.grant.type=client_credentials -test.client.id=1800.c3d63983-6883-438d-b974-38348645de42 -test.client.secret=QzZFg9RnQjSP +test.client.id=1800.e9131b86-f39f-421c-9dde-b7f90c21a2fe +test.client.secret=zur7eMIXyDTu test.issuer=https://jans.server1 \ No newline at end of file