You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed there's no function to call the https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=TOKEN endpoint. Any plans to do so or are you open to PRs?
I couldn't find any other Google Python library that supports this endpoint. This repo seems like the best fit.
The text was updated successfully, but these errors were encountered:
Looks like this is a Golang CLI. I am writing a Python web service that gets a Google OAuth token and needs to get the associated email. My code looks like
importrequestsreply=requests.get("https://oauth2.googleapis.com/tokeninfo", params={"access_token": token})
ifreply.ok:
token_info=reply.json()
token_info["email"]
else:
raiseRuntimeError(
f"Failed to get token info. Reply status code: {reply.status_code}. Reply message: {reply.text}"
)
I don't want to shell out to a Go CLI executable. I was hoping this library or some official Google Python library had a binding/method for this endpoint. But it's so simple enough to do on my own that this is a very minor feature request.
Hi, I noticed there's no function to call the
https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=TOKEN
endpoint. Any plans to do so or are you open to PRs?I couldn't find any other Google Python library that supports this endpoint. This repo seems like the best fit.
The text was updated successfully, but these errors were encountered: