使用Xamarin和Azure AD B2C设置自定义选项卡的样式 [英] Styling the custom tab with Xamarin and Azure AD B2C

查看:88
本文介绍了使用Xamarin和Azure AD B2C设置自定义选项卡的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了使用自定义Chrome的 AuthExample 的示例具有Azure AD B2C策略的选项卡.

I followed the example of AuthExample that uses Custom Chrome Tabs with Azure AD B2C policies.

我没有找到有关如何设置自定义chrome标签(以及Safari控制器)样式的任何资源.该选项卡始终在标题中显示URL和看起来不太自然的标准颜色.

I do not find any resources on how to style the custom chrome tab (and respectively the Safari controller). The tab always shows the URL in the header and the standard colors which does not look very native.

我知道我可以在Azure门户中设置页面内容的样式.

I know I can style the page content itself within Azure portal.

任何人都可以引导我访问有关如何设置浏览器视图样式以适应我的应用程序设计的链接或教程,并且至少在用户登录/注册时不显示Microsoft URL.我认为用户甚至都不会注意到他已重定向到浏览器选项卡.

Can anyone guide me to links or tutorials on how to style the browser view to adapt to my app design and at least not show the Microsoft URL when the user signs in/up. In my opinion the user shouldn't even notice he is redirected to a browser tab.

前面提到的链接建议,可以至少在本地登录/注册时隐藏URL栏.对于第三方身份提供商,重定向到另一个(身份提供商拥有的)站点不是问题.

The beforementioned link suggests, that it is possible to at least hide the URL bar at local sign in / sign up. For third-party identity providers it isn't a problem to get redirected to another (identity provider owned) site.

推荐答案

无法删除Xamarin控件中的URL.

实现完全用户界面自定义的理想方法是使用OAuth资源所有者密码凭据流程.这将允许您构建自己的用户界面,而无需利用网络视图(也称为自定义Chrome标签"和"Safari控制器)用于本地帐户.请记住,对于像Facebook和Google这样的第三方身份提供者,无法绕过Web视图和标头中的URL.这是设计使然,也是防止网络钓鱼的关键安全要求.

The ideal way to achieve full UI customization is to use the OAuth Resource Owner Password credential flow. This will allow you to build your own UI and not leverage a web view (aka Custom Chrome Tabs and Safari controller) for local account. Keep in mind that for 3rd party identity providers like Facebook and Google, there is no way around the web view and the URL in the header. This is by design and a key security requirement to prevent phishing.

目前,Azure AD B2C不支持此流程.您可以通过在Azure AD B2C反馈论坛中对该问题进行投票来支持该问题并保持最新状态:

At this time, this flow is not supported in Azure AD B2C. You can support this ask and stay up to date on its status by voting for it in the Azure AD B2C feedback forum: Add support for Resource Owner Password Credentials flow

这篇关于使用Xamarin和Azure AD B2C设置自定义选项卡的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆