Sign in to Grafana with Gateweave ID
Gateweave ID · v0.13.0 · source on GitHub
Grafana works with ID’s default settings, and can set each person’s role from their groups.
How far this has been checked. On 2026-11-06 a script ran this against ID’s staging server, with Grafana
13.3.0 in Docker on localhost, in Chromium. What has not been tried has the rest.
1. Add Grafana to your workspace as an app
Section titled “1. Add Grafana to your workspace as an app”Follow Add it, with this as the redirect URI:
https://grafana.example.com/login/generic_oauthLeave everything under If your app’s library needs something else as it is. Save the issuer, the client ID and the client secret.
To give some people more than Viewer, add a group to the workspace, here called grafana-admins, and put
them in it.
2. Configure Grafana
Section titled “2. Configure Grafana”These are Grafana’s own settings, as environment variables, with the three addresses spelled out. Replace
https://id.gateweave.com if you run your own server.
GF_SERVER_ROOT_URL=https://grafana.example.comGF_AUTH_GENERIC_OAUTH_ENABLED=trueGF_AUTH_GENERIC_OAUTH_NAME="Gateweave ID"GF_AUTH_GENERIC_OAUTH_CLIENT_ID=<client id>GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET=<client secret>GF_AUTH_GENERIC_OAUTH_SCOPES="openid profile email groups offline_access"GF_AUTH_GENERIC_OAUTH_AUTH_URL=https://id.gateweave.com/api/auth/oauth2/authorizeGF_AUTH_GENERIC_OAUTH_TOKEN_URL=https://id.gateweave.com/api/auth/oauth2/tokenGF_AUTH_GENERIC_OAUTH_API_URL=https://id.gateweave.com/api/auth/oauth2/userinfoGF_AUTH_GENERIC_OAUTH_AUTH_STYLE=InHeaderGF_AUTH_GENERIC_OAUTH_USE_PKCE=trueGF_AUTH_GENERIC_OAUTH_USE_REFRESH_TOKEN=trueGF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP=trueGF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH="contains(groups[*], 'grafana-admins') && 'Admin' || 'Viewer'"GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_STRICT=trueAUTH_STYLE=InHeader is what makes Grafana send the secret the way ID expects, and USE_PKCE=true is what
Require PKCE asks for.
What you should see
Section titled “What you should see”Grafana’s sign-in page gets a button for Gateweave ID. The first time, ID asks each person whether Grafana may have those scopes, and then they are back in Grafana, with an account made from their address and name.
| Their groups | Role in Grafana | Grafana server admin |
|---|---|---|
In grafana-admins |
Admin | No |
| Not in it | Viewer | No |
Only members of the workspace get as far as Grafana, as with any app.
What has not been tried
Section titled “What has not been tried”- A deployment on a real
httpsaddress. - Grafana using its refresh token. ID issued one, and the run ended before it was needed.
- Signing out, in either direction. Apps a workspace adds do not hear about a sign-out from ID yet.
- Moving someone in or out of the group while they are signed in to Grafana.