Google Oauth callback not well-formed?

Hi,

I’m trying to set up Google Oauth, following the instructions at

The instructions state

You need to create a Google project. You can do this in the Google Developer Console. When you create the project you will need to specify a callback URL. Specify this as callback:

http://<my_grafana_server_name_or_ip>:<grafana_server_port>/login/google
This callback URL must match the full HTTP address that you use in your browser to access Grafana, but with the prefix path of /login/google.

But as far as I can tell, Google projects disallow callbacks including anything more than http://:
(assuming that what the credentials needed from the Google project concerns “Client ID for Web application”, which I believe they do?)

So I tried to use
http://<my_grafana_server_name_or_ip>:<grafana_server_port>
without the /login/google part, which leads, unsurprisingly to the following error from Google:

Error: redirect_uri_mismatch

The redirect URI in the request, http://localhost:3003/login/google, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: XXXX

Any advice?

Thanks!
Jens

Hi,

I don’t get any validation error when creating a client id, see screenshot below:

Marcus