Skip to content
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

Custom scopes are not resolving without the 'openid' scope in the JWT bearer grant #21112

Open
ShehanDinuka opened this issue Sep 14, 2024 · 0 comments
Assignees

Comments

@ShehanDinuka
Copy link
Contributor

Describe the issue:

In version 7.0, it was identified that when custom scopes are requested using the JWT Bearer Grant, the scopes are not properly resolved, and as a result, they are not included in the exchanged access token or bearer response.

If the openid scope is requested along with the custom scopes, the request functions as expected. However, ideally, the custom scopes should resolve properly even without the inclusion of the openid scope.

How to reproduce:

  • Create an API resource and define one or more custom scopes.
  • Create a role and associate the custom scopes with it.
  • Create a group and assign the role created in the previous step.
  • Set up a connection by providing the alias, issuer details, and uploading the Identity Server's public key as a certificate.
  • Navigate to the Connection → Groups section and add an IDP group (e.g., group1).
  • In User Management → Roles → select the role → Groups → External Groups, map the previously added IDP group to the local role.
  • Create a user and assign the local group created in step 3.
  • Generate the assertion with the correct identity provider (IDP) and user information.
  • Request the custom scopes in the JWT Bearer request, omitting the openid scope.
  • Observe that the custom scopes are not included in the response.
  • When the openid scope is included in the request, the custom scopes are correctly resolved.

Expected behavior:

The custom scopes should resolve properly even without the inclusion of the openid scope.

Environment information (Please complete the following information; remove any unnecessary fields) :

  • Product Version: [IS 7.0.0]
  • OS: [Mac]
  • Database: [ H2]
  • Userstore: [JDBC]

Optional Fields

Related issues:

#21009

@sadilchamishka sadilchamishka self-assigned this Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants