jans
jans copied to clipboard
fix (jans-config-api) : some scopes are not saving while OIDC client registration
Steps to Reproduce:
- Execute the below endpoint for OIDC client registration
POSThttps://admin-ui-test.gluu.org/jans-config-api/api/v1/openid/clients
Reqyest body
{
"clientName": "test1234",
"description": "test1234",
"expirable": [],
"softwareSection": false,
"cibaSection": false,
"backchannelUserCodeParameter": false,
"redirectUris": [
"https://abc,com"
],
"claimRedirectUris": [],
"authorizedOrigins": [],
"requestUris": [],
"postLogoutRedirectUris": [],
"responseTypes": [],
"grantTypes": [],
"scopes": [
"inum=43F1,ou=scopes,o=jans",
"inum=C17A,ou=scopes,o=jans",
"inum=764C,ou=scopes,o=jans"
],
"attributes": {
"tlsClientAuthSubjectDn": null,
"runIntrospectionScriptBeforeAccessTokenAsJwtCreationAndIncludeClaims": false,
"keepClientAuthorizationAfterExpiration": false,
"allowSpontaneousScopes": false,
"backchannelLogoutSessionRequired": false,
"backchannelLogoutUri": [],
"rptClaimsScripts": [],
"consentGatheringScripts": [],
"spontaneousScopeScriptDns": [],
"introspectionScripts": [],
"postAuthnScripts": [],
"additionalAudience": [],
"spontaneousScopes": [],
"redirectUrisRegex": "",
"parLifetime": "",
"requirePar": false,
"jansDefaultPromptLogin": false,
"authorizedAcrValues": [],
"updateTokenScriptDns": [],
"ropcScripts": [],
"jansAuthSignedRespAlg": "",
"jansAuthEncRespAlg": "",
"jansAuthEncRespEnc": ""
},
"tlsClientAuthSubjectDn": null,
"frontChannelLogoutSessionRequired": false,
"runIntrospectionScriptBeforeAccessTokenAsJwtCreationAndIncludeClaims": false,
"backchannelLogoutSessionRequired": false,
"keepClientAuthorizationAfterExpiration": false,
"allowSpontaneousScopes": false,
"spontaneousScopes": [],
"introspectionScripts": [],
"spontaneousScopeScriptDns": [],
"consentGatheringScripts": [],
"redirectUrisRegex": "",
"parLifetime": "",
"requirePar": false,
"updateTokenScriptDns": [],
"ropcScripts": [],
"jansAuthSignedRespAlg": "",
"jansAuthEncRespAlg": "",
"jansAuthEncRespEnc": "",
"postAuthnScripts": [],
"rptClaimsScripts": [],
"additionalAudience": [],
"backchannelLogoutUri": [],
"jansDefaultPromptLogin": false,
"authorizedAcrValues": [],
"customObjectClasses": [],
"requireAuthTime": false,
"trustedClient": false,
"persistClientAuthorizations": false,
"includeClaimsInIdToken": false,
"rptAsJwt": false,
"accessTokenAsJwt": false,
"disabled": false,
"action_message": "test1234test1234"
}
- Added scopes are not saved for registered client.