I'm trying to upgrade an app to use v2 of LinkedIn's Api. I found this gem, which I hope should replace the omniauth-linkedin gem. I changed the provider method to something like:
However, after going through the oauth connection process and trying to post as the user I get an error:
LinkedIn::Errors::UnauthorizedError ((401): [unauthorized]. The token used in the OAuth request is not valid.
I believe the cause of this issue is I never obtain a secret for the user, the oauth hash is incompete. After the user accepts connecting an account, the request.env['omniauth.auth'] hash looks something like:
I tried changing the requested permissions. I've looked at the app in LinkedIn and looks to be setup correctly. LinkedIn was working yesterday, but they must have forced v2 on the app today. I tried using different versions of omniauth-oauth2 gem. Please let me know if you have any suggestions. Thanks.
I'm trying to upgrade an app to use v2 of LinkedIn's Api. I found this gem, which I hope should replace the omniauth-linkedin gem. I changed the provider method to something like:
However, after going through the oauth connection process and trying to post as the user I get an error:
I believe the cause of this issue is I never obtain a secret for the user, the oauth hash is incompete. After the user accepts connecting an account, the
request.env['omniauth.auth']
hash looks something like:Notice that there is no
secret
.I tried changing the requested permissions. I've looked at the app in LinkedIn and looks to be setup correctly. LinkedIn was working yesterday, but they must have forced v2 on the app today. I tried using different versions of omniauth-oauth2 gem. Please let me know if you have any suggestions. Thanks.