This topic describes how to enable organization authentication and configure a login IP address allowlist. You can select authentication methods such as password/verification code, SAML, Google, and Microsoft, and restrict the source IP addresses that members can use for organization authentication.
Prerequisites
- You must be an organization admin or organization operations admin.
- If you select SAML authentication, configure federated authentication as described in Configure IdP.
Considerations
- When configuring SAML authentication for the first time, we recommend enabling at least one additional authentication method to prevent sign-in failures caused by an incorrect SAML configuration.
- You can sign in to an organization through its organization-specific URL. Alternatively, you can sign in to the OB Cloud website with a personal account and complete organization authentication when switching organizations.
- When a user signs in through an organization-specific URL:
- Ensure that the user has an OB Cloud account.
- If the user signs in using password/verification code, Google, or Microsoft, or uses SAML without a domain allowlist configured, ensure that the user has joined the organization.
- Organization-level multi-factor authentication (MFA) is triggered only when users sign in using a password or verification code. To use MFA with SAML authentication, configure MFA in the identity provider.
- The login IP address allowlist applies to all configured authentication methods. The system checks a member's source IP address during organization authentication.
- Updating the login IP address allowlist does not immediately invalidate existing organization login sessions. The system checks the source IP address against the updated allowlist the next time a member authenticates to the organization.
Procedure
Log in to the OceanBase Cloud console.
From the organization drop-down list in the upper-left corner, select an organization to go to its project information page.
In the left-side navigation pane, click Organization settings.
Turn on Organization authentication to open the configuration page.
Complete the following settings on the configuration page, then save your changes.
Configuration itemDescriptionCustom URL Specify an organization-specific login URL. Enter a suffix for the organization login page URL. After organization authentication is enabled, members can use this URL to log in to the organization. The suffix must be 3 to 64 characters long and can contain only letters, digits, and hyphens (-). Notice
After the URL takes effect, it cannot be changed. To change it, disable organization authentication and configure it again.
Authentication methods Select one or more authentication methods to allow. Members can use any one of the selected methods to authenticate when they log in. - Password: Log in with an account password or verification code.
- Google: Log in with a Google account.
- Microsoft: Log in with a Microsoft account.
- SAML: Authenticate through a third-party identity provider.
If you select SAML, also configure federated authentication as follows:
Configure the identity provider.
Log in to the identity provider console, create a SAML application, and enter the ACS URL and SP Entity ID provided by OB Cloud in the application configuration.
For information about creating a SAML application, see Configure IdP.
Obtain the identity provider information.
After you create and configure the SAML application, it generates an IdP SSO URL and an IdP X509 certificate. Download or save this information, then enter or upload it on this page. You can upload a metadata XML file to populate the fields automatically or enter the values manually.
For information about obtaining the IdP SSO URL and IdP X509 certificate, see Configure IdP.
Optional: Configure a domain allowlist.
Members whose email domains match the allowlist automatically join the current organization and receive the default role when they first log in through SSO. Members whose email domains do not match must be manually invited through OB Cloud. The default role applies only when the domain list is not empty.
In Email domains, enter the domains allowed for login. Separate multiple domains with commas (
,) or line breaks.In Organization role, select a role for members whose email domains match the allowlist. For more information, see Permissions for roles.
Login IP address allowlist (optional) Specify the source IP addresses allowed to log in to the organization. - IPv4 and IPv6 addresses and CIDR blocks are supported. Separate entries with commas or line breaks, and press Enter to confirm your input.
- You can specify up to 100 entries. CIDR blocks with a prefix length of 0, such as
0.0.0.0/0and::/0, are not supported. - An empty allowlist allows login from any source IP address. After you enter and save an allowlist, organization authentication succeeds only if the source IP address matches an address or CIDR block in the allowlist.
Click OK to save the settings.
Note
If the allowlist is not empty and the check before saving finds that your current client IP address is not included, the system displays The current client IP address is not in the login IP address allowlist. Check the client IP address shown in the dialog box. If you continue saving, you will be denied access the next time you log in to this organization from that IP address. Existing login sessions are not affected.
- To change the allowlist, click Cancel to return to the configuration page. Your changes will not be saved.
- To keep the allowlist as configured, click Continue saving.
After the settings are saved, you are returned to the Organization settings page.
Related operations
- Edit organization authentication: After organization authentication is enabled, click Edit to modify configuration settings other than the URL. To change the URL, disable organization authentication and reconfigure it.
- Remove login IP address restrictions: Edit the organization authentication settings, remove all entries from Login IP address allowlist, and save. Organization authentication remains enabled and allows authentication from any source IP address.
- Disable organization authentication: You can disable organization authentication when it is no longer required. After it is disabled, the configured authentication methods and organization-specific URL are deleted, and members can no longer use organization authentication. This operation cannot be undone. Proceed with caution.