jans icon indicating copy to clipboard operation
jans copied to clipboard

fix (jans-config-api) : some scopes are not saving while OIDC client registration

Open duttarnab opened this issue 3 years ago • 0 comments

Steps to Reproduce:

  1. Execute the below endpoint for OIDC client registration POST https://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"
}
  1. Added scopes are not saved for registered client.

duttarnab avatar Oct 21 '22 15:10 duttarnab