Hi all,
I’m using python fastapi as the backend of my mobile app but when I tried to implement google-oauth2 login method with python package it returned a weird message where I can’t find any other posts on the internet with similar issue. The error message reads: a0.sdk.internal.unknown
Hm, I’m not familiar with that error either. Can you provide some more context? Is there a more detailed message? Also, what code is causing this error? Can you share info about which SDK, version, etc.?
Thank you for the reply. We using FastAPI (python) as our backend and the frontend will communicate with google and send back the token once they are authorized. We are currently using python auth0 package to handle the social login right now but after passing in the required variable the endpoint will return with the error stated above. did you have any clue where I should start in terms of fixing this error? Thanks!
Hi,
Thanks for the response. We are using auth0-python==3.23.1 and the code we are using is
from auth0.v3.authentication import Social
social = Social(account_url)
social.login(client_id=client_id, access_token=token_returned_by_frontend_signin, connection='google-oauth2')
yes I understand that. Our frontend is authenticating with google service and that returns a token and we pass that token to auth0 to achieve social login ( registration ) with auth0. we’re just not sure if that’s how it should work.
So our frontend app would authenticate with google endpoint and get the token back from google and pass that token into the python sdk. Is that not how we should be doing this? I didn’t really find any documentation on how I should be using the social login feature with the python sdk. Would you mind pointing me to that? Really appreciate it!
Why aren’t you authenticating with Auth0 in your frontend? You should be able to provide the same UX, but retrieve Auth0 Access Tokens in your front end and start a session. This would be the most common setup.
I’m actually not familiar with using the SDK like that. This isn’t a flow I’ve seen used before (that is; authenticating directly with the IdP then passing the IdP Access Token to Auth0), but I reach out to the owners of that library and discuss.
Since there are several versions of documentation up, what is the correct way a react-native app built with expo and a python background should interface with Auth0? Ideally, the user does not have to go to a webview within the app
I don’t see a guide for the embedded solution for react-native, only iOS and Android native. Could you please point me to the appropriate documentation? I found this: Auth0 Expo SDK Quickstarts: Login but pretty sure it opens the auth0 login page (instead of going directly to googles login page).
It doesn’t look like we have an recent example of embedded login with React Native. We don’t recommend using embedded login flows, and this is likely why it doesn’t exist.
A follow up on this; you can pass a connection param with your request to /authorize to redirect directly to the identity provider (in this case google). That would bypass the Auth0 login page.