Retrieve Client Secret for Okta OIDC Apps via API
Last Updated:
Overview
This article explains how to retrieve the client secret for an OpenID Connect (OIDC) application programmatically.
Applies To
- OpenID Connect (OIDC)
- OAuth for Okta
- Client Secret
- Apps Endpoint
- Okta Classic Engine
- Okta Identity Engine (OIE)
Solution
The client secret can be obtained by calling the apps endpoint, as demonstrated in List all OAuth 2.0 client secrets.
The authorization header must be written in the format 'SSWS API_KEY'.
OAuth for Okta can also be used by requesting the okta.apps.read scope. See Implement OAuth for Okta.
