From 36329b07c8cf19f649e26f05db3627e82e119277 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Tue, 17 May 2016 14:14:10 -0700 Subject: [PATCH] Add Description as well to AuthenticateInfo (needed by Identity) --- .../Authentication/AuthenticateInfo.cs | 5 +++++ .../Authentication/DefaultAuthenticationManager.cs | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Http.Abstractions/Authentication/AuthenticateInfo.cs b/src/Microsoft.AspNetCore.Http.Abstractions/Authentication/AuthenticateInfo.cs index 41ffdfbb81..9e8e3fd537 100644 --- a/src/Microsoft.AspNetCore.Http.Abstractions/Authentication/AuthenticateInfo.cs +++ b/src/Microsoft.AspNetCore.Http.Abstractions/Authentication/AuthenticateInfo.cs @@ -20,5 +20,10 @@ namespace Microsoft.AspNetCore.Http.Authentication /// The . /// public AuthenticationProperties Properties { get; set; } + + /// + /// The . + /// + public AuthenticationDescription Description { get; set; } } } diff --git a/src/Microsoft.AspNetCore.Http/Authentication/DefaultAuthenticationManager.cs b/src/Microsoft.AspNetCore.Http/Authentication/DefaultAuthenticationManager.cs index 257ca2d759..e6540d2b7d 100644 --- a/src/Microsoft.AspNetCore.Http/Authentication/DefaultAuthenticationManager.cs +++ b/src/Microsoft.AspNetCore.Http/Authentication/DefaultAuthenticationManager.cs @@ -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) }; }