Skip to content

Commit

Permalink
Adds client secrets to the Application model
Browse files Browse the repository at this point in the history
  • Loading branch information
monde committed Sep 14, 2022
1 parent d5f4bc9 commit d9998de
Show file tree
Hide file tree
Showing 3 changed files with 682 additions and 0 deletions.
299 changes: 299 additions & 0 deletions dist/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,254 @@
]
}
},
"/api/v1/apps/{appId}/credentials/secrets": {
"get": {
"consumes": [
"application/json"
],
"description": "Enumerates the client's collection of secrets",
"operationId": "listClientSecretsForApplication",
"parameters": [
{
"in": "path",
"name": "appId",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Success",
"schema": {
"items": {
"$ref": "#/definitions/ClientSecret"
},
"type": "array"
}
}
},
"security": [
{
"api_token": []
}
],
"summary": "List client secrets",
"tags": [
"Application"
]
},
"post": {
"consumes": [
"application/json"
],
"description": "Adds a new secret to the client's collection of secrets.",
"operationId": "createNewClientSecretForApplication",
"parameters": [
{
"in": "path",
"name": "appId",
"required": true,
"type": "string"
},
{
"in": "body",
"name": "metadata",
"required": true,
"schema": {
"$ref": "#/definitions/ClientSecretMetadata"
}
}
],
"produces": [
"application/json"
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/ClientSecret"
}
}
},
"security": [
{
"api_token": []
}
],
"summary": "Add new client secret",
"tags": [
"Application"
]
}
},
"/api/v1/apps/{appId}/credentials/secrets/{secretId}": {
"delete": {
"consumes": [
"application/json"
],
"operationId": "deleteClientSecretForApplication",
"parameters": [
{
"in": "path",
"name": "appId",
"required": true,
"type": "string"
},
{
"in": "path",
"name": "secretId",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"204": {
"description": "No Content"
}
},
"security": [
{
"api_token": []
}
],
"tags": [
"Application"
]
},
"get": {
"consumes": [
"application/json"
],
"description": "Gets a specific client secret by secretId",
"operationId": "getClientSecretForApplication",
"parameters": [
{
"in": "path",
"name": "appId",
"required": true,
"type": "string"
},
{
"in": "path",
"name": "secretId",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ClientSecret"
}
}
},
"security": [
{
"api_token": []
}
],
"summary": "Get client secret",
"tags": [
"Application"
]
}
},
"/api/v1/apps/{appId}/credentials/secrets/{secretId}/lifecycle/activate": {
"post": {
"consumes": [
"application/json"
],
"description": "Activates a specific client secret by secretId",
"operationId": "activateClientSecretForApplication",
"parameters": [
{
"in": "path",
"name": "appId",
"required": true,
"type": "string"
},
{
"in": "path",
"name": "secretId",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ClientSecret"
}
}
},
"security": [
{
"api_token": []
}
],
"summary": "Activate a client secret",
"tags": [
"Application"
]
}
},
"/api/v1/apps/{appId}/credentials/secrets/{secretId}/lifecycle/deactivate": {
"post": {
"consumes": [
"application/json"
],
"description": "Deactivates a specific client secret by secretId",
"operationId": "deactivateClientSecretForApplication",
"parameters": [
{
"in": "path",
"name": "appId",
"required": true,
"type": "string"
},
{
"in": "path",
"name": "secretId",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ClientSecret"
}
}
},
"security": [
{
"api_token": []
}
],
"summary": "Deactivate a client secret",
"tags": [
"Application"
]
}
},
"/api/v1/apps/{appId}/features": {
"get": {
"consumes": [
Expand Down Expand Up @@ -16827,6 +17075,57 @@
"Policy"
]
},
"ClientSecret": {
"properties": {
"_links": {
"additionalProperties": {
"type": "object"
},
"readOnly": true,
"type": "object"
},
"client_secret": {
"type": "string"
},
"created": {
"format": "date-time",
"readOnly": true,
"type": "string"
},
"id": {
"readOnly": true,
"type": "string"
},
"lastUpdated": {
"format": "date-time",
"readOnly": true,
"type": "string"
},
"secret_hash": {
"type": "string"
},
"status": {
"enum": [
"ACTIVE",
"INACTIVE"
],
"type": "string"
}
},
"x-okta-tags": [
"Application"
]
},
"ClientSecretMetadata": {
"properties": {
"client_secret": {
"type": "string"
}
},
"x-okta-tags": [
"Application"
]
},
"Compliance": {
"properties": {
"fips": {
Expand Down
Loading

0 comments on commit d9998de

Please sign in to comment.