1

I have wpf application where I'm acquiring token using msal.net.

I want to force the user to input credetials everytime. I understand that this can be achieved with Prompt.ForceLogin however this doesnt seem to work for social idps. Is there something I'm missing or is this not supported?

Only I have been able to get this behaviour is with InternetSetOption as proposed here

Here's the msal code

var app = PublicClientApplicationBuilder
                .Create(clientId)
                .WithB2CAuthority(authorityEndpoint)
                .Build();

var authenticationResult = await app.AcquireTokenInteractive(scopes)
                .WithPrompt(Prompt.ForceLogin)
                .ExecuteAsync();

0 Answers0