When I try to access the Azure AD using graph API
POST URL: "https://login.microsoftonline.com//oauth2/token"
Header "Content-Type":"application/x-www-form-urlencoded"
Body : client_id=&resource=https://graph.windows.net/&client_secret=&grant_type=password&username=&password=
Getting below Error:
"error_description": "AADSTS70002: Error validating credentials. AADSTS50126: Invalid username or password\r\nTrace ID: ea6bb39d-dc99-43ca-b8a0-850ba0041d00\r\nCorrelation ID: 690b7972-2322-462c-9821-c828242d9718\r\nTimestamp: 2018-03-14 10:05:42Z",
When I try to access portal.azure.com using the same credentials its working. While accessing portal.azure.com its redirecting to the ADFS page and then provide the same credetials and redirect to azure portal.
Will graph API supports for this kind of Azure AD? If not possible what is the alternate way to access AZURE AD?