Configure the Authentication setting
Note
To configure Content Hub, you must either be a superuser or have the necessary permissions granted to you through user group policies.
To configure the Authentication setting:
- On the menu bar, click Manage .
- On the Manage page, click Settings.
- On the Settings page, select the Authentication setting.
- Add the properties.
- Click Save.
Note
You can refer to the configuration example for a better understanding of this setting.
Tip
Content Hub information architects and those in technical roles can find more detailed information about authentication properties in the Accelerate Cookbook for Content Hub, a collection of recipes that provides information to help you successfully set up, configure, and implement Content Hub.
Properties
You can configure the following authentication properties.
- Property: Description
EnableEmailWhiteList: If set totrue, only users with email addresses matching one of the configured patterns listed inWhiteListedEmailPatternscan create an account.WhiteListedEmailPatterns: IfEnableEmailWhiteLististrue, users can only create an account if the email they use matches at least one of the regular expressions in this list property. If the list is empty, there are no restrictions on which email addresses can be used.DefaultUserGroups: A list of user groups that new users are added to automatically. Any groups in this list that do not already exist are created when a user is added to them by this process. If you don’t want new users to be added to any user groups automatically, this list can be left blank or the property omitted.EnableBasicAuthentication: If set totrue, users can log in using a username and password on the login page. If set tofalse, they can only log in using external authentication providers.NoteTo ensure successful integrations, setEnableBasicAuthenticationtotruewhen using an SDK with an OAuth flow.EnableRegister: If set totrue, users can create a new account using the registration page.NoteThis property relies on a public endpoint used to create new user accounts. If you enable this property, you must configureReCaptchato avoid validation errors when saving your authentication settings. We also recommend to enableAutoRestrictand useDefaultUserGroups.ShowRegister: If set totrue, a link to theRegistrationLinkURL shows on the login page.EnableExternalAuthentication: If set totrue, external authentication is enabled, letting users log in with one of the configured external authentication providers.EnableConfirmationMail: If set totrue, users can only log in after clicking the link in the confirmation email sent to them.EnableLockout: If set totrue, user accounts are automatically locked out after exceeding the number of failed login attempts set inAttemptsBeforeLockout.ExpireTimeSpan: Number of minutes that the authentication cookie is valid.The maximum value is 1,440 minutes (equivalent to 24 hours).MinutesToLockout: Number of minutes a user is locked out of the system after exceeding the unsuccessful login attempts set byAttemptsBeforeLockout.AttemptsBeforeLockout: Number of failed login attempts before a user is locked out of the system.AutoRestrict: If set totrue, all new users are automatically restricted. Restricted users can only access a specific landing page until an administrator verifies their account.EnableCredentialless: If set totrue, users can log in using an external authentication provider without having to create an account for it. If a user's email address already exists in the system, the login is linked to the existing account.UsernameClaimType: By default, the username.AutoCreateUsers: If set totrue, and a user logs in with an external authentication provider, an account is created automatically if the user does not already have one.CookieName: Name of the authentication cookie.CookieDomain: Domain used for the authentication cookie.PostSignOutRedirectUrl: Users are redirected to the specified URL after signing out of the application. If this option is not specified, users are redirected back to the login page.NoteYou can access the remote sign-out page of the authentication service provider at the/signout-{provider-name}endpoint, and you can access the sign-out call back page at the/signout-callback-{provider-name}endpoint.PasswordRules: Rules used to validate user passwords:RequireDigit- the password must contain a digit.RequireLowercase- the password must contain a lowercase character.RequireNonLetterOrDigit- the password must contain a non-alphanumeric character.RequireUppercase- the password must contain an uppercase character.RequiredLength- minimum length for a password.ReCaptcha:ReCaptchaprovides protection against spam. Ensure that the correctkeyandsecretare stated. Must be configured ifEnableRegisteris set totrue.ExternalAuthenticationProviders: Configuration settings of the external authentication provider.EnableForgotPassword: IfShowForgotPasswordistrue, then this must also betrue.PasswordExpiration: Number of minutes that the password is valid. Users are prompted to change their password when it expires.RegistrationLink: A registration page URL. IfEnableRegisterandShowRegisterare true, users who click the registration link on the login page are directed to this URL.SameSiteCompatibility: Used for security purposes.NoteThisPolicyproperty is used only when thesamesite_cookie_policyfeature is enabled. Contact your account executive to enable it.SameSite: Controls when and where a cookie is sent. It is designed to enhance security and privacy by restricting cross-site request forgery (CSRF) attacks and unintentional information leakages.ShowForgotPassword: If set totrue, a link to the forgotten password page appears on the login page.SlidingExpiration: If set totrue, the authentication cookie gets a new expiration time whenever a request is processed more than halfway through the expiration period.TokenLifespan: The period after which password reset and email confirmation tokens expire.
If you have suggestions for improving this article, let us know!