Add Description as well to AuthenticateInfo

(needed by Identity)
This commit is contained in:
Hao Kung 2016-05-17 14:14:10 -07:00
parent 097b339f74
commit 36329b07c8
2 changed files with 7 additions and 1 deletions

View File

@ -20,5 +20,10 @@ namespace Microsoft.AspNetCore.Http.Authentication
/// The <see cref="AuthenticationProperties"/>.
/// </summary>
public AuthenticationProperties Properties { get; set; }
/// <summary>
/// The <see cref="AuthenticationDescription"/>.
/// </summary>
public AuthenticationDescription Description { get; set; }
}
}

View File

@ -92,7 +92,8 @@ namespace Microsoft.AspNetCore.Http.Authentication.Internal
return new AuthenticateInfo
{
Principal = context.Principal,
Properties = new AuthenticationProperties(context.Properties)
Properties = new AuthenticationProperties(context.Properties),
Description = new AuthenticationDescription(context.Description)
};
}