Read Application Secret

GET {{apiPath}}/environments/{{envID}}/applications/{{appID}}/secret

An application resource's secret is a required parameter when you submit a client_credentials request to the PingOne authorization server. The application's secret attribute value has a minimum length of 64 characters according to SHA-512 requirements when using the HS512 algorithm to sign ID tokens using the secret as the key.

The GET /environments/{{envID}}/applications/{{appID}}/secret operation returns the specified application resource's secret attribute. If a previous client secret has been designated (and has not expired), the previous secret is also returned by the request.

Note: Due to potential security issues, a worker app cannot read its own application secret.

RESPONSES

status: OK

{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applications/48567a65-8f00-4630-b8b0-2c02ce94168a/secret"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"application":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applications/48567a65-8f00-4630-b8b0-2c02ce94168a"}},"environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"secret":"vgUZQTEvg0Zzq6WxMlBN.TD","previous":{"secret":"9ZZd0Ih4ApbuIgRw","expiresAt":"2024-01-02T13:54:34.487Z"}}