GithubHelp home page GithubHelp logo

Comments (4)

PoBuchi avatar PoBuchi commented on August 22, 2024 1

V2 is live

from meteor-accounts-linkedin.

PoBuchi avatar PoBuchi commented on August 22, 2024

OAuth2

from meteor-accounts-linkedin.

killerchip avatar killerchip commented on August 22, 2024

Hello,

Sorry to raise this issue again. My investigation shows that the package as it is currently it does not support the changes for V2 API of LinkedIn.

This means on March 1st 2019 the package will not be able to authenticate LinkedIn users.

I'm explaining:
According to this:
https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq

LinkedIn will drop support for the r_basicprofile permission. Its replacement will be the r_liteprofile permission.

Currently if you use

Meteor.loginWithLinkedin({
            requestPermissions: ['r_basicprofile', 'r_liteprofile', 'r_emailaddress']
 }

everything works fine. You are able to login and also access V2 API (provided that your LinkedIn App has access to V2 API).

But if you drop the r_basicprofile ( which will be a requirement ), the authentication will not work. It fails with the error:

 Error in OAuth Server: Failed to fetch identity from LinkedIn. failed [403] {   "errorCode": 0,   "message": "Access to site-standard-profile-request denied",   "requestId": "******",   "status": 403,   "timestamp": ******** }
I20181228-14:10:57.479(2)? Exception while invoking method 'login' { Error: Failed to fetch identity from LinkedIn. failed [403] {   "errorCode": 0,   "message": "Access to site-standard-profile-request denied",   "requestId": "*********",   "status": 403,   "timestamp": ********** }
I20181228-14:10:57.479(2)?     at getIdentity (packages/pauli:linkedin-oauth/linkedin-server.js:116:11)
I20181228-14:10:57.479(2)?     at Object.handleOauthRequest (packages/pauli:linkedin-oauth/linkedin-server.js:7:18)
I20181228-14:10:57.479(2)?     at OAuth._requestHandlers.(anonymous function) (packages/oauth2/oauth2_server.js:10:33)
I20181228-14:10:57.480(2)?     at middleware (packages/oauth/oauth_server.js:161:5)
I20181228-14:10:57.480(2)?     at ********/.meteor/packages/promise/.0.11.2.1esmk5n.w6u9++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
I20181228-14:10:57.483(2)?   message: 'Failed to fetch identity from LinkedIn. failed [403] {   "errorCode": 0,   "message": "Access to site-standard-profile-request denied",   "requestId": "*******",   "status": 403,   "timestamp": *********** }' }

I think this issue needs to re-open.

Kind Regards

from meteor-accounts-linkedin.

PoBuchi avatar PoBuchi commented on August 22, 2024

Thx, will do updates in coming weeks

from meteor-accounts-linkedin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.