Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 1d984be

Browse files
committed
Switch to token api for OIDC IdTokenHint
1 parent 73614d1 commit 1d984be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Microsoft.AspNetCore.Authentication.OpenIdConnect/OpenIdConnectHandler.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ protected override async Task HandleSignOutAsync(SignOutContext signout)
105105
message.PostLogoutRedirectUri = logoutRedirectUri;
106106
}
107107

108-
var principal = await Context.Authentication.AuthenticateAsync(Options.SignInScheme);
109-
message.IdTokenHint = principal?.FindFirst(OpenIdConnectParameterNames.IdToken)?.Value;
110-
108+
// REVIEW: is the id token hint required?
109+
message.IdTokenHint = await Context.Authentication.GetTokenAsync(OpenIdConnectParameterNames.IdToken);
111110
var redirectContext = new RedirectContext(Context, Options, properties)
112111
{
113112
ProtocolMessage = message

0 commit comments

Comments
 (0)