Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Allow clients to supply access_tokens as headers #1098

Merged
merged 4 commits into from
Oct 25, 2016

Conversation

NegativeMjark
Copy link
Contributor

Clients can continue to supply access tokens as query parameters
or can supply the token as a header:

Authorization: Bearer <access_token_goes_here>

This matches the ouath2 format of
https://tools.ietf.org/html/rfc6750#section-2.1

Clients can continue to supply access tokens as query parameters
or can supply the token as a header:

   Authorization: Bearer <access_token_goes_here>

This matches the ouath2 format of
https://tools.ietf.org/html/rfc6750#section-2.1
@ara4n
Copy link
Member

ara4n commented Sep 9, 2016

what clients are you expecting to be using this, btw?

@erikjohnston
Copy link
Member

LGTM, other than tests.

@NegativeMjark
Copy link
Contributor Author

what clients are you expecting to be using this, btw

None at the moment. I was thinking of hacking up the JS client to use it at somepoint.

@richvdh
Copy link
Member

richvdh commented Sep 29, 2016

I appreciate this expands the scope significantly, but if we're going so far as to move the access token into headers, perhaps it's a good time to consider making the access token into a session key and using it to sign requests (per https://www.ietf.org/archive/id/draft-ietf-oauth-v2-http-mac-05.txt) instead of sending the whole thing back on each request?

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

Successfully merging this pull request may close these issues.

4 participants