Relative Content

Tag Archive for linkedin-apilinkedin-jsapiomniauth-linkedin

How to get r_liteprofile, r_emailaddress, and w_member_social scope in linkedIn Application ? I am getting below error

{
“statusCode”: 500,
“message”: “Scope “r_liteprofile” is not authorized for your application”,
“error”: “AuthorizationError: Scope “r_liteprofile” is not authorized for your applicationn at LinkedinStrategy.OAuth2Strategy.authenticate (/Users/danish/Documents/Project_X/project_x/usersX/node_modules/passport-oauth2/lib/strategy.js:138:25)n at attempt (/Users/danish/Documents/Project_X/project_x/usersX/node_modules/passport/lib/middleware/authenticate.js:378:16)n at authenticate (/Users/danish/Documents/Project_X/project_x/usersX/node_modules/passport/lib/middleware/authenticate.js:379:7)n at /Users/danish/Documents/Project_X/project_x/usersX/node_modules/@nestjs/passport/dist/auth.guard.js:88:3n at new Promise (u003Canonymousu003E)n at /Users/danish/Documents/Project_X/project_x/usersX/node_modules/@nestjs/passport/dist/auth.guard.js:80:83n at MixinAuthGuard.canActivate (/Users/danish/Documents/Project_X/project_x/usersX/node_modules/@nestjs/passport/dist/auth.guard.js:44:32)n at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
“timestamp”: “2024-06-01T00:26:18.661Z”,
“path”: “/linkedin/callback?error=unauthorized_scope_error&error_description=Scope+%26quot%3Br_liteprofile%26quot%3B+is+not+authorized+for+your+application”,
“method”: “GET”
}

Getting failed to fetch user profile error message in LinkedIn Authorization Code Flow (3-legged OAuth)

{
“statusCode”: 500,
“message”: “failed to fetch user profile”,
“error”: “InternalOAuthError: failed to fetch user profilen at LinkedinStrategy. (/Users/danish/Documents/Project_X/project_x/usersX/node_modules/passport-linkedin-oauth2/lib/oauth2.js:57:19)n at passBackControl (/Users/danish/Documents/Project_X/project_x/usersX/node_modules/oauth/lib/oauth2.js:132:9)n at IncomingMessage. (/Users/danish/Documents/Project_X/project_x/usersX/node_modules/oauth/lib/oauth2.js:157:7)n at IncomingMessage.emit (node:events:525:35)n at endReadableNT (node:internal/streams/readable:1359:12)n at processTicksAndRejections (node:internal/process/task_queues:82:21)”,
“timestamp”: “2024-04-23T10:41:22.894Z”,
“path”: “/linkedin/callback?code=AQQa9TTNH9QeMZ9i1x8Fj2MCrjiIM57g3gnMqxDHeXZBewdkdg660FsDTMC_1tBtvBZn322M48OxZeWE0QStlIsMkCX-NyfeZeVqJIMCci3qMetGGj_U9LtTnybAXmgg-K1Unx5vLTYXm-FXBHmUOHu9JC_5O2kAJrOBPUG-zZRYfDZXVOk2L72aWSscso1LVGbp5uCNKggcTb3FaQU”,
“method”: “GET”
}