Okta.Sdk.Api.ApplicationSSOPublicKeysApi

January 26, 2026 ยท View on GitHub

All URIs are relative to https://subdomain.okta.com

MethodHTTP requestDescription
ActivateOAuth2ClientJsonWebKeyPOST /api/v1/apps/{appId}/credentials/jwks/{keyId}/lifecycle/activateActivate an OAuth 2.0 client JSON Web Key
ActivateOAuth2ClientSecretPOST /api/v1/apps/{appId}/credentials/secrets/{secretId}/lifecycle/activateActivate an OAuth 2.0 client secret
AddJwkPOST /api/v1/apps/{appId}/credentials/jwksAdd a JSON Web Key
CreateOAuth2ClientSecretPOST /api/v1/apps/{appId}/credentials/secretsCreate an OAuth 2.0 client secret
DeactivateOAuth2ClientJsonWebKeyPOST /api/v1/apps/{appId}/credentials/jwks/{keyId}/lifecycle/deactivateDeactivate an OAuth 2.0 client JSON Web Key
DeactivateOAuth2ClientSecretPOST /api/v1/apps/{appId}/credentials/secrets/{secretId}/lifecycle/deactivateDeactivate an OAuth 2.0 client secret
DeleteOAuth2ClientSecretDELETE /api/v1/apps/{appId}/credentials/secrets/{secretId}Delete an OAuth 2.0 client secret
DeletejwkDELETE /api/v1/apps/{appId}/credentials/jwks/{keyId}Delete an OAuth 2.0 client JSON Web Key
GetJwkGET /api/v1/apps/{appId}/credentials/jwks/{keyId}Retrieve an OAuth 2.0 client JSON Web Key
GetOAuth2ClientSecretGET /api/v1/apps/{appId}/credentials/secrets/{secretId}Retrieve an OAuth 2.0 client secret
ListJwkGET /api/v1/apps/{appId}/credentials/jwksList all the OAuth 2.0 client JSON Web Keys
ListOAuth2ClientSecretsGET /api/v1/apps/{appId}/credentials/secretsList all OAuth 2.0 client secrets

ActivateOAuth2ClientJsonWebKey

AddJwk201Response ActivateOAuth2ClientJsonWebKey (string appId, string keyId)

Activate an OAuth 2.0 client JSON Web Key

Activates an OAuth 2.0 Client JSON Web Key by keyId > Note: You can have only one active encryption key at any given time for app. When you activate an inactive key, the current active key is automatically deactivated.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ActivateOAuth2ClientJsonWebKeyExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var keyId = apk2f4zrZbs8nUa7p0g4;  // string | Unique `id` of the Custom Authorization Server JSON Web Key

            try
            {
                // Activate an OAuth 2.0 client JSON Web Key
                AddJwk201Response result = apiInstance.ActivateOAuth2ClientJsonWebKey(appId, keyId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.ActivateOAuth2ClientJsonWebKey: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
keyIdstringUnique `id` of the Custom Authorization Server JSON Web Key

Return type

AddJwk201Response

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ActivateOAuth2ClientSecret

OAuth2ClientSecret ActivateOAuth2ClientSecret (string appId, string secretId)

Activate an OAuth 2.0 client secret

Activates an OAuth 2.0 Client Secret by secretId

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ActivateOAuth2ClientSecretExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var secretId = ocs2f4zrZbs8nUa7p0g4;  // string | Unique `id` of the OAuth 2.0 Client Secret

            try
            {
                // Activate an OAuth 2.0 client secret
                OAuth2ClientSecret result = apiInstance.ActivateOAuth2ClientSecret(appId, secretId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.ActivateOAuth2ClientSecret: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
secretIdstringUnique `id` of the OAuth 2.0 Client Secret

Return type

OAuth2ClientSecret

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AddJwk

AddJwk201Response AddJwk (string appId, AddJwkRequest addJwkRequest)

Add a JSON Web Key

Adds a new JSON Web Key to the clients JSON Web Keys. > **Note:** This API doesn't allow you to add a key if the existing key doesn't have a kid. This is also consistent with how the [Dynamic Client Registration](/openapi/okta-oauth/oauth/tag/Client/) or [Applications](/openapi/okta-management/management/tag/Application/) APIs behave, as they don't allow the creation of multiple keys without kids. Use the [Replace an Application](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication) or the [Replace a Client Application](/openapi/okta-oauth/oauth/tag/Client/#tag/Client/operation/replaceClient) operation to update the JWKS or [Delete an OAuth 2.0 Client JSON Web Key](/openapi/okta-management/management/tag/ApplicationSSOPublicKeys/#tag/ApplicationSSOPublicKeys/operation/deletejwk) and re-add the key with a kid`.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class AddJwkExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var addJwkRequest = new AddJwkRequest(); // AddJwkRequest | 

            try
            {
                // Add a JSON Web Key
                AddJwk201Response result = apiInstance.AddJwk(appId, addJwkRequest);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.AddJwk: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
addJwkRequestAddJwkRequest

Return type

AddJwk201Response

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
201Created-
400Bad Request-
401Unauthorized-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateOAuth2ClientSecret

OAuth2ClientSecret CreateOAuth2ClientSecret (string appId, OAuth2ClientSecretRequestBody oAuth2ClientSecretRequestBody = null)

Create an OAuth 2.0 client secret

Creates an OAuth 2.0 Client Secret object with a new active client secret. You can create up to two Secret objects. An error is returned if you attempt to create more than two Secret objects. > Note: This API lets you bring your own secret. If token_endpoint_auth_method of the app is client_secret_jwt, then the minimum length of client_secret is 32 characters. If no secret is specified in the request, Okta adds a new system-generated secret.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class CreateOAuth2ClientSecretExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var oAuth2ClientSecretRequestBody = new OAuth2ClientSecretRequestBody(); // OAuth2ClientSecretRequestBody |  (optional) 

            try
            {
                // Create an OAuth 2.0 client secret
                OAuth2ClientSecret result = apiInstance.CreateOAuth2ClientSecret(appId, oAuth2ClientSecretRequestBody);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.CreateOAuth2ClientSecret: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
oAuth2ClientSecretRequestBodyOAuth2ClientSecretRequestBody[optional]

Return type

OAuth2ClientSecret

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
201Created-
400Bad Request-
401Unauthorized-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeactivateOAuth2ClientJsonWebKey

OAuth2ClientJsonSigningKeyResponse DeactivateOAuth2ClientJsonWebKey (string appId, string keyId)

Deactivate an OAuth 2.0 client JSON Web Key

Deactivates an OAuth 2.0 Client JSON Web Key by keyId. > Note: You can only deactivate signing keys. Deactivating the active encryption key isn't allowed if the client has ID token encryption enabled. You can activate another encryption key, which makes the current key inactive.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class DeactivateOAuth2ClientJsonWebKeyExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var keyId = apk2f4zrZbs8nUa7p0g4;  // string | Unique `id` of the Custom Authorization Server JSON Web Key

            try
            {
                // Deactivate an OAuth 2.0 client JSON Web Key
                OAuth2ClientJsonSigningKeyResponse result = apiInstance.DeactivateOAuth2ClientJsonWebKey(appId, keyId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.DeactivateOAuth2ClientJsonWebKey: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
keyIdstringUnique `id` of the Custom Authorization Server JSON Web Key

Return type

OAuth2ClientJsonSigningKeyResponse

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad Request-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeactivateOAuth2ClientSecret

OAuth2ClientSecret DeactivateOAuth2ClientSecret (string appId, string secretId)

Deactivate an OAuth 2.0 client secret

Deactivates an OAuth 2.0 Client Secret by secretId. You can't deactivate a secret if it's the only secret of the client.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class DeactivateOAuth2ClientSecretExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var secretId = ocs2f4zrZbs8nUa7p0g4;  // string | Unique `id` of the OAuth 2.0 Client Secret

            try
            {
                // Deactivate an OAuth 2.0 client secret
                OAuth2ClientSecret result = apiInstance.DeactivateOAuth2ClientSecret(appId, secretId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.DeactivateOAuth2ClientSecret: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
secretIdstringUnique `id` of the OAuth 2.0 Client Secret

Return type

OAuth2ClientSecret

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad Request-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteOAuth2ClientSecret

void DeleteOAuth2ClientSecret (string appId, string secretId)

Delete an OAuth 2.0 client secret

Deletes an OAuth 2.0 Client Secret by secretId. You can only delete an inactive Secret.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class DeleteOAuth2ClientSecretExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var secretId = ocs2f4zrZbs8nUa7p0g4;  // string | Unique `id` of the OAuth 2.0 Client Secret

            try
            {
                // Delete an OAuth 2.0 client secret
                apiInstance.DeleteOAuth2ClientSecret(appId, secretId);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.DeleteOAuth2ClientSecret: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
secretIdstringUnique `id` of the OAuth 2.0 Client Secret

Return type

void (empty response body)

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
204No Content-
400Bad Request-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

Deletejwk

void Deletejwk (string appId, string keyId)

Delete an OAuth 2.0 client JSON Web Key

Deletes an OAuth 2.0 Client JSON Web Key by keyId. You can only delete an inactive key.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class DeletejwkExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var keyId = apk2f4zrZbs8nUa7p0g4;  // string | Unique `id` of the Custom Authorization Server JSON Web Key

            try
            {
                // Delete an OAuth 2.0 client JSON Web Key
                apiInstance.Deletejwk(appId, keyId);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.Deletejwk: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
keyIdstringUnique `id` of the Custom Authorization Server JSON Web Key

Return type

void (empty response body)

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
204No Content-
400Bad Request-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetJwk

GetJwk200Response GetJwk (string appId, string keyId)

Retrieve an OAuth 2.0 client JSON Web Key

Retrieves an OAuth 2.0 Client JSON Web Key by keyId.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetJwkExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var keyId = apk2f4zrZbs8nUa7p0g4;  // string | Unique `id` of the Custom Authorization Server JSON Web Key

            try
            {
                // Retrieve an OAuth 2.0 client JSON Web Key
                GetJwk200Response result = apiInstance.GetJwk(appId, keyId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.GetJwk: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
keyIdstringUnique `id` of the Custom Authorization Server JSON Web Key

Return type

GetJwk200Response

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOAuth2ClientSecret

OAuth2ClientSecret GetOAuth2ClientSecret (string appId, string secretId)

Retrieve an OAuth 2.0 client secret

Retrieves an OAuth 2.0 Client Secret by secretId

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetOAuth2ClientSecretExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var secretId = ocs2f4zrZbs8nUa7p0g4;  // string | Unique `id` of the OAuth 2.0 Client Secret

            try
            {
                // Retrieve an OAuth 2.0 client secret
                OAuth2ClientSecret result = apiInstance.GetOAuth2ClientSecret(appId, secretId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.GetOAuth2ClientSecret: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
secretIdstringUnique `id` of the OAuth 2.0 Client Secret

Return type

OAuth2ClientSecret

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListJwk

OAuth2ClientJsonWebKeySet ListJwk (string appId)

List all the OAuth 2.0 client JSON Web Keys

Lists all JSON Web Keys for an OAuth 2.0 client app

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ListJwkExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID

            try
            {
                // List all the OAuth 2.0 client JSON Web Keys
                OAuth2ClientJsonWebKeySet result = apiInstance.ListJwk(appId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.ListJwk: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID

Return type

OAuth2ClientJsonWebKeySet

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListOAuth2ClientSecrets

List<OAuth2ClientSecret> ListOAuth2ClientSecrets (string appId)

List all OAuth 2.0 client secrets

Lists all client secrets for an OAuth 2.0 client app

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ListOAuth2ClientSecretsExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ApplicationSSOPublicKeysApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID

            try
            {
                // List all OAuth 2.0 client secrets
                List<OAuth2ClientSecret> result = apiInstance.ListOAuth2ClientSecrets(appId).ToListAsync();
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ApplicationSSOPublicKeysApi.ListOAuth2ClientSecrets: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID

Return type

List<OAuth2ClientSecret>

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]