From 946615e9f144a3af569804206bc71b8dc3c3405c Mon Sep 17 00:00:00 2001 From: Halil AYYILDIZ Date: Wed, 19 Dec 2018 14:31:26 +0100 Subject: [PATCH] Update KeyVaultADALAuthenticator.java Don't check clientKey twice, instead do null check for clientId --- src/main/java/com/microsoft/KeyVaultADALAuthenticator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/microsoft/KeyVaultADALAuthenticator.java b/src/main/java/com/microsoft/KeyVaultADALAuthenticator.java index 6f01293..2229d32 100644 --- a/src/main/java/com/microsoft/KeyVaultADALAuthenticator.java +++ b/src/main/java/com/microsoft/KeyVaultADALAuthenticator.java @@ -79,7 +79,7 @@ private static AuthenticationResult getAccessToken(String authorization, String Future future = null; //Acquires token based on client ID and client secret. - if (clientKey != null && clientKey != null) { + if (clientId != null && clientKey != null) { ClientCredential credentials = new ClientCredential(clientId, clientKey); future = context.acquireToken(resource, credentials, null); }