We've recently introduced Google Single Sign-on to our platform. It works well, except for one issue. All our development branches are automatically assigned a url that looks something like https://{branch-name}.ourdomain.com
. As of right now, we have to manually add the authorized origin for each environment, which is not scalable for us.
Is there a solution, such as an API we can use in our deployment process, that doesn't require us to authorize from the same origin for all our branches and doing a redirect dance? The ideal solution would be the wildcard solution where we could add https://*.ourdomain.com
as an authorized origin, but that doesn't seem to be allowed in the Google Cloud Platform.