diff --git a/prime-dotnet-webapi/Configuration/Auth/AuthenticationSetup.cs b/prime-dotnet-webapi/Configuration/Auth/AuthenticationSetup.cs index 5035235059..b51fbe5782 100644 --- a/prime-dotnet-webapi/Configuration/Auth/AuthenticationSetup.cs +++ b/prime-dotnet-webapi/Configuration/Auth/AuthenticationSetup.cs @@ -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; }