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

Please add support for bearer auth #125

Open
bobmeister opened this issue May 1, 2019 · 0 comments
Open

Please add support for bearer auth #125

bobmeister opened this issue May 1, 2019 · 0 comments

Comments

@bobmeister
Copy link

Right now it seems that swagger-blocks only supports security definitions for the OpenAPI ApiKeyAuth and OAuth2 authentication. A very common type of authentication is BearerAuth (a bearer token in an Authorization header).

Can someone please add support for bearer authentication? A security definition might look something like this:

security_definition :bearer do
  key :type, :http
  key :name, :bearer
  key :in,   :header
end

If I try doing this right now I get a modal dialog in Swagger UI when I click on the Authorize button that says:

Available Authorizations

Unknown security definition type http

Again, this would be much appreciated.

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

1 participant