问题
I have a Google Apps Marketplace (v2) app I am working on setting up Oauth2 for.
I've got everything working, but for some reason when I do a redirect to the authentication page, after, after you select which Google account to use (if like you're me and are testing, you have to pick one of several Google accounts you're currently signed into), I get sent to another page which seems utterly pointless:
This is bizarre and annoying, because I am logging in as the domain administrator!
Does anyone know a way to skip this screen, or what I might be doing to be cursed with this terrible user experience?
回答1:
I believe this shows up only if app requests refresh token for offline access. Also this should only appear first time you access the app after installation.
In order to skip this you need to update app to not request refresh tokens.
回答2:
I just confirmed that having access_type=offline
will always display this page, even with approval_prompt=auto
. You will always get back a refresh token as well.
The only way to hide it is to remove access_type=offline
on future login requests (ask only on signup).
来源:https://stackoverflow.com/questions/25491603/is-there-a-way-to-skip-the-your-domain-administrator-has-approved-page-in-apps