<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
0D54z00009tTrmqCACOkta Classic EngineAuthenticationAnswered2026-05-01T09:01:18.000Z2023-12-06T19:43:48.000Z2023-12-07T18:57:45.000Z

dse7i (dse7i) asked a question.

Is there a way to use Custom IDPs with Authentication API?

We want to use the Authentication API for a CLI app. But we also want to add a Custom IDP for our authentication. For example, we want something that will check that the app is on an EC2 we own.

 

Is there a way to use a Custom IDP with Authn API for a native app?


  • NiallM.34104 (Atlas Identity)

    You'll need to give more info on the requirement. A custom IdP setup in Okta relies on SSO standards, which are focused on client redirection. You can't do that with a CLI. I'm interested in how a custom IdP would give you a check that the client is running on an EC2 ? Short answer is no. If you want your CLI to authenticate against a custom IdP, your CLI should use that IdP's APIs to authenticate. Longer answer is it's a confusing requirement.

    Expand Post
  • dse7i (dse7i)

    We can likely write a custom OIDC IDP, that for example does a check using EC2 IMDS (if this makes it more confusing, just ignore the EC2 part).

     

    In a web browser, this would be handled through the normal series of redirects. I can't figure out if there's support for this in the a CLI app with the Authentication API.

     

    https://help.okta.com/oie/en-us/content/topics/identity-engine/authenticators/configure-idp-authenticator.htm

    https://developer.okta.com/docs/reference/api/authn/

     

    Expand Post
  • NiallM.34104 (Atlas Identity)

    It's the use of 'IDP' that's throwing me. Okta is an IdP. I think what you are driving at is whether you can create a custom OIDC app in Okta, and then use the authentication API from the CLI an have users authenticate to that OIDC application that you have configured in Okta ?

     

    If I have that right, then you can't. Or at least you could not do that. I'll have a sniff around and see if anything has changed, but I did have a client wanting to use the authentication API but have the controls of building an OIDC app in Okta for user assignment, and they specifically wanting audit of authentication to that 'app'.

    Expand Post
  • dse7i (dse7i)

    Yea, it's a little confusing but you can essentially chain another IdP either as a password or possession factor as part of the Okta Authentication flow. And Yes, your summary is correct.

This question is closed.
Loading
Is there a way to use Custom IDPs with Authentication API?