Hey Everyone!
I want to set up Google oauth (exactly like it is in the official documentation Configure Google OAuth2 authentication | Grafana documentation ). Here is how my grafana.ini looks like:
grafana.ini: |
[analytics]
check_for_updates = true
[grafana_net]
url = https://grafana.net
[log]
mode = console
[paths]
data = /var/lib/grafana/
logs = /var/log/grafana
plugins = /var/lib/grafana/plugins
provisioning = /etc/grafana/provisioning
[server]
domain = monitoring.xenoss.io
[auth.google]
enabled = true
client_id = XXXXXXXXXXXXXXXXXX
client_secret = XXXXXXXXXXXXXXXXXXX
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
auth_url = https://accounts.google.com/o/oauth2/auth
token_url = https://accounts.google.com/o/oauth2/token
allow_sign_up = true
hosted_domain = xenoss.io
And here is what I set up inside OAuth 2.0 Client IDs:
And then I get this error when trying to authenticate with Google Oauth in Grafana:
redirect_uri=https://monitor.xenoss.io:3000/login/google
Maybe it is because it tries to use port 3000, however even when I explicitly use 443 or 80 it still uses 3000 port, I’m not sure that this causing a problem, but it is the only thing I can think about