开发者

Why is linked in giving me a security code instead of redirecting back to my application with a token?

I am using the LinkedIn PHP Oauth example found here:

https://github.com/petewarden/linkedinoauthexample

I've found it much easier to understand and use compared to other options so I'd like to stick with it. The author has an example based on the same code that I am using, which works exactly how I want my application to work. The only problem is that instead of redirecting back to my application af开发者_JS百科ter authorization, it gives me a security code...

You have successfully authorized My Application

Please return to your application and enter the following security code to grant access:

I've only slightly modified the author's example to be used as a CodeIgniter library. Here is the modified example code. And here is how I am calling it within CodeIgniter.

Why is it not redirecting to my application with the token instead?


Normally, that means you're not setting the callback URL properly. (Or not setting a callback at all, so it's defaulting to the OOB setting.)

It would take me time to read all that code and figure out the exact issue, but there does appear to be lots of error_log()ging. So, I would check to see what's setting set where. I would also try and look at the raw HTTP messages... that would help me identify what's missing where, and then we could look at that spot in the code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜