-
Notifications
You must be signed in to change notification settings - Fork 4.4k
🐛 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
Comments
@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? |
Hey, I am afraid it doesn't work since the scopes for 'r_liteprofile' and 'r_emailadress' are also sent in the request. |
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. |
Yes, you got it correct. But I think there might be some caveats involved. |
can i work on this issue? |
@btme0011, assigned! Thanks for your interest! 🙏🏼 |
👟 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.
I think the name of scopes for linkedIn should be changed from
to
👍 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
🎲 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?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: