Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

How do I configure authentication and authorization? #2

Open
nakamorichi opened this issue Mar 14, 2016 · 1 comment
Open

How do I configure authentication and authorization? #2

nakamorichi opened this issue Mar 14, 2016 · 1 comment

Comments

@nakamorichi
Copy link

I'm using hapi-auth-jwt2 for authentication and ordinary Hapi scopes for authorization. How do I configure these when using swagger-hapi and all my route definitions are in swagger.yaml?

@theganyo
Copy link
Contributor

Nothing has been done to integrate the Swagger OAuth with hapi-auth-jwt2 and hapi scopes at present. You would have to write your own integration for that. However, it should be very easy to do. See: https://github.com/theganyo/swagger-node-runner/releases/tag/v0.6.10.

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

No branches or pull requests

2 participants