-
Hi Folk, I'm facing an issue with the BlazorServer application.
In debug, the section below works well ans the cookie is well created
Does someone has already encounter this issue ? Thanks a lot for you feedback in advance, Best regards, Version and Platform |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
aspnetcore and Blazor do not work with anything other than In fact, in CSLA 6 I am removing all the old principal/identity types from the framework, as they've become effectively useless due to Microsoft's changes. In CSLA 5.4.0 (I think) the default unauthenticated principal was changed from Csla.ApplicationContext.User = new ClaimsPrincipal(); |
Beta Was this translation helpful? Give feedback.
-
Hello Rocky, Thx for your answer, I have followed your advice and added the code below into the "Startups.cs" without success.
Next, I have upgraded the solution with the latest CSLA version (4.5.1) but i got same error with the ServerSide Blazor. Below package used by the project ServerSide Blazor :
Finally, I have double checked if all IIS components et SDK/Runtime Core are well installed. I must missing something but I dont give up. Thanks for your help, Cedric |
Beta Was this translation helpful? Give feedback.
-
Quick question that is possibly related to this... I have a small Blazor server project and I tried using the same code as in the Using CLSA 5: Blazor and WebAssembly book but I'm having an issue in that the Csla.ApplicationContext.User is not being set automatically as indicated on Page 137. Here is the testing code ....
I tried to add this But still I have Csla.Security.UnauthenticatedPrincipal when I try to use it on one of my pages? Any thoughts? I tried looking at your example projects (ex: BlazorAuthServer) but I couldn't find good example that demonstrated this. |
Beta Was this translation helpful? Give feedback.
Hello Rocky,
Thx for your answer, I have followed your advice and added the code below into the "Startups.cs" without success.
Next, I have upgraded the solution with the latest CSLA version (4.5.1) but i got same error with the ServerSide Blazor.
By the way the ClientSide Blazor works perfectly with both CSLA version(using multi-head solution)
Below packag…