
cppm7 (cppm7) asked a question.
We have 2 okta instance(X and Y). In Y we have users created. We created IdP(openID connect IdP) in X which has clientId and client_secret of app in Y. We want to perform authentication with the help Y account. When we try it in UI based on domain rule it correctly redirect us to Y instance URL to sign in and it get authenticated. But when we give user_id password and call sign in our backend code calling "api/v1/authn" with host of okta instance x, it does not validate User. How can we resolve this issue?

Hello @cppm7 (cppm7)
Thanks for posting.
Here is a document with the OpenID Connect & OAuth 2.0 API:
https://developer.okta.com/docs/reference/api/oidc/
This page contains detailed information about the OAuth 2.0 and OpenID Connect endpoints that Okta exposes on its authorization servers. For higher-level information about how to use these endpoints, see OAuth 2.0 and OpenID Connect.
https://developer.okta.com/docs/concepts/oauth-openid/
If you need further assistance you can also feel free to post this question on our Okta Developer Forums: https://devforum.okta.com, and they should be able to help you with this.
Okta Developer Forums this is a place for the Okta developer community to interact
Let us know if this helps you.
Have a great day!
Daniela Chavarria.
Okta Inc.