/oauth/token
endpoint).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.
context.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.