Skip to content
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

AAW-PROD Grafana oauth failed, users cannot login #2012

Open
vexingly opened this issue Jan 8, 2025 · 2 comments
Open

AAW-PROD Grafana oauth failed, users cannot login #2012

vexingly opened this issue Jan 8, 2025 · 2 comments

Comments

@vexingly
Copy link

vexingly commented Jan 8, 2025

https://grafana.aaw.cloud.statcan.ca/

Sign-in with Microsoft (OAuth)

Error message: login.OAuthLogin(NewTransportWithCode)

Maybe the OAuth cert/creds are expired?

@Souheil-Yazji
Copy link
Contributor

Oauth secret is indeed not expired, grafana oauth secret expires in 2026

@vexingly
Copy link
Author

vexingly commented Jan 8, 2025

Oauth secret is indeed not expired, grafana oauth secret expires in 2026

The grafana log indicates the secret is incorrect:
error="oauth2: cannot fetch token: 401 Unauthorized\nResponse: {\"error\":\"invalid_client\",\"error_description\":\"AADSTS7000215: Invalid client secret provided.

I verified the secrete in the prometheus-system ns is being injected into the grafana pod correctly, and on review of the aaw-grafana-sp application in the azure portal, it appears that the secrets listed there are not the one configured in the ns secret...

Not sure what has happened but I think a new secret will be needed.

@vexingly vexingly changed the title Grafana auth not working AAW-PROD Grafana oauth failed, users cannot login Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants