Skip to content

Commit

Permalink
Fixed login
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Jun 20, 2024
1 parent fe97d41 commit 8ae25db
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ public async Task InvokeAsync(HttpContext context)
return;
}

if (context.Request.Path.StartsWithSegments("/api")
if (context.Request.Path.StartsWithSegments("/api/session/auth"))
{
await context.ChallengeAsync();
}
else if (
context.Request.Path.StartsWithSegments("/api")
|| context.Request.Path.StartsWithSegments("/graphql")
|| context.Request.Path.StartsWithSegments("/signalR")
|| context.Request.Path.StartsWithSegments("/error"))
Expand Down

0 comments on commit 8ae25db

Please sign in to comment.