Skip to content

Commit

Permalink
Merge pull request #1636 from SimonCropp/fix-incorrect-as-usage-in-Ge…
Browse files Browse the repository at this point in the history
…tAuthenticationTimeEpoch

fix incorrect as usage in GetAuthenticationTimeEpoch
  • Loading branch information
josephdecock authored Dec 5, 2024
2 parents fa959c0 + 2d260ce commit 29aa994
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 29aa994

Please sign in to comment.