hunterlan
Blazor Static SSR - redirect after form submission
I woudl like to redirect user after successful login. However, after
NavigationManager.NavigateTo
, it throws an exception. I tried to find any useful information, but I found nothing.
Here's my HTML form:
C# code:
8 replies
Root - level cascading value and parameter
According to official documentation(https://learn.microsoft.com/en-us/aspnet/core/blazor/components/cascading-values-and-parameters?view=aspnetcore-8.0), I can create a cascading parameter like that:
builder.Services.AddCascadingValue(sp => new CascadingValueSource<UserState>(new UserState(), isFixed: false));
And then use it like that:
[CascadingParameter]
public UserState UserState { get; set; }
And our variable UserState shouldn't be null, right?
I have a Blazor Web App project (InteractiveAuto) and unfortunately, UserState for me is null. I called AddCascadingValue to both projects and it's still null. I don't understand what I am doing wrong.1 replies
No authenticationScheme was specified, and there was no DefaultChallengeScheme found.
Hello, there! I added JWT Authentication to my ASP.NET Core Web API project by this code snipper:
Then, when I'm requesting any endpoint that requires authorization, asp.net core throws an exception:
What am I doing wrong?
4 replies