Skip to content

Commit

Permalink
Merge branch 'test'
Browse files Browse the repository at this point in the history
  • Loading branch information
neophyte57 committed Jun 19, 2024
2 parents 7eb86c7 + 512c365 commit cf4636d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ private static Task OnTokenValidatedAsync(TokenValidatedContext context)
if (context.Request.Path.ToString().Contains("gpid-detail"))
{
JwtPayload payload = ((JwtSecurityToken)context.SecurityToken).Payload;
Log.Logger.Debug($"Token for gpid-detail: Issuer: {payload.Iss}, Authorized Party: {payload.Azp}, Audiences: [{string.Join(",", payload.Aud.ToArray())}], Expires at: {payload.Expiration}");
Log.Logger.Debug($"Token for gpid-detail: Issuer: {payload.Iss}, Authorized Party: {payload.Azp}, Audiences: [{string.Join(",", payload.Aud.ToArray())}], Expires at: {payload.Expiration}, resource_access: {identity.Claims.SingleOrDefault(claim => claim.Type == Claims.ResourceAccess)?.Value}");
}
}

return Task.CompletedTask;
}

Expand Down

0 comments on commit cf4636d

Please sign in to comment.