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 BearerAuthorizationTrait #23

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

deevus
Copy link

@deevus deevus commented Dec 12, 2018

BearerAuthorizationTrait adds the getAuthorizationHeaders function which is used in getAuthenticatedRequest.

I was trying to use getAuthenticatedRequest like I have with other third party providers to query their APIs and noticed that the token wasn't being inserted.

Adds getAuthorizationHeaders method so that clients can use
getAuthenticatedRequest method as expected.
@AndreiIgna
Copy link

AndreiIgna commented Jan 3, 2019

I wasn't aware of that trait and made a similar PR some time ago. This one looks cleaner though 👍

As in #22 there's no need to append the token param to URL after this addition

@deevus
Copy link
Author

deevus commented Jan 4, 2019

The question remains. Will the owner show up? It's plausible that they're still on holiday

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

Successfully merging this pull request may close these issues.

2 participants