New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oauth with Dex does not work - error login.OAuthLogin(missing saved state) #23907
Comments
While testing I noticed if I comment out
I was running docker and the data volume out of NFS so will experiment with a docker volume to see if maybe the hang was NFS access. Docker run using this command:
|
New docker command and symptom remains where grafana just hangs after OAuth with dex.
|
The hang only occurs with Dex. When I use Keycloak I have no issues. |
I got this working. First I wasn't using HTTPS for my testing so I had to ensure |
Im having same issue, hope you can help me too. First how did you create client_id and client_secret you use in your grafana.ini? The error i get from dex is Invalid client_id. |
@munsayac13 what are you using database(postgresql) or configmap? https://dexidp.io/docs/development/oidc-certification/#configuring-dex this is sample
|
What happened:
I log into Grafana with OAuth using Dex and get
login.OAuthLogin(missing saved state)
error.Log entries:
What you expected to happen:
I'd expect OAuth to work with Dex
How to reproduce it (as minimally and precisely as possible):
grafana.ini:
Dex config:
Anything else we need to know?:
A setup almost identical to this works with Grafana 6.7.2 and Keycloak.
This is the claims returned using Dex example app to extract claims using scopes I configured for Grafana:
Dex is capable of running using local fake LDAP server from docker: https://github.com/dexidp/dex/blob/master/Documentation/dev-integration-tests.md#ldap
Environment:
The text was updated successfully, but these errors were encountered: