I am trying to evaluate authlib support for following use cases with google oauth2.
- Fetch the authorization code
- Fetch the token
- Validate the token against google token endpoint
- Refresh the token using refresh token
I could implement 1, 2 and 4. However could not find any method or mechanism to validate the obtained access token against the google token endpoint. Requirement is to validate the token for the expiry/active before proceeding with further operations in the server.
Is there method to validate the access token using google token endpoint in Authlib?
I tried using the introspection method which didn't work.