You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the Web authenticator in a MAUI project built with .NET 8. I followed the Microsoft documentation.
I created the API using the code from the documentation and published it on a public website. Then, I configured the MAUI app following the documentation.
The result is when I try to log in with Microsoft (the only provider I was trying), the first time I have been asked to insert my Microsoft account. Although I closed the app and reopen it, then I tried to log in, I got an error "too many redirections" as you see in the following screenshot.
I saw this post but it is not clear to me what the fix is. Plus, from the documentation, the Web authenticator doesn't work with Windows. DO you know if there is any workaround?
erossini
changed the title
Web authenticator with MAUI (.NET 8): too many redirection
Web authenticator with MAUI (.NET 8): too many redirections
Jan 16, 2024
Being honest, WebAuthenticator is really for using when you need to use web auth with a provider other than one of the main providers (e.g. Microsoft, Google, Apple, Facebook etc.). If you're using one of the main auth providers, a better approach would be to use MSAL - https://learn.microsoft.com/en-us/entra/identity-platform/msal-overview - it does fully work with .NET MAUI.
Type of issue
Other (describe below)
Description
I'm trying to use the Web authenticator in a MAUI project built with .NET 8. I followed the Microsoft documentation.
I created the API using the code from the documentation and published it on a public website. Then, I configured the MAUI app following the documentation.
The result is when I try to log in with Microsoft (the only provider I was trying), the first time I have been asked to insert my Microsoft account. Although I closed the app and reopen it, then I tried to log in, I got an error "too many redirections" as you see in the following screenshot.
I saw this post but it is not clear to me what the fix is. Plus, from the documentation, the Web authenticator doesn't work with Windows. DO you know if there is any workaround?
Page URL
https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/communication/authentication?view=net-maui-8.0&tabs=android
Content source URL
https://github.com/dotnet/docs-maui/blob/main/docs/platform-integration/communication/authentication.md
Document Version Independent Id
829bc017-4a10-6ca5-0717-e1e62f59aacc
Article author
@davidbritch
Metadata
The text was updated successfully, but these errors were encountered: