Hello. I'm trying to integrate Google as a Third-...
# support-questions-legacy
d
Hello. I'm trying to integrate Google as a Third-Party provider and I've specified the
Copy code
scope=['email', 'profile', 'openid']
on my FastAPI backend. However, I'm not sure how I can access the information in the profile on the backend. Any suggestions?
r
Hey @dbottisti
There is a section in the docs about getting the access token that google provides. You can use that to query google to get the info you need
d
Will that work if I've created a custom
GoogleWithIdToken
Provider (extending the Google Provider) and I was provided an
id_token
instead of a
code
?
r
It should. Yea.
d
Hmm, when I try that, the value of
thirdparty_auth_response["access_token"]
is
use-id-token
, the value I submitted in the POST request (since I provided
id_token
instead)
r
I think you would need to create your own custom provider for this. This should be easy enough.
See the section on custom provider
d
Yea, I did that.
2 Views