Hi @Moinuddin 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 @Moinuddin 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