{"id":4175,"date":"2020-03-10T09:00:41","date_gmt":"2020-03-10T17:00:41","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=4175"},"modified":"2020-03-10T09:00:41","modified_gmt":"2020-03-10T17:00:41","slug":"announcing-xamarin-broker-support-in-msal-net-4-9-0","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/announcing-xamarin-broker-support-in-msal-net-4-9-0\/","title":{"rendered":"Announcing Xamarin broker support in MSAL.NET 4.9.0"},"content":{"rendered":"<p>Hello developers,<\/p>\n<p>We are excited to announce that <a href=\"https:\/\/github.com\/AzureAD\/microsoft-authentication-library-for-dotnet\">MSAL.NET<\/a> now supports brokers for both Xamarin iOS and Xamarin Android apps!<\/p>\n<p><strong>What are brokers?<\/strong><\/p>\n<p>Brokers are Microsoft applications such as the Microsoft Authenticator app (available on iOS and Android) and the Intune Company Portal (available on Android). Brokers can provide your application with:<\/p>\n<ul>\n<li><strong>Single sign-on<\/strong> which allows users to sign-in once to access their apps associated with their Microsoft or Azure AD account on their mobile device.<\/li>\n<li><strong>Device identification<\/strong>, which is required by some\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/conditional-access\/overview\">Conditional Access<\/a> policies such as setting a policy by <a href=\"https:\/\/docs.microsoft.com\/azure\/active-directory\/conditional-access\/conditions#device-platforms\">device platform<\/a><u>.<\/u><\/li>\n<li><strong>Application identification<\/strong> which is required in some enterprise scenarios such as <u><a href=\"https:\/\/docs.microsoft.com\/en-us\/intune\/apps\/mam-faq\">Intune mobile application management<\/a>.<\/u><\/li>\n<\/ul>\n<p>Brokers are our recommended way to ensure seamless and secure sign-in experience for your mobile application and we encourage all developers to use them.<\/p>\n<p><strong>Get started with brokers for your application?<\/strong><\/p>\n<p>To enable brokers for your application, you will call\u00a0<strong>WithBroker()<\/strong>\u00a0at the construction of the application. When the user signs-in, they will be prompted by Azure AD to install the correct broker from the store, depending on the Conditional Access policies in your organization. For subsequent sign-ins, the authentication will directly use the broker instead of prompting the user for credentials.<\/p>\n<p>If your application is using a broker on ADAL.NET, we encourage you to migrate to MSAL.NET by taking advantage of our migration guidance:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/AzureAD\/microsoft-authentication-library-for-dotnet\/wiki\/How-to-migrate-from-using-Android-Broker-on-ADAL.NET-to-MSAL.NET\">ADAL to MSAL .NET Xamarin Android migration page<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/AzureAD\/microsoft-authentication-library-for-dotnet\/wiki\/How-to-migrate-from-using-iOS-Broker-on-ADAL.NET-to-MSAL.NET\">ADAL to MSAL .NET Xamarin iOS migration page<\/a><\/li>\n<\/ul>\n<p>You can share your feedback or reach us for support through <a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/msal\">Stack Overflow<\/a>. Thanks for supporting the Microsoft identity platform and we\u2019re excited to see what you build with MSAL.NET!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are excited to announce that MSAL.NET now supports brokers for both Xamarin iOS and Xamarin Android apps!<\/p>\n","protected":false},"author":69081,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,5],"tags":[22,139],"class_list":["post-4175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-microsoft-identity-platform","tag-azure-ad","tag-xamarin"],"acf":[],"blog_post_summary":"<p>We are excited to announce that MSAL.NET now supports brokers for both Xamarin iOS and Xamarin Android apps!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69081"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=4175"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4175\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=4175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=4175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=4175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}