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

Support oneOf scope strategy #553

Open
sarbaoui opened this issue Apr 19, 2022 · 0 comments
Open

Support oneOf scope strategy #553

sarbaoui opened this issue Apr 19, 2022 · 0 comments

Comments

@sarbaoui
Copy link

Describe the feature

Hello
I'm looking for a way to manage my management, reading and writing scopes.
To illustrate my point we can take the example of github scopes : https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps

image

Use cases

For PUT/GET APIs I'm looking to implement my scopes into the OpenApi spec this way :

Get profile/{profileId}
security

  • OAuth2
    • user
    • read:user

PUT profile/{profileId}
security

  • OAuth2
    • user

PUT profile/{profileId}/addresses
security

  • OAuth2
    • user
    • user:address

I also tried to split each scope in différent security auth but it's not working.

Is there a way today to achieve the expected result?
Have you thought about implementing a oneOf scope strategy to handle this case?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant