Replies: 6 comments
-
|
@inseroaj Indeed, this feature was initially added exclusively Your example is a normal resource permission which is made up of a vhost part and a resource part separated by Scope aliases does not evaluate permissions, it only maps a word into one or many scopes. Having said all the above, I am going to work on supporting variable expansion in resource permissions so that |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your reply. I'm still not sure I understand exactly how this works. And assuming a working example, should this also work specifying the same scope with |
Beta Was this translation helpful? Give feedback.
-
|
@inseroaj does your token contain a claim with the name |
Beta Was this translation helpful? Give feedback.
-
|
@MarcialRosales Yes, the token includes these claims: Using |
Beta Was this translation helpful? Give feedback.
-
|
@inseroaj our team does not use issues for discussions. Use Discussions if you have questions. |
Beta Was this translation helpful? Give feedback.
-
|
@inseroaj I am updating the oauth2 examples to demonstrate "var expansion feature ". However, while I do it, I can advance what it looks like :
Please, be aware that I have updated the file under the rabbitmq-oauth2-tutorial repo, When I finish adding the example that demonstrates the feature "variable expansion in scopes", I will push this change too that bumps up the RabbitMQ version used by the examples. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
As described in OAuth2 Topic Exchange Scopes it is possible to use variable expansion in scopes, like
rabbitmq.write:*/x-{vhost}-*.However, it seems this is not working/supported in Scope Aliases.
Addition of this feature would make it easy to apply user-based permissions with a single fixed scope.
Describe the solution you'd like
Consider a token including the scope
MYSCOPE.Using a scope alias, the read permission can be set with
auth_oauth2.scope_aliases.MYSCOPE = rabbitmq.read:*/queueprefix.{sub}.*This would cause a user with subject
MYUSERand scopeMYSCOPEto have read access to queues namedqueueprefix.MYUSER.*.Describe alternatives you've considered
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions