<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007Ln4YBCAZOkta Classic EngineAuthenticationAnswered2024-03-25T10:23:29.000Z2021-12-28T10:13:08.000Z2021-12-29T14:46:33.000Z

cppm7 (cppm7) asked a question.

How to perform authentication via IdP though backend code.

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.

     

    Expand Post
This question is closed.
Loading
How to perform authentication via IdP though backend code.