i'm trying out heroku's new "heroku review apps" feature. creates new heroku app whenever create new pull request in github given project.
i'm trying google oauth2 support working them, each created app has new url. e.g. https://my-app-pr-124.herokuapp.com
the problem when user tries sign in on new app, google won't allow redirecting user app, since google doesn't trust url yet.
i can include own google api key app, , run script on deploy, how can inform google new url should trusted redirects?
you can't, unfortunately.
you might able bounce them off redirect proxy (i made name up) achieve want. like:-
- declare redirect url of http://myredirectproxy.example.com
- at http://myredirectproxy.example.com have simple http server responds http 301 https://my-app-pr-124.herokuapp.com
Comments
Post a Comment