Search code examples
pythondjangooauth-2.0jwtopenid

Verify OAuth 2.0 token


I have a token from Microsoft OAuth 2.0 with PKCE that in is sent to my Django server from a front-end. How can I verify the integrity of this token? I want to allow users to sign in with their Microsoft accounts.


Solution

  • Why do you need to verify the integrity of the token? You could just attempt to log the user in. If it works, the token is good.

    Edits