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:
The POST /oauth/token endpoint does not seem to support a connection parameter.
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?
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.