Skip to content
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

Missing support using Multiple Authentication Types #214

Closed
malteburkert opened this issue Jan 15, 2020 · 3 comments
Closed

Missing support using Multiple Authentication Types #214

malteburkert opened this issue Jan 15, 2020 · 3 comments

Comments

@malteburkert
Copy link

According to https://swagger.io/docs/specification/authentication it is possible to specify multiple authentication types for operations. The SwagGen tool seems to not support this requirement. The APIService cannot be initiated with multiple securityRequirements. And it is even not possible to modify the template in order to support this feature. Could you please help with this inquiry?

@yonaskolb
Copy link
Owner

If you need this you can indeed update the template. In addition to the securityRequirement property in the Request.swift template, you can use the plural securityRequirements which is an array.

If you do make such updates to the template, I'm happy to accept a PR that supports multiple

@malteburkert
Copy link
Author

@yonaskolb is it possible that the parsing of the swagger spec does not support the AND of multiple securityRequirements?

@yonaskolb
Copy link
Owner

@malteburkert not sure what you mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants