Closed iainbeeston closed 8 years ago
omniauth-google-oauth2 has also had to do this (see https://github.com/intridea/omniauth-oauth2/pull/82)
Thx i willl use the master
branch !
Any word about this being included in a new release? I'd like to not have to use master directly for too long.
Before omniauth-oauth2 version 1.4, the oauth2 strategy overrode the callback_url method to exclude querystring parameters. However, in version 1.4 (see https://github.com/intridea/omniauth-oauth2/pull/70) override was removed, which means that querystring parameters are now included (by omniauth-linkedin-oauth2 and every other omniauth-oauth2 gem). Unfortunately, LinkedIn expects a callback without any querystring parameters, and if you use this gem with omniauth-oauth2 version 1.4+ you will get this error:
To fix that, I've pulled the override that used to be in omniauth-oauth2 down into omniauth-linkedin-oauth2, so it maintains the same behaviour regardless of which version of omniauth-oauth2 is being used.