你可以用ouath时,自定义谷歌同意页面的外观 [英] Can you customise Google consent page look when using ouath
问题描述
正如标题所说,我想自定义您从谷歌获得,当用户需要登录和授权的应用程序的页面。我不与授权,重定向和令牌交流,但只能用这种形式的视觉风格的任何问题。 为了更precise我有一个HTML组件(Web浏览器查看),在我的AIR应用程序是200像素宽,但我从谷歌获得的对话是更广泛,不适合的看法。
As the title says I am trying to customise the page that you get from Google when user needs to log in and authorise your app. I am not having any problems with authorisation, redirections and token exchanges but only with the visual style of this form. To be more precise I have a HTML component (a web browser view) in my AIR app which is 200px wide but the dialogue which I get from Google is wider and doesn't fit into the view.
有没有办法把对话的最小宽度,并将其扩展到200像素? 例如:什么将一个呢,如果你已经是像的WebView比如在Android手机的小分辨率为240px? 有什么GET参数或替代的URL针对这些情况比 https://accounts.google.com/其他O / oauth2 / AUTH ? 此外,我想获得与黑暗的主题一个页面,如果有一些选项,太多,但这并不重要。
Is there a way to turn min-width of the dialogue and scale it to 200px? For example: what would one do if all you have is 240px of a webview like for example on Android phones with small resolution? Are there any get parameters or alternative urls for these situations other than https://accounts.google.com/o/oauth2/auth? Also I would like to get a page with "Dark theme" if there is some option for that too but this is not crucial.
推荐答案
我如何解决它的Android版本:
How I solved it on Android:
view.loadUrl("javascript:(function() { "
+ "document.getElementsByClassName('signin-card')[0].style.width = 'auto';" + "})()");
让我们永远不要谈论这个了。
Let us never speak of this again.
这篇关于你可以用ouath时,自定义谷歌同意页面的外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!