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); }