Skip to content

Commit

Permalink
Merge pull request #146 from okta/Application_client_secrets
Browse files Browse the repository at this point in the history
Application model client secrets
  • Loading branch information
monde authored Oct 28, 2022
2 parents 1b8a148 + 120421a commit 291392b
Show file tree
Hide file tree
Showing 4 changed files with 697 additions and 1 deletion.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ Running changelog of releases since `2.2.3`
## 2.15.0

### Additions
- Added property `pkce_required` to `ApplicationCredentialsOAuthClient` model

- Added `/api/v1/apps/${applicationId}/credentials/secrets` endpoints and `ClientSecret` model by @monde in https://github.com/okta/okta-management-openapi-spec/pull/146
- Added property `pkce_required` to `ApplicationCredentialsOAuthClient` model by @monde in https://github.com/okta/okta-management-openapi-spec/pull/146

## 2.14.0

### Changes

- chore(deps): upgrade vulnerable dependency by @oleksandrpravosudko-okta in https://github.com/okta/okta-management-openapi-spec/pull/142

### Additions

- Added new enum values `mca` and `sc` to `SessionAuthenticationMethod` by @arvindkrishnakumar-okta in https://github.com/okta/okta-management-openapi-spec/pull/143
- Verification Method model is missing inactivityPeriod property by @monde in https://github.com/okta/okta-management-openapi-spec/pull/140


## 2.13.0

Expand Down
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 291392b

Please sign in to comment.