Skip to content

Commit

Permalink
Add API spec for SAML with boxy and address reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Jan 17, 2024
1 parent d958705 commit 480516f
Showing 1 changed file with 84 additions and 1 deletion.
85 changes: 84 additions & 1 deletion api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,10 @@ paths:
type: boolean
additionalConfig:
type: object
required:
- clientId
required:
- thirdPartyId

coreConfig:
type: object
Expand Down Expand Up @@ -1450,7 +1454,7 @@ paths:
schema:
type: string
example: "Bearer API_KEY"
- name: withUserCount
- name: includeUserCount
in: query
required: false
schema:
Expand Down Expand Up @@ -1681,6 +1685,10 @@ paths:
type: boolean
additionalConfig:
type: object
required:
- clientId
required:
- thirdPartyId
responses:
200:
description: Success
Expand Down Expand Up @@ -1752,6 +1760,81 @@ paths:
type: string
enum:
- Unauthorised access
/dashboard/api/tenants/third-party/boxy-saml:
put:
tags:
- Multitenancy
summary: Create or update third party config for a tenant with BoxyHQ
parameters:
- name: authorization
in: header
required: true
schema:
type: string
example: "Bearer API_KEY"
requestBody:
content:
application/json:
schema:
type: object
properties:
thirdPartyIdSuffix:
type: string
boxyUrl:
type: string
boxyApiKey:
type: string
encodedRawMetadata:
type: string
redirectUrl:
type: string
tenantId:
type: string
product:
type: string
name:
type: string
description:
type: string
required:
- boxyUrl
- boxyApiKey
- encodedRawMetadata
- redirectUrl
- tenantId
- product
- name
- description
responses:
200:
description: Success
content:
application/json:
schema:
oneOf:
- type: object
properties:
status:
type: string
default: "OK"
createdNew:
type: boolean
default: true
- type: object
properties:
status:
type: string
default: "INVALID_CONFIG"
reason:
type: string
401:
description: Unauthorised access
content:
text/plain:
schema:
type: string
enum:
- Unauthorised access
/dashboard/api/tenants/login-methods:
get:
tags:
Expand Down

0 comments on commit 480516f

Please sign in to comment.