Skip to content

Commit

Permalink
BED-5067 feat: add edit sso provider support to ui (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistahj67 authored Nov 27, 2024
1 parent ff2a2d5 commit 929f251
Show file tree
Hide file tree
Showing 16 changed files with 508 additions and 258 deletions.
96 changes: 95 additions & 1 deletion packages/go/openapi/doc/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/model.auth-provider"
"$ref": "#/components/schemas/model.oidc-provider"
}
}
}
Expand Down Expand Up @@ -646,6 +646,100 @@
}
}
],
"patch": {
"operationId": "PatchSSOProvider",
"summary": "Update SSO Provider",
"description": "Updates an existing SSO provider. Updating saml provider requires a \"multipart/form-data\" body. Updating oidc provider requires \"application/json\" body. Response is respective provider",
"tags": [
"Auth",
"Community",
"Enterprise"
],
"requestBody": {
"required": true,
"content": {
"multipart/form-data": {
"schema": {
"properties": {
"name": {
"type": "string",
"description": "Name of the new SAML provider."
},
"metadata": {
"type": "string",
"format": "binary",
"description": "Metadata XML file."
}
}
}
},
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the OIDC provider"
},
"issuer": {
"type": "string",
"format": "url",
"description": "URL of the OIDC issuer"
},
"client_id": {
"type": "string",
"description": "Client ID for the OIDC provider"
}
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/model.saml-provider"
}
}
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/model.oidc-provider"
}
}
}
]
}
}
}
},
"401": {
"$ref": "#/components/responses/unauthorized"
},
"403": {
"$ref": "#/components/responses/forbidden"
},
"404": {
"$ref": "#/components/responses/not-found"
},
"429": {
"$ref": "#/components/responses/too-many-requests"
},
"500": {
"$ref": "#/components/responses/internal-server-error"
}
}
},
"delete": {
"operationId": "DeleteSSOProvider",
"summary": "Delete SSO Provider",
Expand Down
60 changes: 60 additions & 0 deletions packages/go/openapi/src/paths/sso.sso-providers.id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,66 @@ parameters:
schema:
type: integer
format: int32
patch:
operationId: PatchSSOProvider
summary: Update SSO Provider
description: Updates an existing SSO provider. Updating saml provider requires a "multipart/form-data" body. Updating oidc provider requires "application/json" body. Response is respective provider
tags:
- Auth
- Community
- Enterprise
requestBody:
required: true
content:
multipart/form-data:
schema:
properties:
name:
type: string
description: Name of the new SAML provider.
metadata:
type: string
format: binary
description: Metadata XML file.
application/json:
schema:
type: object
properties:
name:
type: string
description: Name of the OIDC provider
issuer:
type: string
format: url
description: URL of the OIDC issuer
client_id:
type: string
description: Client ID for the OIDC provider
responses:
'200':
description: OK
content:
application/json:
schema:
oneOf:
- type: object
properties:
data:
$ref: './../schemas/model.saml-provider.yaml'
- type: object
properties:
data:
$ref: './../schemas/model.oidc-provider.yaml'
'401':
$ref: './../responses/unauthorized.yaml'
'403':
$ref: './../responses/forbidden.yaml'
'404':
$ref: './../responses/not-found.yaml'
'429':
$ref: './../responses/too-many-requests.yaml'
'500':
$ref: './../responses/internal-server-error.yaml'
delete:
operationId: DeleteSSOProvider
summary: Delete SSO Provider
Expand Down
2 changes: 1 addition & 1 deletion packages/go/openapi/src/paths/sso.sso-providers.oidc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ post:
type: object
properties:
data:
$ref: './../schemas/model.auth-provider.yaml'
$ref: './../schemas/model.oidc-provider.yaml'
'400':
$ref: './../responses/bad-request.yaml'
'401':
Expand Down

This file was deleted.

Loading

0 comments on commit 929f251

Please sign in to comment.