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

add verifyToken to volos-swagger #52

Open
borisirota opened this issue Jan 1, 2015 · 1 comment
Open

add verifyToken to volos-swagger #52

borisirota opened this issue Jan 1, 2015 · 1 comment

Comments

@borisirota
Copy link

Hi,

In order to implement an oauth2 server only (it's only purpose is to generate and verify tokens) based on volos-ouath the missing part is to expose the verifyToken operation

I guess that this method will expect the token and the required scopes to be inside the request body.

The use case for that is microservices architecture where one server is responsible for the token generation and verification and all the others are business logic only.

To support this it requires:

  1. Add one more path (verify) to x-a127-services:oauth2:options:tokenPaths in swagger.yaml.
  2. Add the specification of the method here.
  3. add a controller here.
  4. change the implementation of the authenticate method or add a new one that expects the parameters to be in request's body.

Thanks,
Boris

@theganyo
Copy link
Contributor

I agree that something like this seems to be a good enhancement. I'll look into it.

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