apigee-127 / swagger-hapi

Other
3 stars 2 forks source link

How do I configure authentication and authorization? #2

Open nakamorichi opened 8 years ago

nakamorichi commented 8 years ago

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 commented 8 years ago

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.