Is there a way to skip the “Your domain administrator has approved” page in Apps Marketplace Oauth2?

核能气质少年 提交于 2020-01-16 18:33:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!