padmans1 / MauiBlazorWeb

0 stars 0 forks source link

Incorporating Authentication and Authorization #1

Open VR-Architect opened 1 month ago

VR-Architect commented 1 month ago

Hello, I am working on this new template also. Just spent an entire day trying to get ASP.NET Core Identity to work with it without any luck. Have you had any chance to extend this sample from Microsoft by chance?

Also, I tried to add a page that is only on the Web server, like login and register, but the routes are not finding the pages.

Thanks for any collaboration on this if you happen to be going in the same direction?

padmans1 commented 1 month ago

Hello, i've not added the authentication yet. The idea is to create a single UI for both maui and web applications. Will add the authentication and authorization by end of this week. Shall let you know about it.

VR-Architect commented 1 month ago

Awesome to hear you are on the same path.

I made a breakthrough. At the bottom of the Microsoft webpage https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/maui-blazor-web-app?view=aspnetcore-8.0

It explains how we need to use interfaces to share a single ui but have separate code hosted in the Maui project verses the Web project. So I put all my UI razor pages on the Shared Project and putting all the Identity into the Web project. Once this is working, I will try to complete the Maui side. Took me a while to figure that part out.