Skip to content

Commit 000e8c6

Browse files
committed
Add redirect for unauthenticated users
1 parent 8648ee7 commit 000e8c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Components/Blazor/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ private async Task ProcessLogOut(string returnUrl)
287287
throw new InvalidOperationException($"Invalid authentication result status '{result.Status ?? "(null)"}'.");
288288
}
289289
}
290+
else
291+
{
292+
Navigation.NavigateTo(returnUrl);
293+
}
290294
}
291295

292296
private async Task ProcessLogOutCallback()

0 commit comments

Comments
 (0)