skip to Main Content

Azure B2C / WPF – Handling a failed MFA verification flow

I have the following client code to fetch a token from Azure B2C endpoint: public static async Task<AuthenticationResult> AcquireTokenAsync(this IPublicClientApplication publicClientApp) { try { var accounts = await publicClientApp.GetAccountsAsync(); return await Task.Run(() => publicClientApp .AcquireTokenInteractive(apiScopes) .WithAccount(accounts.FirstOrDefault()) .WithPrompt(Prompt.ForceLogin) .ExecuteAsync()); } catch…

VIEW QUESTION
Back To Top
Search