diff --git a/src/Provider/Azure.php b/src/Provider/Azure.php index 86ac895..2cd8fa8 100644 --- a/src/Provider/Azure.php +++ b/src/Provider/Azure.php @@ -87,7 +87,7 @@ protected function checkResponse(ResponseInterface $response, $data) { if (isset($data['error'])) { throw new IdentityProviderException( - (isset($data['error']['message']) ? $data['error']['message'] : $response->getReasonPhrase()), + (isset($data['error_description']) ? $data['error_description'] : $response->getReasonPhrase()), $response->getStatusCode(), (string)$response->getBody() );