Help with docs: Multi-tenant use of OKTA

Please help with the link to OKTA documentation with regard to multi-tenant user authentication.
For example, company X and company Y use the same application. Company X users will be managed in OKTA while company Y users will be authenticated via external identity provider.
How to segregate users from those companies so users from company Y will be redirected to their IdP while users from company X will see ‘OKTA’ login page?
Is there something like AWS Cognito Identity Pool which has its own URL?
Whitelisting by e-mail will not work because both company X and company Y are subsidiaries of another company. Thx in advance.

Hi @Slav

You’ll need to use Identity Provider Discovery and configure a routing rule to route users to the right login form.