nerdybeast / TheEsportsReplayManager

0 stars 0 forks source link

Auth is a disaster in a dotnet Maui Blazor App #1

Open nerdybeast opened 11 months ago

nerdybeast commented 11 months ago

Documentation on how to add Auth0 to Blazor app: https://auth0.com/blog/add-authentication-to-blazor-hybrid-apps-in-dotnet-maui/ However that doesn't work on Windows Workaround if you're not using a Blazor Hybrid App (Razor pages): https://auth0.com/blog/add-authentication-to-dotnet-maui-apps-with-auth0/#Apply-Platform-Specific-Changes We are using Razor so that doesn't seem to work (or I just haven't figured out how to do it yet) This is important about Auth from Maui in general and is the reason the auth doesn't work on Windows: https://github.com/microsoft/WindowsAppSDK/issues/441 In that thread there is a guy that has this as a possible way to make this work: https://dotmorten.github.io/WinUIEx/concepts/WebAuthenticator.html

vijay-karavadra commented 11 months ago

@nerdybeast This article may help - https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/security/?view=aspnetcore-7.0&pivots=maui.