Skip to content
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

LinkedIn REVOKED_ACCESS_TOKEN #196

Open
chrisK824 opened this issue Sep 19, 2024 · 2 comments
Open

LinkedIn REVOKED_ACCESS_TOKEN #196

chrisK824 opened this issue Sep 19, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@chrisK824
Copy link
Contributor

Bumped in a LinkedIn login failure today where log seemed like that:

1 validation error for UserSignUp\nusername\n  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.9/v/string_type

I dug a bit more and it is not a pydantic issue.

The problem is coming from LinkedIn response that openid_from_response receives. Most of the times I tried, this response printed out like that:

{'status': 401, 'serviceErrorCode': 65601, 'code': 'REVOKED_ACCESS_TOKEN', 'message': 'The token used in the request has been revoked by the user'}
  • I searched a bit the error online and it appears that others have same issues with other libraries etc.
  • Also sometimes the whole thing still works, sometimes it doesn't.

It smells like a problem in LinkedIn API rather than this library, but leaving it here for future references at least, if not some workaround mechanism to deal with it.

@tomasvotava
Copy link
Owner

Hey @chrisK824, thanks a lot for this! Could you confirm that the problem still persists or was it just temporary?

@tomasvotava tomasvotava added the good first issue Good for newcomers label Sep 27, 2024
@chrisK824
Copy link
Contributor Author

Hey there @tomasvotava , I do not monitor this as I don't really use LinkedIn SSO anywhere but the demo site, but I tried just now again and it was 7/10 failures..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants