Maybe I'm missing something but in the file MauiProgram.cs
the builder.Build()
return an object of type MauiApp
and this does not contain the extension methods UseAuthentication()
and UseAuthorization()
that normaly in Blazor/asp net core projects you would find for IApplicationBuilder
.
So do I need to use the WebAuthenticator as explained here https://devblogs.microsoft.com/xamarin/xamarin-essentials-1-7-and-introducing-net-maui-essentials/
in order to archieve the same result?
Asked
Active
Viewed 1,498 times
3

ScottexBoy
- 452
- 1
- 4
- 17
-
1Ended up extending AuthenticationStateProvider and making a custom one... – ScottexBoy Jan 21 '22 at 16:55
-
2Would you be willing to share your code or even better a working example on github? – Duken.Jr Jan 24 '22 at 18:59
-
1@Duken.Jr sure, i can make a new working example but it will take me a while. I can't share the code i have in my job project. If you need any suggestion in the mean while tell me. – ScottexBoy Feb 17 '22 at 16:50
1 Answers
0
As OP stated, he extended AuthenticationStateProvider and making a custom one..
I added an example of this here:

Mentyy
- 11
- 1
- 7
-
1don't point to your own answer. Mark the question as duplicate if they are same. – SRIDHARAN Jun 17 '22 at 07:52
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 17 '22 at 07:53