Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for email domain based organization discovery for self-registration. #4923

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`
Comment on lines +94 to +101
Copy link
Contributor

@AnuradhaSK AnuradhaSK Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API needs to be added to Asgardeo API docs as well right?
May be we can change the sample in Asgardeo API

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 @@ -148,20 +197,22 @@ components:
properties:
type: array
items:
$ref: '#/components/schemas/Properties'
Properties:
required:
- key
- value
type: object
properties:
key:
type: string
example: emailDomain.enable
value:
type: string
example: true

Yasasr1 marked this conversation as resolved.
Show resolved Hide resolved
type: object
required:
- key
- value
properties:
key:
type: string
example: emailDomain.enable
value:
type: string
example: true
example:
- key: emailDomain.enable
value: true
- key: emailDomainBasedSelfSignup.enable
value: false
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.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ and user Bob and Ben, with emails `[email protected]` and `[email protected]` should be
### Using the Console

1. Login to the organization (root) from the {{ product_name }} Console.
2. On the {{ product_name }} Console, go to **Login & Registration**, and click **Email Domain Discovery** under **Organization Settings**.
2. On the {{ product_name }} Console, go to **Login & Registration**, and click **Organization Discovery** under **Organization Settings**.
3. Turn on the toggle to enable email domain based organization discovery.
Yasasr1 marked this conversation as resolved.
Show resolved Hide resolved
4. Select the **Email domain discovery for self-registration** checkbox if you want to allow users to discover and self-register in sub-organizations based on their email domain.

![Enable email domain based organization discovery]({{base_path}}/assets/img/guides/organization/manage-organizations/enable-email-domain-based-organization-discovery.png){: width="700" style="display: block; margin: 0; border: 0.3px solid lightgrey;"}
Yasasr1 marked this conversation as resolved.
Show resolved Hide resolved

Expand Down