Because the Resource Owner Password (ROP) Flow involves the application handling the user’s password, it must not be used by third-party clients.
How it works

- The user clicks Login within the application and enters their credentials.
- Your application forwards the user’s credentials to your Auth0 Authorization Server (
/oauth/token
endpoint). - Your Auth0 Authorization Server validates the credentials.
- Your Auth0 Authorization Server responds with an Access Token (and optionally, a Refresh Token).
- Your application can use the Access Token to call an API to access information about the user.
- The API responds with requested data.
How to implement it
The easiest way to implement the Resource Owner Password Flow is to follow our tutorial to use our API endpoints to Call Your API Using the Resource Owner Password Flow.Realm support
Auth0 provides an extension grant that offers similar functionality to the Resource Owner Password grant, but allows you to keep separate user directories (which map to separate connections) and specify which one to use during the flow. For example, let’s say you want to present a dropdown on your application’s login user interface that allows users to choose their user type:Employees
or Customers
. In this case, you would configure Employees
and Customers
as realms (and set up a corresponding connection for each), which allows employee and customer credentials to be kept in separate user directories. When you request a token, you will submit the realm value along with the user’s credentials and the submitted realm will be used to verify the password.
To learn more about implementing this extension grant, read Call Your API Using Resource Owner Password Flow: Configure Realm Support.
Rules
Rules will run for the Resource Owner Password Flow (including the Realm extension grant). However, redirect rules won’t work. If you try to perform a redirect by specifyingcontext.redirect
in your rule, the authentication flow will return an error. To learn more about rules, read Auth0 Rules. To learn more about redirect rules, read Redirect Users from Within Rules.