- ABP Framework version: v8.3.2
- UI Type: Blazor WASM
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
Hello,
I have an issue in my project built with ABP 8.3.2 – Blazor WebAssembly.
When I try to access a page protected by authentication while not logged in, the redirect to the login page does not work correctly. The navigation seems to stop in the middle of the flow and the login page is not displayed.
Could you please take a look at the repository and help us understand why this behavior occurs? I am attaching the link to the GitHub repository. The repository is private, but maliming already has access.
GITHUB LINK: https://github.com/RobertoFiocchiMCSI/Cdi.Grc.AbpSupport
We remain available for any additional information. Thank you.
15 Answer(s)
-
0
hi
Please make your repository PRIVATE and invite https://github.comn/maliming
The navigation seems to stop in the middle of the flow and the login page is not displayed.
Can you share some screenshots and steps to reproduce?
Thanks
-
0
[maliming] said: hi
Please make your repository PRIVATE and invite https://github.comn/maliming
The navigation seems to stop in the middle of the flow and the login page is not displayed.
Can you share some screenshots and steps to reproduce?
Thanks
The repository is already private and you have already been invited so it seems public to you :-)
Steps:
- Run the application
- Go to https://localhost:44390/demo-components You will be redirected to https://localhost:44390/authentication/login , but the login is not displayed.
Thanks
-
0
hi
I can't restore the nuget packages.
Response status code does not indicate success: 401 (Unauthorized). error NU1301: Unable to load the service index for source https://pkgs.dev.azure.com/xxxxuget/v3/index.json. Response status code does not indicate success: 401 (Unauthorized).
-
0
Can you share a minimal project?
Thanks.
-
0
[maliming] said: hi
I can't restore the nuget packages.
Response status code does not indicate success: 401 (Unauthorized). error NU1301: Unable to load the service index for source Response status code does not indicate success: 401 (Unauthorized).
I updated the personal access token in NuGet.config. Can you pull it and try again?
Thanks
P.s. Please remove the feed link from the previous post.
-
0
-
0
I have updated the Directory.Build.props and NuGet.Config files in the main branch.
Please use exactly what is currently in main, without modifying the configurations.
I also tested the setup on a new PC, and the restore works correctly.
Thank you
-
0
hi
Thanks. I will check it.
-
0
hi
I made some changes. Can you confirm it?
https://github.com/RobertoFiocchiMCSI/Cdi.Grc.AbpSupport/commit/4b51831f6463e41df622bd11f985eea7757debd8
Thanks
-
0
Hi,
the solution does not compile. This is because in the Program.cs of the Blazor project you are using app.MapStaticAssets();, which is a .NET 9 method.
Our project is currently targeting .NET 8, so this method is not available.
Thank you.
-
0
ok, can you test only
src/Cdi.Grc.Blazor.Client/Components/MyWebAssemblyRedirectToLogin.razor?Thanks.
-
0
I tested src/Cdi.Grc.Blazor.Client/Components/MyWebAssemblyRedirectToLogin.razor. With the addition of this component, the redirect to the login page works correctly.
However, after a successful login, the user is not redirected back to the originally requested page. Instead, the application always redirects to the home page.
Thanks.
-
0
hi
Can you test this commit again?
https://github.com/RobertoFiocchiMCSI/Cdi.Grc.AbpSupport/commit/3d30f273f4b0e612048400d00de86c7d1fe4ba66 Thanks
-
0
Hi, it's working fine.
Thank You
-
0
Great!
