Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

Cannot generate Azure AD token

Deleted
Not applicable

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

Future<AuthenticationResult> future = context.acquireToken(

                    "https://graph.windows.net", CLIENT_ID, username, password,

                    null);

I receive a 400 error code

Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: https://sso.godaddy.com/v1/wss/mex

 

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

 

0 Replies