Hi @Moin Mohamed ,
Thanks for reaching out.
I have tried the sample application mentioned in the document and added "redirect" login in program.cs as below. I am successfully able to redirect to application after login using "redirect" in same way as popup.
builder.Services.AddMsalAuthentication(options =>
{
...
options.ProviderOptions.LoginMode = "redirect";
});
As mentioned by @Moin Mohamed , the issue here is due to redirect URL has not been configured properly while registering the application due to which user is not able to access that URL.
Thanks,
Shweta
Hi @Moin Mohamed ,
Thanks for sharing the solution. I have updated my answer based on your solution so it would help others.
Please don’t forget to click "Accept the answer" and Up-Vote for the same, which might be beneficial to other community members reading this thread.
Thanks,
Shweta