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

Add scope strategy allowing different separator for prefixes, resources and verbs #3751

Open
4 of 5 tasks
zoop-btc opened this issue Mar 29, 2024 · 1 comment
Open
4 of 5 tasks
Labels
feat New feature or request.

Comments

@zoop-btc
Copy link

zoop-btc commented Mar 29, 2024

Preflight checklist

Ory Network Project

No response

Describe your problem

I want to implement a scope strategy in my Application which allows for different separators between dynamic scopes, resources & verbs. Right now this is the closest we can get.

Describe your ideal solution

The ideal solution would be to follow this recommendation.
For summary we'd have these things to check for:

  • - for prefix scopes so budget-* matches budget-400 and budget-5
  • : to separate resources so right now hydra.clients would be replaced by hydra:clients
  • . for specifying the permission/verb hydra:clients.read for example

Workarounds or alternatives

I would have to use . as separator exclusively, making it hard to differentiate between prefix, resource and verb in my application.
Or I'd need to compile my own fosite & hydra with my custom scope strategy which adds significant complexity to my deployment pipeline & maintenance.

Version

latest

Additional Context

I'd also be happy if I could just use the prefix scopes and continue to use . as resource as well as verb separator.

@zoop-btc zoop-btc added the feat New feature or request. label Mar 29, 2024
@zoop-btc
Copy link
Author

zoop-btc commented Mar 29, 2024

it looks like you were amenable to such an implementation here, I will create a fosite PR for this then

opened draft PR here - feedback welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant