Setting Login Mode on Windows Machine #26
-
When initiating the user login on the Windows machine how would I specify a redirect rather than a popup login? Could MsalProviderOptions.LoginMode do this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I have recently updated the sample, which should open browser instead of Popup. You also need to redirect to localhost instead of msal. |
Beta Was this translation helpful? Give feedback.
-
Thanks for that update. I actually tried adding .WithUseEmbeddedWebView(false), but I did not update the redirect. One clarification, must I update it in the client config? Currently its set to the msal. |
Beta Was this translation helpful? Give feedback.
-
Got it working. Its now opening in the browser. Is there a flow that will open a login screen inside the application window? Not a pop-up and not a browser page with the dialog embedded. |
Beta Was this translation helpful? Give feedback.
I have recently updated the sample, which should open browser instead of Popup.
See https://github.com/VladislavAntonyuk/MauiSamples/blob/main/Auth/AuthServices/BaseAuthService.cs#L19
You also need to redirect to localhost instead of msal.