devenv/docker/blocks/auth/prometheus_oauth2_proxy_azure/README.md
oauth2-proxy.example.cfg and rename it to oauth2-proxy.cfgazure client id, azure client secret, azure tenant id)make devenv sources="prometheus,auth/prometheus_oauth2_proxy_azure"
If you would like to test the login flow from the browser then you need to setup TLS or start a tunnel. I usually use a tunnel (
cloudflared tunnel --url http://localhost:4180). Do not forget to set the Redirect URIs on Azure's App Registration page
Azure Authentication sectionSave & testIf you check the logs of OAuth2-proxy, you should see similar lines to this:
2023-04-19 11:29:40 172.31.0.1:55602 - d96b832a-170a-41eb-a974-6558c5ce4454 - - [2023/04/19 09:29:40] some-random-tunnel-address.trycloudflare.com GET / "/api/v1/status/buildinfo" HTTP/1.1 "Grafana/10.0.0-pre" 200 187 0.016
2023-04-19 11:29:41 172.31.0.1:55602 - db27c56a-ccd6-4cdb-a040-318113781abf - 65ac87f4-931f-4e46-9761-f8bf1ad36b48 [2023/04/19 09:29:41] some-random-tunnel-address.trycloudflare.com POST / "/api/v1/query" HTTP/1.1 "Grafana/10.0.0-pre" 200 103 0.003