vue-authenticate icon indicating copy to clipboard operation
vue-authenticate copied to clipboard

linkedin scope not set

Open ddsky opened this issue 5 years ago • 2 comments

when using linkedin and configuring:

 linkedin: {
        clientId: '<MYCLIENTID>',
        url: '/authenticateSocial?provider=linkedin',
        scope: ['r_emailaddress', 'r_liteprofile', 'w_member_social'],
        redirectUri: '<MYREDIRECTURI>',
      }

The linked in login url does not pass the scopes, they are set to null and therefore any further requests with the request token I get from the authentication code result in 403 errors as the scopes are not correct.

ddsky avatar Apr 27 '19 14:04 ddsky

after fiddling around a bit I see that you can override requiredUrlParams like so requiredUrlParams: ['state', 'scope'] in the provider config to force vue-authenticate to add the scope. I feel that this is still a bug since this should be handled in the lib automatically.

ddsky avatar Apr 27 '19 16:04 ddsky

Hey @ddsky , you are right. Scope should be in requiredUrlParams. You can always submit PR (if you need it right now) with change and I'll be happy to merge it :)

dgrubelic avatar Apr 27 '19 16:04 dgrubelic