7

I manage an app which is available on a lot (>50) of different domains, and which uses Google OAuth 2.0 for authentication. I've seen in this question that it's possible to add several redirect URIs by separating them with a newline; but is there a way to do this programmatically, for instance with a CLI tool?

The closest thing I could find is gcloud auth, but it says nothing about adding redirect URIs.

Community
  • 1
  • 1
LoicAG
  • 603
  • 3
  • 19
  • Wouldn't it be easier to have Google redirect to a single central location (`auth.yourapp.com`) then redirect to a specific domain (`yourapp.customer.com`) from there? Then you won't have to inform Google every time you add or remove a domain. – Wander Nauta Jul 05 '16 at 07:53
  • @Wander Nauta Unfortunately I'm not at liberty of changing this – LoicAG Jul 06 '16 at 09:56
  • Did you find any solution for this ? Thanks – jhagege Jun 04 '17 at 08:41
  • 2
    @cyberjoac I didn't find a proper solution, no; as a workaround, a colleague of mine wrote a selenium script that automatically inserted the URLs in the web form – LoicAG Jun 05 '17 at 09:17
  • 1
    @LoicAG are you able to share the selenium script you've used as a workaround? – Andrew Apr 30 '19 at 07:11
  • @Andrew unfortunately not, sorry, it was many jobs ago... – LoicAG May 01 '19 at 08:22

0 Answers0