PHP Classes

LinkedIn OAuth 1.0a connection without callback URI

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  LinkedIn OAuth 1.0a connection...  >  (Un) Subscribe thread alerts  
Subject:LinkedIn OAuth 1.0a connection...
Summary:LinkedIn OAuth 1.0a without callback
Messages:2
Author:Jigal van Hemert
Date:2014-11-13 14:28:15
 

  1. LinkedIn OAuth 1.0a connection...   Reply   Report abuse  
Picture of Jigal van Hemert Jigal van Hemert - 2014-11-13 14:28:15
Because the page where the authentication takes place is not directly accessible with a URL (it requires a few steps to get there) I need to implement a connection to LinkedIn using OAuth 1.0a without using a callback URI.
developer.linkedin.com/documents/ge ...
describes the steps using the PECL OAuth PHP extension.

Is it somehow possible using your classes? I wouldn't mind having to change/expand your class :-)

Kind regards, Jigal van Hemert.

  2. Re: LinkedIn OAuth 1.0a connection...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-11-14 10:44:33 - In reply to message 1 from Jigal van Hemert
Yes, it is possible with an improvement that I just implemented.

You need to set the redirect_uri variable to 'oob' to tell the OAuth server you want pin based authorization.

Then you run the authorization script again setting the pin variable to what the user entered as pin.

The enter_pin.php script was added to help you run the authorization script after the user enters the pin on a form, but in your application you can pass the pin to the class programmatically.

Just let me know if you have difficulties.