Quam
4 years agoNew Contributor
How to specify OR logic for scopes in security oauth2
Hello,
I have to implements a case of authentication that would accept oneOf provided scopes: OAUTH2 [scope1 OR scope2].
I've try different configurations whithout success, logic AND is always taken in consideration.
security:
- check: [scope1]
- check: [scope2]
components:
securitySchemes:
check:
type: oauth2security:
- check: [scope1]
- check2: [scope2]
components:
securitySchemes:
check:
type: oauth2
check2:
type: oauth2
Any advise?
Many thanks