Forum Discussion
ponelat
2 years agoStaff
Hi gantiplex ,
Do you mean to say that the authorizationUrl in your security is unique for each user or machine?
Something like this... "/namespace/auth/{user}" and "/namespace/auth/{machine}" where "user" is a placeholder for the user's name or ID?
That isn't possible with OpenAPI spec at the moment.
Or are you looking to describe exactly two different URLs, exactly "/namespace/auth/user" and "/namespace/auth/machine? For that it is possible to define as many as you like and to use them on different operations are you need.
As a brief example of how security works (skip if you're familiar with this already)
openapi: 3.0
#...
paths:
/foo:
get:
security:
- authMachine: [...scopes]
- authUser: [...scopes]
# ...
components:
securitySchemes:
authMachine:
# ...
authUser:
# ...
Where you reference named securitySchemes from individual operations or paths.
Related Content
- 5 years ago
- 5 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 19 days ago