Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.

Commit df88adf

Browse files
committed
Addressing quetion #29
1 parent b195ca1 commit df88adf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TodoListWebApp/Controllers/AccountController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public IActionResult SignIn()
1616
{
1717
var redirectUrl = Url.Action(nameof(HomeController.Index), "Home");
1818
return Challenge(
19-
new AuthenticationProperties { RedirectUri = redirectUrl },
19+
new AuthenticationProperties { RedirectUri = redirectUrl, AllowRefresh = true },
2020
OpenIdConnectDefaults.AuthenticationScheme);
2121
}
2222

@@ -32,7 +32,7 @@ public IActionResult SignOut()
3232
// Let Azure AD sign-out
3333
var callbackUrl = Url.Action(nameof(SignedOut), "Account", values: null, protocol: Request.Scheme);
3434
return SignOut(
35-
new AuthenticationProperties { RedirectUri = callbackUrl },
35+
new AuthenticationProperties { RedirectUri = callbackUrl, AllowRefresh = true },
3636
CookieAuthenticationDefaults.AuthenticationScheme,
3737
OpenIdConnectDefaults.AuthenticationScheme);
3838
}

0 commit comments

Comments
 (0)