8000 🐛 Bug Report: Issues with LinkedIn OAuth 2.0 · Issue #6212 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🐛 Bug Report: Issues with LinkedIn OAuth 2.0 #6212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
Ronitron007 opened this issue Sep 10, 2023 · 6 comments · Fixed by #6229
Closed
2 tasks done

🐛 Bug Report: Issues with LinkedIn OAuth 2.0 #6212

Ronitron007 opened this issue Sep 10, 2023 · 6 comments · Fixed by #6229
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.

Comments

@Ronitron007
Copy link

👟 Reproduction steps

So I am trying to using the OAuth2.0 for LinkedIn and the bug probably occurs when account.createOAuth2Session('LinkedIn') is used.

While signIn with linkedIn initially used to have Oauth2.0 it uses OIDC now for SSO.

Screenshot 2023-09-10 at 6 10 04 PM

I think the name of scopes for linkedIn should be changed from

 'r_liteprofile',
 'r_emailaddress',

to

'openid',
'profile',
'email'

👍 Expected behavior

I should be redirected to my success page. And there should be a new user logged in.

👎 Actual Behavior

I get an error on linkedIn's page and I am redirected to an appWrite url.

The appWrite url is
https://cloud.appwrite.io/v1/account/sessions/oauth2/callback/linkedin/64fc38061af407cce741?error=unauthorized_scope_error&error_description=Scope+%26quot%3Br_liteprofile%26quot%3B+is+not+authorized+for+your+application&state=%7B%22success%22%3A%22http%3A%5C%2F%5C%2Flocalhost%3A3001%5C%2F%22%2C%22failure%22%3A%22http%3A%5C%2F%5C%2Flocalhost%3A3001%5C%2Ffail%22%7D

I pasted the url since the url does have the error in it

error: unauthorized_scope_error
error_description: Scope "r_liteprofile" is not authorized for your application
state: cfa970987c9a3c2178dddeda0d81dab3e00dce4c683098d6

Screenshot 2023-09-10 at 5 42 34 PM

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@Ronitron007 Ronitron007 added the bug Something isn't working label Sep 10, 2023
@stnguyen90
Copy link
Contributor

@Ronitron007, thanks for creating this issue! 🙏 For now, does it work if you pass the additional required scopes when calling the Create OAuth2 Session API?

@stnguyen90 stnguyen90 added the product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services. label Sep 10, 2023
@Ronitron007
Copy link
Author

Hey, I am afraid it doesn't work since the scopes for 'r_liteprofile' and 'r_emailadress' are also sent in the request.

@stnguyen90
Copy link
Contributor

Ah! I'm sorry; I misunderstood the problem. Sign in with LinkedIn has been deprecated and Sign In with LinkedIn using OpenID Connect is the only option available now which doesn't use the 'r_liteprofile' and 'r_emailadress' scopes. This means we need to update our LinkedIn OAuth2 Provider.

@stnguyen90 stnguyen90 added help wanted Extra attention is needed good first issue Good for newcomers labels Sep 11, 2023
@Ronitron007
Copy link
Author

Yes, you got it correct. But I think there might be some caveats involved.

@btme0011
Copy link
Contributor

can i work on this issue?

@stnguyen90 stnguyen90 changed the title 🐛 Bug Report: Issues with OAuth 2.0 🐛 Bug Report: Issues with LinkedIn OAuth 2.0 Sep 12, 2023
@stnguyen90 stnguyen90 added this to the 1.4.3 milestone Sep 12, 2023
@stnguyen90 stnguyen90 moved this to In Progress in 1.4 release Sep 12, 2023
@stnguyen90
Copy link
Contributor

@btme0011, assigned! Thanks for your interest! 🙏🏼

@stnguyen90 stnguyen90 removed this from the 1.4.3 milestone Sep 12, 8000 2023
@stnguyen90 stnguyen90 linked a pull request Sep 13, 2023 that will close this issue
1 task
@stnguyen90 stnguyen90 moved this from In Progress to Code Review in 1.4 release Sep 21, 2023
@stnguyen90 stnguyen90 moved this from Code Review to Merge Queue in 1.4 release Sep 22, 2023
@github-project-automation github-project-automation bot moved this from Merge Queue to Done in 1.4 release Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants
0