- Issue created by @m.attar
- Status changed to Postponed: needs info
10 months ago 6:51am 23 January 2024 - 🇳🇱Netherlands bojan_dev
If I understand you correctly, you want to authorize without specifying a scope? This is currently not possible, but there is a feature request which would solve your issue: 🐛 Allow default scopes to be set regardless of grant type Needs work
This would make it possible to set default scopes from the consumer for the authorization grant type, this way you could omit the scopes when authorizing. - Status changed to Active
10 months ago 11:06am 23 January 2024 - 🇱🇧Lebanon m.attar
I want to use Authorization Code Grant type with the roles that exist in our account when created instead of scopes
- 🇳🇱Netherlands bojan_dev
Scopes are now config entities and they can be mapped to roles, so you have the possibility to use scopes as roles like simple_oauth:5.2 does and you could even automate the scope creation process when roles are being created by implementing event subscribers/hook_entity_update.
To map a scope to a role via the UI:
- Add dynamic scope: "/admin/config/people/simple_oauth/oauth2_scope/dynamic/add"
- Set granularity to "Role"
- Select a role
- Status changed to Closed: duplicate
10 months ago 6:47am 4 February 2024 - 🇱🇧Lebanon m.attar
Thank you for your comment, but what you mentioned is unrelated to my problem.
Actually, it is related to this issue Provide default scopes if client is not requesting a specific scope → I applied the mentioned patch and it solved the problem https://www.drupal.org/files/issues/provide_default_scopes-2857930-2.patch →
Thank you