From c09dff806f55bc5a6b6525930d4b7005df336cdf Mon Sep 17 00:00:00 2001 From: Paul Battley Date: Mon, 16 Dec 2024 17:00:08 +0000 Subject: [PATCH] Report Azure auth error description This contains useful information like the fact that keys have expired. --- lib/microsoft_graph/application_authenticator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/microsoft_graph/application_authenticator.rb b/lib/microsoft_graph/application_authenticator.rb index f096e177b..78e2dc557 100644 --- a/lib/microsoft_graph/application_authenticator.rb +++ b/lib/microsoft_graph/application_authenticator.rb @@ -31,7 +31,7 @@ def get_access_token @access_token else - raise AuthenticationFailureError, json["error"] + raise AuthenticationFailureError, [json["error"], json["error_description"]].compact.join(": ") end end