-
According to the Swagger documentation, it's already possible to use multiple authentication types:
Is this concept also extensible to scopes? E.g.
I already tested this in the Swagger Editor and it doesn't seem to make a difference. So, is my assumption correct that scopes always use Logical AND? |
Beta Was this translation helpful? Give feedback.
Answered by
hkosova
Aug 23, 2022
Replies: 2 comments 1 reply
-
Logical "AND" and "OR" for scopes can be expressed as follows: # User needs scopes A AND B
security:
- oauth2:
- A
- B
# User needs scope A OR B
security:
- oauth2:
- A
- oauth2:
- B
# User needs scope (A AND B) OR C
security:
- oauth2:
- A
- B
- oauth2:
- C |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mrksbnch
-
Closing as answered. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Logical "AND" and "OR" for scopes can be expressed as follows: