Cannot generate Azure AD token

Not applicable

I have registered my app on Azure AD. However when i try to gerenate token with, clientid,with username + password

Future<AuthenticationResult> future = context.acquireToken(

                    "", CLIENT_ID, username, password,


I receive a 400 error code

Caused by: Server returned HTTP response code: 400 for URL:


Can anyone let me know what step is missing here? I am using a sample active directory native headless client from azure.


0 Replies