Resource Owner Password Grant: How to Dynamically Specify Connection?

Hi,

I’m developing an authentication service using the Resource Owner Password Grant flow with Auth0. My setup involves multiple connections, each tied to a specific use case. I want users to log in by dynamically specifying the connection they belong to, but I’ve encountered some issues:

  1. The POST /oauth/token endpoint does not seem to support a connection parameter.
  2. Auth0 appears to require a default connection for each client, but this doesn’t fit my requirements.

What I need:
I need users to log in to a specific connection without relying on a default connection. Is this possible with the Resource Owner Password Grant flow? If not, is there an alternative flow or workaround that allows specifying the connection dynamically?

Thank you for your help!

Hi everyone,

I managed to solve my issue by switching to the password-realm grant type and including the realm parameter in the request. This allowed me to specify the connection dynamically, which works perfectly for my use case.

Thanks for the resources and support!

https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow/call-your-api-using-resource-owner-password-flow#configure-realm-support

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.