Skip to content

Commit 24d3586

Browse files
committed
Add a Properties property to OpenIdAuthenticatedContext
1 parent d053276 commit 24d3586

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/AspNet.Security.OpenId/Events/OpenIdAuthenticatedContext.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using JetBrains.Annotations;
1010
using Microsoft.AspNetCore.Authentication;
1111
using Microsoft.AspNetCore.Http;
12+
using Microsoft.AspNetCore.Http.Authentication;
1213
using Newtonsoft.Json.Linq;
1314

1415
namespace AspNet.Security.OpenId {
@@ -45,6 +46,11 @@ public OpenIdAuthenticatedContext(
4546
/// </summary>
4647
public string Identifier => Ticket?.Principal?.FindFirst(ClaimTypes.NameIdentifier)?.Value;
4748

49+
/// <summary>
50+
/// Gets the authentication properties associated with the ticket.
51+
/// </summary>
52+
public AuthenticationProperties Properties => Ticket?.Properties;
53+
4854
/// <summary>
4955
/// Gets or sets the attributes associated with the current user.
5056
/// </summary>

0 commit comments

Comments
 (0)