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

Bearer Authentication #532

Open
seranotannason opened this issue Jul 15, 2020 · 4 comments
Open

Bearer Authentication #532

seranotannason opened this issue Jul 15, 2020 · 4 comments

Comments

@seranotannason
Copy link

In the API spec swagger.json, the authentication scheme is defined as:

"Token": {
      "description": "For accessing the protected API resources, you must have received a a valid JWT token after registering or logging in. This JWT token must then be used for all protected resources by passing it in via the 'Authorization' header.\n\nA JWT token is generated by the API by either registering via /users or logging in via /users/login.\n\nThe following format must be in the 'Authorization' header :\n\n    Token: xxxxxx.yyyyyyy.zzzzzz\n    \n",
      "type": "apiKey",
      "name": "Authorization",
      "in": "header"
    }

Shouldn't it be of "type": "http", "scheme": "bearer", "bearerFormat": "JWT"?

@geromegrignon
Copy link
Contributor

Right the expected format in securitySchemes: section of the API Documentation should be:

BearerAuth: 
      type: http
      scheme: bearer
      bearerFormat: JWT 

Changes would have to be made in the v2 branch as Token is still used as a solution.

@himanshu-sharmav
Copy link

hello @geromegrignon I want to contribute to this, please assign me this.

@sooryadev007
Copy link

hey @geromegrignon is the issue still open for contribution I would like to make one

@Abiral-2724
Copy link

hey @geromegrignon , I want to contribute please assign this to me

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

5 participants