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

Multiple authentication types is not fully supported #157

Open
dcharbonnier opened this issue May 21, 2019 · 3 comments
Open

Multiple authentication types is not fully supported #157

dcharbonnier opened this issue May 21, 2019 · 3 comments

Comments

@dcharbonnier
Copy link
Contributor

dcharbonnier commented May 21, 2019

https://swagger.io/docs/specification/2-0/authentication/

The "AND" case is not supported

{
  "security": [
    {
      "signature": [],
      "expire": []
    },
    {
      "jwt": [ ]
    }
  ]
}
@tlivings
Copy link
Contributor

This is probably a limitation to how hapi auth works. Note the "some APIs support" ... APIs built in hapi will not.

@dcharbonnier
Copy link
Contributor Author

https://github.com/futurestudio/hapi-auth-multiple-strategies the logic is pretty simple maybe we should consider implementing it in hapi-openapi ?

@tlivings
Copy link
Contributor

Happy to consider it. I don't have time to spend on it at the moment but would consider a PR for sure.

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

No branches or pull requests

2 participants