tomasvotava / fastapi-sso

FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 Account)
https://tomasvotava.github.io/fastapi-sso/
MIT License
334 stars 52 forks source link

LinkedIn REVOKED_ACCESS_TOKEN #196

Open chrisK824 opened 1 month ago

chrisK824 commented 1 month ago

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'}

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 commented 1 month ago

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

chrisK824 commented 1 month ago

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..