Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Add support for bearer auth #216

Merged
merged 3 commits into from
May 22, 2019
Merged

Add support for bearer auth #216

merged 3 commits into from
May 22, 2019

Conversation

domharrington
Copy link
Member

Bearer authentication is just a regular API key:
https://swagger.io/docs/specification/authentication/bearer-authentication/

But it comes through like this:

{
  type: 'http',
  scheme: 'bearer'
}

Which getAuth() incorrectly picked up as though it should be HTTP auth.

This adds support for bearer to getAuth()

Bearer authentication is just a regular API key:
https://swagger.io/docs/specification/authentication/bearer-authentication/

But it comes through like this:

```
{
  type: 'http',
  scheme: 'bearer'
}
```

Which `getAuth()` incorrectly picked up as though it should be HTTP auth.

This adds support for bearer to `getAuth()`
@kanadgupta kanadgupta merged commit ad75127 into master May 22, 2019
@erunion erunion deleted the feature/bearer-auth branch July 1, 2019 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
4 participants