login.OAuthLogin(missing saved state) Auth0 authentication

Hi, I’m trying to configure Auth0 sign in with grafana, but whenever I go to the localhost and try to sign in I get this error message that says “login.OAuthLogin(missing saved state)”

this is how I configured mi .ini file:

[auth.generic_oauth]

enabled = true

name = Auth0

allow_sign_up = true

client_id = [redacted]

client_secret = [redacted]

scopes = openid profile email

auth_url = [redacted]

token_url = [redacted]

api_url = [redacted]

team_ids =

allowed_organizations =

use_pkce = true

the Grafana version I’m using is v9.1.0-beta1 on Windows 11

I’m currently running this .YAML file too:

version: “3”
services:
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
environment:
- GF_SERVER_DOMAIN=localhost
- GF_SERVER_HTTP_PORT=3000
- GF_SERVER_PROTOCOL=http
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/
- GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP=true
- GF_AUTH_GENERIC_OAUTH_ENABLED=true
- GF_AUTH_GENERIC_OAUTH_NAME=Auth0
- GF_AUTH_GENERIC_OAUTH_SCOPES=openid profile email
- GF_AUTH_GENERIC_OAUTH_TOKEN_URL=https://[redacted]/oauth/token
- GF_AUTH_GENERIC_OAUTH_AUTH_URL=https://[redacted]/authorize
- GF_AUTH_GENERIC_OAUTH_API_URL=https://[redacted]/userinfo
- GF_AUTH_GENERIC_OAUTH_CLIENT_ID=[redacted]
- GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET=[redacted]

This post has some good info on this topic:

1 Like