oauth-4-laravel icon indicating copy to clipboard operation
oauth-4-laravel copied to clipboard

LinkedIn InvalidAuthorizationStateException

Open cmbirk opened this issue 11 years ago • 2 comments

I'm running into this exception when trying to log in with LinkedIn. The odd issue here is it works locally, but not in my cloud development environment. I have made sure to include the correct urls in the developer panel. I've noticed that LinkedIn has some glaring issues with its OAuth system:

https://developer.linkedin.com/forum/unable-verify-access-token#comment-35438

and older:

https://developer.linkedin.com/forum/unauthorized-invalid-or-expired-token-immediately-after-receiving-oauth2-token?page=2

and I'm wondering if this could be the issue.

cmbirk avatar Aug 07 '14 16:08 cmbirk

After looking a little deeper, the AbstractService call on line 255 makes this comparison:

$this->validateAuthorizationState() !== $state

On my local environment ( mac ), the left side resolves to a string, but on my cloud development server it resolves to an object:

Artdarek\OAuth\TokenStorage

Could this be an issue with session storage?

cmbirk avatar Aug 07 '14 17:08 cmbirk

Running into this issue again recently. Still not sure what's happening.

cmbirk avatar Mar 19 '15 00:03 cmbirk