- changed status to invalid
java.lang.NoClassDefFoundError: com/nimbusds/openid/connect/sdk/OIDCTokenResponse
I am getting this error while executing the following code:- service = Executors.newFixedThreadPool(1); String url = "https://login.microsoftonline.com/" + Authentication_Constants.TENANT + "/oauth2/authorize/"; //String url = "https://login.microsoftonline.com//common//"; //String url = "https://login.microsoftonline.com/" + Authentication_Constants.TENANT; authContext = new AuthenticationContext(url, true, service); ClientCredential clientCred = new ClientCredential(Authentication_Constants.CLIENTID, Authentication_Constants.SECRET); Future<AuthenticationResult> future = authContext.acquireToken(Authentication_Constants.RESOURCE, clientCred, null); authResult = future.get(); System.out.println(authResult.getAccessToken());
Comments (1)
-
- Log in to comment
Hi,
I don't recognise the class names in this code. Are you sure it's indeed using this SDK?