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

Commit 36329b0

Browse files
committed
Add Description as well to AuthenticateInfo
(needed by Identity)
1 parent 097b339 commit 36329b0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Microsoft.AspNetCore.Http.Abstractions/Authentication/AuthenticateInfo.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@ public class AuthenticateInfo
2020
/// The <see cref="AuthenticationProperties"/>.
2121
/// </summary>
2222
public AuthenticationProperties Properties { get; set; }
23+
24+
/// <summary>
25+
/// The <see cref="AuthenticationDescription"/>.
26+
/// </summary>
27+
public AuthenticationDescription Description { get; set; }
2328
}
2429
}

src/Microsoft.AspNetCore.Http/Authentication/DefaultAuthenticationManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public override async Task<AuthenticateInfo> GetAuthenticateInfoAsync(string aut
9292
return new AuthenticateInfo
9393
{
9494
Principal = context.Principal,
95-
Properties = new AuthenticationProperties(context.Properties)
95+
Properties = new AuthenticationProperties(context.Properties),
96+
Description = new AuthenticationDescription(context.Description)
9697
};
9798
}
9899

0 commit comments

Comments
 (0)