
User17314954900041035083 (Customer) asked a question.
hi team, trying to get idToken with username and password of the octa user, below are the Sample request payload. Could you please help me on this, what mistake I am doing.
Endpoint : /oauth2/default/v1/token
Method : POST:
Payload Structure: {
grant_type: 'password',
username: username,
password: password,
client_id: clientId,
client_secret: clientSecret,
scope: 'openid profile email'
}
Response from the API :
{
error: 'invalid_grant',
error_description: 'Resource owner password credentials authentication denied by sign on policy.'
}

Hello @User17314954900041035083 (Customer) ,
Do you have MFA enabled on the account you are trying to use to fetch token?
You can try removing MFA on the account if enabled.
Hi Ramesh RV,
Yes, Below is the settings foe MFA for my account.
for Multifactor authentication (MFA) opted as isNot required.