From 6e928ba4e3fdb88e40e3c7355f137d3c5a698660 Mon Sep 17 00:00:00 2001 From: max Date: Mon, 14 Oct 2024 15:31:04 +0200 Subject: [PATCH] Working on auth --- DotBased | 2 +- .../Components/Pages/{ => Application}/Error.razor | 0 .../Components/Pages/{Auth => Application}/Login.razor | 1 - SharpRSS.Blazor/Components/Pages/Application/_Imports.razor | 6 ++++++ SharpRSS.Blazor/Components/Pages/_Imports.razor | 5 +++++ SharpRSS.Blazor/Components/Routes.razor | 2 +- SharpRSS.Blazor/Program.cs | 3 ++- 7 files changed, 15 insertions(+), 4 deletions(-) rename SharpRSS.Blazor/Components/Pages/{ => Application}/Error.razor (100%) rename SharpRSS.Blazor/Components/Pages/{Auth => Application}/Login.razor (94%) create mode 100644 SharpRSS.Blazor/Components/Pages/Application/_Imports.razor create mode 100644 SharpRSS.Blazor/Components/Pages/_Imports.razor diff --git a/DotBased b/DotBased index 17f6982..d98634d 160000 --- a/DotBased +++ b/DotBased @@ -1 +1 @@ -Subproject commit 17f69824eb3a854be545c3517c8ecd4bb63eab7b +Subproject commit d98634d8887e0bab7add7f2181c2cdd5db77e1d2 diff --git a/SharpRSS.Blazor/Components/Pages/Error.razor b/SharpRSS.Blazor/Components/Pages/Application/Error.razor similarity index 100% rename from SharpRSS.Blazor/Components/Pages/Error.razor rename to SharpRSS.Blazor/Components/Pages/Application/Error.razor diff --git a/SharpRSS.Blazor/Components/Pages/Auth/Login.razor b/SharpRSS.Blazor/Components/Pages/Application/Login.razor similarity index 94% rename from SharpRSS.Blazor/Components/Pages/Auth/Login.razor rename to SharpRSS.Blazor/Components/Pages/Application/Login.razor index 9ae2b97..4ea1d84 100644 --- a/SharpRSS.Blazor/Components/Pages/Auth/Login.razor +++ b/SharpRSS.Blazor/Components/Pages/Application/Login.razor @@ -1,7 +1,6 @@ @page "/Auth/Login" @using SharpRSS.Blazor.Extensions @inject NavigationManager NavigationManager -@attribute [AllowAnonymous] Login | SharpRSS diff --git a/SharpRSS.Blazor/Components/Pages/Application/_Imports.razor b/SharpRSS.Blazor/Components/Pages/Application/_Imports.razor new file mode 100644 index 0000000..f7fc82e --- /dev/null +++ b/SharpRSS.Blazor/Components/Pages/Application/_Imports.razor @@ -0,0 +1,6 @@ +@layout EmptyLayout +@attribute [AllowAnonymous] + +@code { + +} \ No newline at end of file diff --git a/SharpRSS.Blazor/Components/Pages/_Imports.razor b/SharpRSS.Blazor/Components/Pages/_Imports.razor new file mode 100644 index 0000000..1481e51 --- /dev/null +++ b/SharpRSS.Blazor/Components/Pages/_Imports.razor @@ -0,0 +1,5 @@ +@layout MainLayout + +@code { + +} \ No newline at end of file diff --git a/SharpRSS.Blazor/Components/Routes.razor b/SharpRSS.Blazor/Components/Routes.razor index 0705dc9..c37bd1b 100644 --- a/SharpRSS.Blazor/Components/Routes.razor +++ b/SharpRSS.Blazor/Components/Routes.razor @@ -13,9 +13,9 @@ + Not found! @*TODO: Manage not found*@ - Not found!

Page not found!

diff --git a/SharpRSS.Blazor/Program.cs b/SharpRSS.Blazor/Program.cs index 9ea8342..04ccea9 100644 --- a/SharpRSS.Blazor/Program.cs +++ b/SharpRSS.Blazor/Program.cs @@ -80,6 +80,7 @@ app.UseAntiforgery(); app.UseBasedServerAuth(); app.MapRazorComponents() - .AddInteractiveServerRenderMode(); + .AddInteractiveServerRenderMode() + .AllowAnonymous(); app.Run(); \ No newline at end of file