skip to Main Content

Azure Cli – automated login (non-interactive)

What is the best way to perform unattended az login in a "single-tenant/multiple-subscription" environment? In this example. I'll use --device-code login method. $ az login --use-device-code To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter…

VIEW QUESTION

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