Skip to content

Commit

Permalink
Add API to list built in factors and create a common schema for third…
Browse files Browse the repository at this point in the history
… party config
  • Loading branch information
prateek3255 committed Jan 23, 2024
1 parent 6bc3cf0 commit 53e0289
Showing 1 changed file with 85 additions and 102 deletions.
187 changes: 85 additions & 102 deletions api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1284,57 +1284,7 @@ paths:
providers:
type: array
items:
type: object
properties:
name:
type: string
thirdPartyId:
type: string
authorisationEndpoint:
type: string
authorizationEndpointQueryParams:
type: object
tokenEndpoint:
type: string
tokenEndpointBodyParams:
type: object
userInfoEndpoint:
type: string
userInfoEndpointQueryParams:
type: object
userInfoEndpointHeaders:
type: object
jwksURI:
type: string
oidcDiscoveryEndpoint:
type: string
userInfoMap:
type: object
requireEmail:
type: boolean
clients:
type: array
items:
type: object
properties:
clientType:
type: string
clientId:
type: string
clientSecret:
type: string
scope:
type: array
items:
type: string
forcePKCE:
type: boolean
additionalConfig:
type: object
required:
- clientId
required:
- thirdPartyId
$ref: "#/components/schemas/thirdPartyProvider"
firstFactors:
type: array
items:
Expand All @@ -1350,6 +1300,8 @@ paths:
- "otp-email"
coreConfig:
type: object
usersCount:
type: number
- type: object
properties:
status:
Expand Down Expand Up @@ -1659,57 +1611,7 @@ paths:
tenantId:
type: string
providerConfig:
type: object
properties:
name:
type: string
thirdPartyId:
type: string
authorisationEndpoint:
type: string
authorizationEndpointQueryParams:
type: object
tokenEndpoint:
type: string
tokenEndpointBodyParams:
type: object
userInfoEndpoint:
type: string
userInfoEndpointQueryParams:
type: object
userInfoEndpointHeaders:
type: object
jwksURI:
type: string
oidcDiscoveryEndpoint:
type: string
userInfoMap:
type: object
requireEmail:
type: boolean
clients:
type: array
items:
type: object
properties:
clientType:
type: string
clientId:
type: string
clientSecret:
type: string
scope:
type: array
items:
type: string
forcePKCE:
type: boolean
additionalConfig:
type: object
required:
- clientId
required:
- thirdPartyId
$ref: "#/components/schemas/thirdPartyProvider"
responses:
200:
description: Success
Expand Down Expand Up @@ -1904,6 +1806,35 @@ paths:
type: string
enum:
- Unauthorised access
/dashboard/api/tenants/built-in-factors/list:
get:
tags:
- Multitenancy
summary: Gets the list of built-in factors that can be used for firstFactor and requiredSecondaryFactors.
parameters:
- name: authorization
in: header
required: true
schema:
type: string
example: "Bearer API_KEY"
responses:
200:
description: Success
content:
application/json:
schema:
type: array
items:
type: string
401:
description: Unauthorised access
content:
text/plain:
schema:
type: string
enum:
- Unauthorised access
/dashboard/api/tenants/login-methods:
get:
tags:
Expand Down Expand Up @@ -2577,6 +2508,58 @@ components:
tenantId:
type: string
example: "customer1"
thirdPartyProvider:
type: object
properties:
name:
type: string
thirdPartyId:
type: string
authorisationEndpoint:
type: string
authorizationEndpointQueryParams:
type: object
tokenEndpoint:
type: string
tokenEndpointBodyParams:
type: object
userInfoEndpoint:
type: string
userInfoEndpointQueryParams:
type: object
userInfoEndpointHeaders:
type: object
jwksURI:
type: string
oidcDiscoveryEndpoint:
type: string
userInfoMap:
type: object
requireEmail:
type: boolean
clients:
type: array
items:
type: object
properties:
clientType:
type: string
clientId:
type: string
clientSecret:
type: string
scope:
type: array
items:
type: string
forcePKCE:
type: boolean
additionalConfig:
type: object
required:
- clientId
required:
- thirdPartyId
boxySAMLBaseConfig:
type: object
properties:
Expand Down

0 comments on commit 53e0289

Please sign in to comment.