Home

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.

 

Related Conversations
Calendar not available for older AD accounts
_jancis in Microsoft Teams on
0 Replies
Azure Files with adfs
Stephane KLOIS in Azure on
0 Replies
What is a native non-object synchronised Azure AD instance?
Pn1995 in Azure on
0 Replies
Azure Automation connecting to Exchange with MFA enforced
Chris Johnston in Azure on
13 Replies
Intune Win32 apps error 0x80070002
bjornmertens in Microsoft Intune on
5 Replies
Unable to add the disk in Azure Scale set.
Prashant Sharma in Azure on
8 Replies