I want to authenticate user using Microsoft graph azure (ROPC) but i got some error .
I think that there is some issue during azure app setting. all error which i face are given below
enter image description here
or when I use other email address then I got "email hidden error"
enter image description here
2
Answers
Immediately after a successful request, the client should securely release the user’s credentials from memory. It must never save them.
According to your image 1:
The error occurs due to not given Grant consent permission to the application.
If your application user needs consent, you have to construct the consent URL
you can solve the issue and add the consent permission in the portal:
Go to azure portal:
AzureAAD->Enterprise App->security->Permission->Click the add grant admin consent for microsoft.
consider the permission of application needs, click the grant admin consent permission if you accept the application’s request for certain rights.
According to your image 2:
This error occurs due to if your company domain has not been registered as a verified domain within your Azure AD tenant you will get an "invalid user name or password error."
For more information refer this SO thread