-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
and or for authentication #1149
Comments
I'm a bit late to the game here, but looking at the OpenAPI v2 spec it defines security:
- BasicAuth: []
OAuth2Application:
- write:pets
- read:pets
- ApiKeyAuth: [] Which would specify one of two authentication options:
Considering this it would be best to allow multiple // @Security BasicAuth && Oauth2Application[write:pets, read:pets]
// @Security ApiKeyAuth A bit less contrived example: allowing either API key or basic authentication would then be simply // @Security ApiKeyAuth
// @Security BasicAuth which would translate to security:
- BasicAuth: []
- ApiKeyAuth: [] |
Would be nice to be able to configure multiple security tags. In my use case I need to configure two authentications, both using headers and right now I can't. I created a code to modify the generated json to include my own security definition :( |
Isn't that a bug with the usage of || as an AND? || implies an OR, however that generated swagger doc is in the format of an AND. If I'm wrong I apologize |
@bekabaz Yes. OR acts as AND. |
Is your feature request related to a problem? Please describe.
I have to declare multiple possibiliteies of authentication. My Yaml file needs to look like image+ but i don't know if it's possible to configure this.
Describe the solution you'd like
I would like to be able to declare multiple options for a parameter
Describe alternatives you've considered

Using Tag multiple time is not accepted by our tool. like @description test @description test2
The text was updated successfully, but these errors were encountered: