Migration Guide for Resource Owner Password Credentials Exchange
Does this affect me ?
This guide is for users who use the resource owner password credentials exchange, and call /oauth/ro directly, without the use of any Auth0 libraries or SDKs. The major Auth0 libraries such as Lock or Auth0.js have already been updated to stop using /oauth/ro internally. If you use the
lock-passwordless library, you can now use Passwordless Mode in Lock v11 instead.
Changes to requests
Previously, the payload of a request to /oauth/ro looked similar to this:
- The endpoint to execute token exchanges is now /oauth/token
- Auth0's own grant type is used to authenticate users from a specific connection (or
- Auth0 supports the standard OIDC scopes, along with the scopes which you have defined in your custom API.
- A scope that doesn't fit in one of these categories, such as the above
favorite_color, is no longer a valid scope.
deviceparameter is removed.
audienceparameter is optional.
Here is an example of the payload of a request to /oauth/token:
- The grant type is specified here as
password-realm, rather than the standard
- The parameters
realmis included because we are using Password Realm grant type, and replaces the
connectionparameter from previous calls.
scopeparameter is mostly the same, but does not accept non-OIDC values.
audienceparameter can be added, indicating the API audience the token will be intended for.
Changes to responses
oauth/ro were similar in format to the following:
- The returned Access Token is valid for calling the /userinfo endpoint (provided that the API specified by the
audienceparam uses RS256 as signing algorithm) and optionally the custom API if one was specified.
- The ID Token will be forcibly signed using RS256 if requested by a public client.
- A Refresh Token will be returned only if the
offline_accessscope was granted and the API has Allow offline access set.
Here is an example of the OIDC conformant response from
Verifying your migration
Once you have migrated your codebase, if you would like to be sure that your applications are no longer calling the legacy endpoint, you can go to the Dashboard under Tenant Settings > Advanced then scroll down to Migrations and toggle off the Legacy /oauth/ro Endpoint switch. Turning off this switch will disable the deprecated endpoint for your tenant, preventing it from being used at all.
If turning this switch off results in failed logins, this is a sign that you have yet to completely remove all instances of legacy code from your applications.
Once migrations have been successfully performed in production environments, the switch can be toggled off and left off, to ensure that the deprecated features can no longer be used.