From 8319c471620d88a76a787957893b2a340addec3d Mon Sep 17 00:00:00 2001 From: pujavs <43700552+pujavs@users.noreply.github.com> Date: Wed, 15 Jan 2025 00:32:23 +0530 Subject: [PATCH] test(config-api) token test case failure (#10620) * feat(config-api): default ACR methods issue#10511 Signed-off-by: pujavs * feat(config-api): agama flow acr method * fix(config-api): setting agama flow as auth method Signed-off-by: pujavs * test(config-api) token test case failure #10619 Signed-off-by: pujavs * test(config-api) token test case failure #10619 Signed-off-by: pujavs --------- Signed-off-by: pujavs --- .../docs/jans-config-api-swagger.yaml | 14 +++--- .../plugins/docs/fido2-plugin-swagger.yaml | 45 ++++++++++++------- .../feature/mgt/user/user-patch.json | 27 ----------- .../feature/token/client-token.feature | 2 +- 4 files changed, 36 insertions(+), 52 deletions(-) diff --git a/jans-config-api/docs/jans-config-api-swagger.yaml b/jans-config-api/docs/jans-config-api-swagger.yaml index 69e873ce172..cd7007ba939 100644 --- a/jans-config-api/docs/jans-config-api-swagger.yaml +++ b/jans-config-api/docs/jans-config-api-swagger.yaml @@ -9337,19 +9337,19 @@ components: type: string selected: type: boolean - whitePagesCanView: + adminCanEdit: + type: boolean + adminCanView: type: boolean userCanView: type: boolean userCanEdit: type: boolean - userCanAccess: - type: boolean adminCanAccess: type: boolean - adminCanEdit: + userCanAccess: type: boolean - adminCanView: + whitePagesCanView: type: boolean baseDn: type: string @@ -10211,6 +10211,8 @@ components: type: boolean lockMessageConfig: $ref: '#/components/schemas/LockMessageConfig' + fapi: + type: boolean allResponseTypesSupported: uniqueItems: true type: array @@ -10220,8 +10222,6 @@ components: - code - token - id_token - fapi: - type: boolean AuthenticationFilter: required: - baseDn diff --git a/jans-config-api/plugins/docs/fido2-plugin-swagger.yaml b/jans-config-api/plugins/docs/fido2-plugin-swagger.yaml index 0859f6b93a1..5384db0df26 100644 --- a/jans-config-api/plugins/docs/fido2-plugin-swagger.yaml +++ b/jans-config-api/plugins/docs/fido2-plugin-swagger.yaml @@ -560,12 +560,8 @@ components: type: array items: type: string - superGluuEnabled: - type: boolean sessionIdPersistInCache: type: boolean - oldU2fMigrationEnabled: - type: boolean errorReasonEnabled: type: boolean fido2Configuration: @@ -583,38 +579,53 @@ components: type: string checkU2fAttestations: type: boolean - userAutoEnrollment: + debugUserAutoEnrollment: type: boolean unfinishedRequestExpiration: type: integer format: int32 - authenticationHistoryExpiration: + metadataRefreshInterval: type: integer format: int32 serverMetadataFolder: type: string - requestedCredentialTypes: + enabledFidoAlgorithms: type: array items: type: string - requestedParties: + metadataServers: type: array items: - $ref: '#/components/schemas/RequestedParty' - metadataUrlsProvider: - type: string - skipDownloadMdsEnabled: - type: boolean - skipValidateMdsInAttestationEnabled: + $ref: '#/components/schemas/MetadataServer' + disableMetadataService: type: boolean - assertionOptionsGenerateEndpointEnabled: + hints: + type: array + items: + type: string + enterpriseAttestation: type: boolean + attestationMode: + type: string + rp: + type: array + items: + $ref: '#/components/schemas/RequestedParty' + MetadataServer: + type: object + properties: + url: + type: string + certificateDocumentInum: + type: array + items: + type: string RequestedParty: type: object properties: - name: + id: type: string - domains: + origins: type: array items: type: string diff --git a/jans-config-api/plugins/user-mgt-plugin/src/test/resources/feature/mgt/user/user-patch.json b/jans-config-api/plugins/user-mgt-plugin/src/test/resources/feature/mgt/user/user-patch.json index eef49548448..bb5db8eb5db 100644 --- a/jans-config-api/plugins/user-mgt-plugin/src/test/resources/feature/mgt/user/user-patch.json +++ b/jans-config-api/plugins/user-mgt-plugin/src/test/resources/feature/mgt/user/user-patch.json @@ -8,33 +8,6 @@ ], "value": true, "displayValue": true - }, - { - "name": "secretAnswer", - "multiValued": false, - "values": [ - "james-bond@123" - ], - "value": "james-bond@123", - "displayValue": "james-bond@123" - }, - { - "name": "jansImsValue", - "multiValued": true, - "values": [{ - "value": "123456", - "display": "Home phone", - "type": "home", - "primary": true - }, - { - "value": "9821789", - "display": "Work phone", - "type": "work", - "primary": false - } - - ] } ] } \ No newline at end of file diff --git a/jans-config-api/server/src/test/resources/feature/token/client-token.feature b/jans-config-api/server/src/test/resources/feature/token/client-token.feature index edb945da958..01539195a80 100644 --- a/jans-config-api/server/src/test/resources/feature/token/client-token.feature +++ b/jans-config-api/server/src/test/resources/feature/token/client-token.feature @@ -8,7 +8,7 @@ Background: Scenario: Fetch all client token Given url mainUrl When method GET -Then status 401 +Then status 404 And print response @ignore