Hi, I tried using dash-google-auth but I’m getting an error. I did all of the steps from the README.md file and replaced the variables for client ID and client secret with real values like this:
app.server.config["GOOGLE_OAUTH_CLIENT_ID"] = os.environ.get("client-id-here")
app.server.config["GOOGLE_OAUTH_CLIENT_SECRET"] = os.environ.get("client-secret-here")
However, when I ran python app.py and opened “localhost:5000” in my browser I got the following error:
401. That’s an error.
Error: invalid_client
The OAuth client was not found.
Request Details
response_type=code
client_id=None
redirect_uri=http://localhost:5000/login/google/authorized
scope=profile email
state=1kPQ9gCwR3EkGbXV5LdnPLu1TgQEpn
access_type=offline
approval_prompt=force
That’s all we know.
I put the following into the “Authorized redirect URIs” field: http://localhost:5000/login/google/authorized
Any idea why I might be getting this error? Thanks.