Skip to content

Commit

Permalink
fix incorrect as usage in GetAuthenticationTimeEpoch
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 21, 2024
1 parent 4c83776 commit 2d260ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IdentityServer/Extensions/PrincipalExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static long GetAuthenticationTimeEpoch(this IPrincipal principal)
[DebuggerStepThrough]
public static long GetAuthenticationTimeEpoch(this IIdentity identity)
{
var id = identity as ClaimsIdentity;
var id = (ClaimsIdentity)identity;
var claim = id.FindFirst(JwtClaimTypes.AuthenticationTime);

if (claim == null) throw new InvalidOperationException("auth_time is missing.");
Expand Down

0 comments on commit 2d260ce

Please sign in to comment.