Documentation Index
Fetch the complete documentation index at: https://auth0-feat-authentication-api-migration.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
POST /oauth/token
This flow should only be used from highly-trusted applications that cannot do redirects. If you can use redirect-based flows from your app, we recommend using the Authorization Code Flow instead.
Request Headers
| Parameter | Description |
|---|---|
auth0-forwarded-for | End-user IP as a string value. Set this if you want brute-force protection to work in server-side scenarios. |
Responses
200
A successful request returns the access token.Remarks
- The scopes issued to the application may differ from the scopes requested. In this case, a
scopeparameter will be included in the response JSON. - If you don’t request specific scopes, all scopes defined for the audience will be returned due to the implied trust to the application in this grant.
- To add realm support, set the
grant_typetohttp://auth0.com/oauth/grant-type/password-realm, and therealmto the realm the user belongs. This maps to a connection in Auth0. - In addition to username and password, Auth0 may require the end-user to provide an additional factor as proof of identity. The request may return an
mfa_requirederror along with anmfa_tokenfor multi-factor authentication.
Learn More
- Calling APIs from Highly-Trusted Applications
- Executing the Resource Owner Password Grant
- Multi-factor Authentication and Resource Owner Password
Parameters
A DPoP proof for the request. This is optional and only required if your application uses Demonstrating Proof-of-Possession.
Request Body
Denotes the flow you are using. For Resource Owner Password use
password.Resource Owner’s identifier, such as a username or email address.
Resource Owner’s secret.
The unique identifier of the target API you want to access.
The identifier of the target API (resource server) you want to access. Must match an API Identifier registered in your Auth0 tenant. Used as an alternative to
audience when the tenant’s Resource Parameter Compatibility Profile is set to compatibility.String value of the different scopes the application is asking for.
Your application’s Client ID.
Your application’s Client Secret.
String value of the realm the user belongs.
Response
| Status | Description |
|---|---|
| 200 | Returns the access token. |