简体   繁体   English

我们如何删除/自定义 Xamarin 表单中的 Azure AD B2C 身份验证 webview 页面标题栏?

[英]How can we remove / customize Azure AD B2C authentication webview page title bar in Xamarin forms?

A title bar is displayed in the web view activity when using Azure AD B2C authentication service with MSAL in Xamarin forms.在 Xamarin 表单中将 Azure AD B2C 身份验证服务与 MSAL 结合使用时,标题栏会显示在 Web 视图活动中。 I have attached a screen shot of it running on an android phone below.我附上了它在下面的 android 手机上运行的屏幕截图。 I have the following questions :我有以下问题:

1) How do I remove it? 1)我如何删除它? Is it even possible?甚至有可能吗?

2) Also Is it possible to customize the top bar? 2)也可以自定义顶部栏吗? Change the colors, font size etc. If so how?更改颜色、字体大小等。如果是,如何更改?

3) How do I change the text of the top bar? 3) 如何更改顶部栏的文本? Is localization possible for the text in the top bar based on user's language settings in the app?是否可以根据应用程序中用户的语言设置对顶部栏中的文本进行本地化?

Thanks a ton in advance!!提前致谢!!

截屏

I finally used a custom web view instead of MSAL and checked the web view's URL whenever it changed using PropertyChanged().我最终使用了自定义 Web 视图而不是 MSAL,并在使用 PropertyChanged() 更改时检查了 Web 视图的 URL。 If the web view contains the redirection URL then I hide the web view and parse the token that is provided along with it to get the result of the user's action in ADB2C.如果 web 视图包含重定向 URL,那么我隐藏 web 视图并解析随它提供的令牌以获取用户在 ADB2C 中的操作结果。

I'd also be interested in some more details about how you created the custom webview. 我也会对您如何创建自定义Webview的更多详细信息感兴趣。 There aren't a lot of other options out there. 那里没有很多其他选择。 Thanks! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM