curl --location 'https://login.microsoftonline.com/tentId/oauth2/v2.0/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=xxxxxxxxx' \
--data-urlencode 'scope=User.Read profile openid email' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=ravindra1437_outlook.com#EXT#@ravinavyamullamurioutlook.onmicrosoft.com' \
--data-urlencode 'password=xxxxxxxxxxxx' \
--data-urlencode 'client_secret=xxxxxxxxxx'
Hi I am unable to sign in and getting following issue after passing correct details please help me to resolve this issue
{
"error": "invalid_grant",
"error_description": "AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: bb4dd885-c0a7-4985-8d95-45c520710800\r\nCorrelation ID: 7eb0748c-6450-462d-8cd5-c48cd869d59c\r\nTimestamp: 2023-04-20 04:07:49Z",
"error_codes": [
50126
],
"timestamp": "2023-04-20 04:07:49Z",
"trace_id": "bb4dd885-c0a7-4985-8d95-45c520710800",
"correlation_id": "7eb0748c-6450-462d-8cd5-c48cd869d59c",
"error_uri": "https://login.microsoftonline.com/error?code=50126"
}