Our application uses Okta and logs by using the resource owner password credentials flow. Some users need to login using a different identity provider. We have configured routing rules so that users with a specific domain use a specific provider.
I know this can be done by using the widget and setting idpDiscovery: True in the widget, but using the widget is not an option for us.
Is there an API for Idp Discovery? Can Idp Discover be set by using the token endpoint?