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 a field for custom headers #9

Closed
nicosabena opened this issue Jun 2, 2016 · 2 comments
Closed

Add a field for custom headers #9

nicosabena opened this issue Jun 2, 2016 · 2 comments

Comments

@nicosabena
Copy link
Member

The underlying oauth2 strategy supports a customHeaders value for the options, where you can specify custom headers to be send in the OAuth HTTP interactions. customHeaders is a hash, with header names and values:

    "options": {
      "client_id": "xxxxx",
      "client_secret": "xxxxx",
      "authorizationURL": "xxxx",
      "tokenURL": "xxxx",
      "scope": "",
      "customHeaders": {
          "Header1": "Value2"
          "Header2": "Value2"
      },
      "scripts": {
        "fetchUserProfile": "xxxx"
      }

It would be nice if the extension allowed for providing this custom headers.
Being able to set customHeaders in a custom connection enables special use cases such as OAuth identity providers that require credentials as HTTP Basic authentication (in a Authorization header).

@jcenturion
Copy link
Collaborator

@nicosabena: I've already added support for customHeaders. Closing this bug :).

screen shot 2016-06-07 at 5 21 28 pm

@nicosabena
Copy link
Member Author

Thanks!

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