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

JWT Authorization #804

Closed
sebastianbuechler opened this issue Oct 6, 2020 · 1 comment
Closed

JWT Authorization #804

sebastianbuechler opened this issue Oct 6, 2020 · 1 comment

Comments

@sebastianbuechler
Copy link

Is it possible to use JWT Authorization in the securitydefinitions annotations so we can authorize the client before using the API?

It seems that Swagger is implementing this via bearerAuth: https://swagger.io/docs/specification/authentication/bearer-authentication/

For OAuth2 this would look like the following:
// @securitydefinitions.oauth2.implicit OAuth2Implicit
// @authorizationurl https://example.com/oauth/authorize
// @scope.write Grants write access
// @scope.admin Grants read and write access to administrative information

@ubogdan
Copy link
Contributor

ubogdan commented Oct 21, 2020

SWAGER is OAS2 spec so the Authentication doc is located here.

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

No branches or pull requests

2 participants