Skip to content

Commit 8bf7c68

Browse files
committed
logout
1 parent d250ac7 commit 8bf7c68

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

aspnetcore/security/authentication/configure-oidc-web-authentication.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ public class LogoutModel : PageModel
159159
{
160160
RedirectUri = "/SignedOut"
161161
},
162+
// Clear auth cookie
162163
CookieAuthenticationDefaults.AuthenticationScheme,
164+
// Redirect to OIDC provider signout endpoint
163165
OpenIdConnectDefaults.AuthenticationScheme);
164166
}
165167
}

aspnetcore/security/authentication/configure-oidc-web-authentication/sample/oidc-net8/RazorPageOidc/Pages/Logout.cshtml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public IActionResult OnGetAsync()
1616
{
1717
RedirectUri = "/SignedOut"
1818
},
19+
// Clear auth cookie
1920
CookieAuthenticationDefaults.AuthenticationScheme,
21+
// Redirect to OIDC provider signout endpoint
2022
OpenIdConnectDefaults.AuthenticationScheme);
2123
}
2224
}

0 commit comments

Comments
 (0)