Skip to content

Commit

Permalink
Add inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Sep 14, 2023
1 parent 4d6bb56 commit 7d4365b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions articles/quickstart/webapp/aspnet-owin/01-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,14 @@ public void Configuration(IAppBuilder app)
// https://docs.microsoft.com/en-us/aspnet/samesite/owin-samesite
CookieManager = new SameSiteCookieManager(new SystemWebCookieManager()),

// Configure Auth0's Logout URL by hooking into the RedirectToIdentityProvider notification,
// which is getting triggered before any redirect to Auth0 happens.
Notifications = new OpenIdConnectAuthenticationNotifications
{
RedirectToIdentityProvider = notification =>
{
// Only when the RequestType is OpenIdConnectRequestType.Logout should we configure the logout URL.
// Any other RequestType means a different kind of interaction with Auth0 that isn't logging out.
if (notification.ProtocolMessage.RequestType == OpenIdConnectRequestType.Logout)
{
var logoutUri = $"https://{auth0Domain}/v2/logout?client_id={auth0ClientId}";
Expand Down

0 comments on commit 7d4365b

Please sign in to comment.