x51xxx / simple-linkedinphp

Automatically exported from code.google.com/p/simple-linkedinphp
0 stars 0 forks source link

ERROR OAuth callback URL was not confirmed by the LinkedIn end-point #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,I have developed a small application (with the help of demo.php  
tutorial) which works fine on a localhost but gives me following error when I 
run it on my UAT domain/website (all our linux servers are synchronized with 
NTP servers) Can you help me please:

Request token retrieval failed:

RESPONSE:

Array
(
    [linkedin] => Array
        (
        )

    [info] => Array
        (
            [url] => https://api.linkedin.com/uas/oauth/requestToken
            [content_type] => 
            [http_code] => 0
            [header_size] => 0
            [request_size] => 0
            [filetime] => -1
            [ssl_verify_result] => 0
            [redirect_count] => 0
            [total_time] => 0
            [namelookup_time] => 0
            [connect_time] => 0
            [pretransfer_time] => 0
            [size_upload] => 0
            [size_download] => 0
            [speed_download] => 0
            [speed_upload] => 0
            [download_content_length] => -1
            [upload_content_length] => -1
            [starttransfer_time] => 0
            [redirect_time] => 0
        )

    [oauth] => Array
        (
            [header] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="899e6ee7ce175ccd3733321de9d0a9b4",oauth_timestamp="1354617905",oauth_consumer_key="t9nrgylfl7w3",oauth_callback="http%3A%2F%2Frecette.expectra.fr%3A80%2Fdemo2.php%3FlType%3Dinitiate%26lResponse%3D1",oauth_signature_method="HMAC-SHA1",oauth_signature="8baSbEXQ%2BmsiEnNmQAKYtlgpoCI%3D"
            [string] => POST&https%3A%2F%2Fapi.linkedin.com%2Fuas%2Foauth%2FrequestToken&oauth_callback%3Dhttp%253A%252F%252Frecette.expectra.fr%253A80%252Fdemo2.php%253FlType%253Dinitiate%2526lResponse%253D1%26oauth_consumer_key%3Dt9nrgylfl7w3%26oauth_nonce%3D899e6ee7ce175ccd3733321de9d0a9b4%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1354617905%26oauth_version%3D1.0
        )

    [error] => OAuth callback URL was not confirmed by the LinkedIn end-point
    [success] => 
)

LINKEDIN OBJ:

LinkedIn Object
(
    [callback:protected] => http://recette.expectra.fr:80/demo2.php?lType=initiate&lResponse=1
    [token:protected] => 
    [application_key:protected] => <MYKEY>
    [application_secret:protected] => <MYSECRET>
    [response_format:protected] => xml
    [last_request_headers] => Array
        (
            [0] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="899e6ee7ce175ccd3733321de9d0a9b4",oauth_timestamp="1354617905",oauth_consumer_key="t9nrgylfl7w3",oauth_callback="http%3A%2F%2Frecette.expectra.fr%3A80%2Fdemo2.php%3FlType%3Dinitiate%26lResponse%3D1",oauth_signature_method="HMAC-SHA1",oauth_signature="8baSbEXQ%2BmsiEnNmQAKYtlgpoCI%3D"
            [1] => Content-Type: text/plain; charset=UTF-8
        )

    [last_request_url] => https://api.linkedin.com/uas/oauth/requestToken
)

Original issue reported on code.google.com by alm2...@gmail.com on 4 Dec 2012 at 10:55

GoogleCodeExporter commented 9 years ago
Hi,
I found my error about OAuth callback URL was not confirmed by the LinkedIn 
end-point. 
It was CURL who don't accept the option SSL. 

Original comment by alm2...@gmail.com on 7 Dec 2012 at 2:18

GoogleCodeExporter commented 9 years ago
I have the same problem. How did you fixed the problem? thanks!

Original comment by richard....@gmail.com on 20 Jun 2013 at 5:46

GoogleCodeExporter commented 9 years ago
even am also facing the same problem
OAuth callback URL was not confirmed by the LinkedIn end-point

Original comment by blaazet...@gmail.com on 8 Nov 2013 at 1:06

GoogleCodeExporter commented 9 years ago
i have the same problem, How did you fixed the problem? It works fine on a 
localhost but gives error when I run it on my live website. Can you help me 
please!

Original comment by kps2...@gmail.com on 29 Oct 2014 at 11:13