hapi-openapi
hapi-openapi copied to clipboard
Multiple authentication types is not fully supported
https://swagger.io/docs/specification/2-0/authentication/
The "AND" case is not supported
{
"security": [
{
"signature": [],
"expire": []
},
{
"jwt": [ ]
}
]
}
This is probably a limitation to how hapi auth works. Note the "some APIs support" ... APIs built in hapi will not.
https://github.com/futurestudio/hapi-auth-multiple-strategies the logic is pretty simple maybe we should consider implementing it in hapi-openapi ?
Happy to consider it. I don't have time to spend on it at the moment but would consider a PR for sure.