From 3d24f69cd942fcf6caf6733536a58e9713465c1a Mon Sep 17 00:00:00 2001 From: FrostyApeOne Date: Wed, 5 Nov 2025 10:52:49 +0000 Subject: [PATCH] Added logs --- .../Security/AzureBearerTokenHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GovUK.Dfe.ExternalApplications.Api.Client/Security/AzureBearerTokenHandler.cs b/src/GovUK.Dfe.ExternalApplications.Api.Client/Security/AzureBearerTokenHandler.cs index 7b91e928..ff24e6c5 100644 --- a/src/GovUK.Dfe.ExternalApplications.Api.Client/Security/AzureBearerTokenHandler.cs +++ b/src/GovUK.Dfe.ExternalApplications.Api.Client/Security/AzureBearerTokenHandler.cs @@ -39,8 +39,8 @@ protected override async Task SendAsync( if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized) { - logger.LogError(">>>>>>>>>> Authentication >>> 401 Unauthorized response received - Azure token may be invalid or expired for {Method} {Uri}", - request.Method, request.RequestUri); + logger.LogError(">>>>>>>>>> Authentication >>> 401 Unauthorized response received - Azure token may be invalid or expired for {Method} {Uri} [{token}]", + request.Method, request.RequestUri, azureToken); } else if (response.StatusCode == System.Net.HttpStatusCode.Forbidden) {