PHP Classes

Linkedin ouath2

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  Linkedin ouath2  >  (Un) Subscribe thread alerts  
Subject:Linkedin ouath2
Summary:Configure links for linkedin ouath2
Messages:3
Author:Patai Krisztián
Date:2016-05-12 08:29:06
 

  1. Linkedin ouath2   Reply   Report abuse  
Picture of Patai Krisztián Patai Krisztián - 2016-05-12 08:29:06
Hi!
It is possible to use oauth2 for LinkedIn now. You use 1.0a in your class.
So i changed the followings:
oauth_version = 2.0
dialog_url = https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&state={STATE}&scope={SCOPE}
access_token_url = https://www.linkedin.com/uas/oauth2/accessToken

But got an error message: Failed to obtain access token or Unknown authentication scheme

Please help me, how to switch LinkedIn to oauth 2.0

Thanks

(http.php is missing from the package)

  2. Re: Linkedin ouath2   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-05-12 17:44:43 - In reply to message 1 from Patai Krisztián
Sure just change the server variable to LinkedIn2.

Take a look a the example login_with_linkedin2.php

phpclasses.org/package/7700-PHP-Aut ...

  3. Re: Linkedin ouath2   Reply   Report abuse  
Picture of Patai Krisztián Patai Krisztián - 2016-05-12 19:02:19 - In reply to message 2 from Manuel Lemos
pff

I didn't notice that file

thanks