Skip to content

Scopes: Logical OR and AND #3001

Closed Answered by hkosova
mrksbnch asked this question in Q&A
Aug 16, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

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

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mrksbnch
Comment options

Answer selected by mrksbnch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants