Get OAuth Settings
GET/api/v33.01/settings/oauth
x-prisma-cloud-target-env: {"permission":"authConfiguration"}
Returns the OAuth configuration settings.
cURL Request
Refer to the following example cURL request:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X GET \
"https://<CONSOLE>/api/v<VERSION>/settings/oauth"
cURL Response
Refer to the following example cURL response:
{
"enabled": true,
"clientID": "ef3a806a249a31b7d15e",
"clientSecret": {
"encrypted": "O27GsQ7PDX4LrVx6q+A7sMLUAKTbKU3DAYTZyaOhqTqdNwI7raKFCA3/RrmRPUgk"
},
"providerName": "github",
"authURL": "https://github.com/login/oauth/authorize",
"tokenURL": "https://github.com/login/oauth/access_token",
"groupScope": "",
"groupClaim": "",
"userClaim": "",
"cert": "",
"openshiftBaseURL": "",
"openIDIssuesURL": "",
"providerAlias": "github_ss"
}
Responses
- 200
- default
ProviderSettings are the Oauth/ OpenID Connect connectivity settings
- application/json
- Schema
- Example (from schema)
Schema
AuthURL specifies auth URL.
Cert is idp certificate.
ClientID is the client identifier issued to the client during the registration process.
clientSecret object
Secret Stores the plain and encrypted version of a value. The plain version is not stored in a database
Specifies an encrypted value of the secret.
Specifies the plain text value of the secret.
Enabled indicates whether Auth settings are enabled.
GroupClaim is the name of the group claim property.
GroupScope specifies name of group scope.
OpenIDIssuesURL is the base URL for OpenID connect providers.
OpenshiftBaseURL is openshift base URL.
ProviderAlias is the provider alias used for display.
Possible values: [github,openshift
]
ProviderName is the identity provider name
TokenURL specifies token URL.
UserClaim is the name of the user claim property.
{
"authURL": "string",
"cert": "string",
"clientID": "string",
"clientSecret": {
"encrypted": "string",
"plain": "string"
},
"enabled": true,
"groupClaim": "string",
"groupScope": "string",
"openIDIssuesURL": "string",
"openshiftBaseURL": "string",
"providerAlias": "string",
"providerName": [
"github",
"openshift"
],
"tokenURL": "string",
"userClaim": "string"
}