Creating authentication ticket by passing in a principal
This fixes bug : https://github.com/aspnet/Security/issues/144
This commit is contained in:
parent
a249cbbdfc
commit
4e83a678c0
|
|
@ -343,7 +343,7 @@ namespace Microsoft.AspNet.Security.OpenIdConnect
|
||||||
throw new InvalidOperationException("No SecurityTokenValidator found for token: " + openIdConnectMessage.IdToken);
|
throw new InvalidOperationException("No SecurityTokenValidator found for token: " + openIdConnectMessage.IdToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
ticket = new AuthenticationTicket(principal.Identity as ClaimsIdentity, properties);
|
ticket = new AuthenticationTicket(principal, properties, Options.AuthenticationType);
|
||||||
if (!string.IsNullOrWhiteSpace(openIdConnectMessage.SessionState))
|
if (!string.IsNullOrWhiteSpace(openIdConnectMessage.SessionState))
|
||||||
{
|
{
|
||||||
ticket.Properties.Dictionary[OpenIdConnectSessionProperties.SessionState] = openIdConnectMessage.SessionState;
|
ticket.Properties.Dictionary[OpenIdConnectSessionProperties.SessionState] = openIdConnectMessage.SessionState;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue