0

I am trying to set up a Login with Google button for a web app of a company intranet.

Is it ok to use a login with Google button for a web app that is not published on the internet but is only for an intranet?

Specifically, it possible to set a local domain name or a private IP as authorized origins for Javascript?

I just found this similar question but without answers...

Following this question suggestions, I also already tried:

  • nip.io and sslip.io.

  • using a mycustomdomain.com and put in Windows hosts file "127.0.0.1 mycustomdomain.com"

  • attach the :80 port to every Javascript Origins

In all these cases I keep receiving a client-side error "The given origin is not allowed for the given client ID" despite, for the last two cases I have these allowed javascript origins, this request header and this in the Windows host file:

10.9.1.112 rd.raicam.com

Where 10.9.1.112 is just a test server with the webapp loaded to it... just for not use localhost and try to make the login work.

I would be grateful if you could provide me with a suggestion... I haven't found any official Google clarification on this topic.

wootrop
  • 1
  • 1
  • _"I also already tried:"_ - and what specific problems/errors did you run into? Which point of this exactly is causing trouble? Are you not able to store the setting in your app dashboard, are you getting errors on the client side, ...? – CBroe May 22 '23 at 09:03
  • Thanks for the comment. I modified the question by clarifying the error that I am encountering. – wootrop May 22 '23 at 09:13
  • And what origin value actually gets _used_? Can't see that from those screen-shotted messages. – CBroe May 22 '23 at 09:25
  • Ok I just added also the request header... do you mean the Origin value, right? – wootrop May 22 '23 at 09:47

0 Answers0