Skip to content

Commit

Permalink
Merge pull request #4923 from Yasasr1/org-discovery
Browse files Browse the repository at this point in the history
Update docs for email domain based organization discovery for self-registration.
  • Loading branch information
himeshsiriwardana authored Jan 10, 2025
2 parents 6eddd8c + 05aa241 commit 2970d3a
Show file tree
Hide file tree
Showing 12 changed files with 287 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,51 @@ paths:
]
}'
x-codegen-request-body-name: body
put:
tags:
- Discovery
summary: Update organization discovery configuration.
description: |
This API provides the capability to update discovery configuration of the root organization. <br>
<b>Scope(Permission) required:</b> `internal_organization_config_update`
operationId: updateDiscoveryConfig
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Config'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Config'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'500':
$ref: '#/components/responses/ServerError'
x-codeSamples:
- lang: Curl
source: |
curl --location --request PUT 'https://api.asgardeo.io/t/{organization-name}/api/server/v1/organization-configs/discovery' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {bearer_token}' \
-d '{
"properties": [
{
"key": "emailDomain.enable",
"value": true
}
]
}'
x-codegen-request-body-name: body
delete:
tags:
- Discovery
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,55 @@ paths:
]
}'
x-codegen-request-body-name: body
put:
tags:
- Discovery
summary: Update organization discovery configuration.
description: |
This API provides the capability to update discovery configuration of the primary organization. <br>
<b>Scope(Permission) required:</b> `internal_organization_config_update`
operationId: updateDiscoveryConfig
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Config'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Config'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'500':
$ref: '#/components/responses/ServerError'
x-codeSamples:
- lang: Curl
source: |
curl --location --request PUT 'https://localhost:9443/api/server/v1/organization-configs/discovery' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
-d '{
"properties": [
{
"key": "emailDomain.enable",
"value": true
},
{
"key": "emailDomainBasedSelfSignup.enable",
"value": false
}
]
}'
x-codegen-request-body-name: body
delete:
tags:
- Discovery
Expand Down Expand Up @@ -149,6 +198,11 @@ components:
type: array
items:
$ref: '#/components/schemas/Properties'
example:
- key: emailDomain.enable
value: true
- key: emailDomainBasedSelfSignup.enable
value: false
Properties:
required:
- key
Expand All @@ -161,7 +215,6 @@ components:
value:
type: string
example: true

responses:
BadRequest:
description: Invalid input in the request.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2970d3a

Please sign in to comment.