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 support for tokens from the Mobile SDK #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add support for tokens from the Mobile SDK #39

wants to merge 1 commit into from

Conversation

ushu
Copy link

@ushu ushu commented Sep 15, 2017

Hello,

this PR adds a new option called is_mobile_sdk to the contructor of LinkedIn::API.
When turned on, this allows to contact LinkedIn with the tokens obtained through the Mobile SDK.

Basically, the usual approach to provide credentials (oauth2_access_token) does not work with these tokens, and you have to provide an "Authorization" header (+ a set of additional headers) to authenticate with the service.

We have this code running in Production with no issue.

@ushu ushu changed the title Add is_mobile_sdk options Add support for tokens from the Mobile SDK Sep 15, 2017
Adds `is_mobile_sdk` option that changes how the token is handled to the sdk,
to allow authentication using the tokens retreived with the mobile SDK.
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.

1 participant