eclipse-vertx / eclipse-vertx/vertx-auth

Support oneOf scope strategy

Open
#553 1 comment 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
175
Forks
159
Avg merge
6m
Merged PRs (30d)
2

Description

#### 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](https://user-images.githubusercontent.com/32735790/164040634-2b06eb9f-1f6c-489b-b028-bdb59e7e30a4.png)

#### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.