hapi-openapi icon indicating copy to clipboard operation
hapi-openapi copied to clipboard

Multiple authentication types is not fully supported

Open dcharbonnier opened this issue 6 years ago • 3 comments

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

The "AND" case is not supported

{
  "security": [
    {
      "signature": [],
      "expire": []
    },
    {
      "jwt": [ ]
    }
  ]
}

dcharbonnier avatar May 21 '19 06:05 dcharbonnier

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

tlivings avatar Oct 18 '19 15:10 tlivings

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

dcharbonnier avatar Oct 18 '19 15:10 dcharbonnier

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

tlivings avatar Oct 18 '19 16:10 tlivings