Update the default sign-in experience settings with the provided data.
Body
Required
-
Maximum length is
21. -
Specify the primary branding color for the sign-in page (both light/dark mode).
-
Cloud only. Whether to hide the Logto branding on hosted sign-in pages.
-
Control the language detection policy for the sign-in page.
-
Values are
Automatic,ManualRegistrationOnly, orManual. -
Sign-in method settings
-
Sign-up method settings
-
Values are
SignIn,Register, orSignInAndRegister. -
Custom content to display on experience flow pages. the page pathname will be the config key, the content will be the config value.
-
Cloud only. Configure additional Content Security Policy source expressions for Custom UI assets. These values are applied to the hosted sign-in page only when Custom UI assets are configured.
-
The
Cross-Origin-Opener-Policyheader to send with the hosted sign-in page while Custom UI assets are configured.unsafe-none(the default) sends no header; other values require Bring your UI. Any other value cuts off apps that open the sign-in page in a popup and rely onwindow.opener. Popups the Custom UI opens itself also losewindow.openerwhen they navigate back to the Custom UI (for example, to a social sign-in callback), and withsame-originthey lose it as soon as they open, sosame-origin-allow-popupsis recommended oversame-origin.Values are
unsafe-none,same-origin-allow-popups, orsame-origin. -
Password policies to adjust the password strength requirements.
-
MFA settings
-
Adaptive MFA settings. Only effective when developer features are enabled.
-
Whether to include SSO connector branding (display name and logos) in the public sign-in experience before an email domain matches. Defaults to true.
-
Custom sentinel policy settings. Use this field to customize the user lockout policy. The default value is 100 failed attempts within one hour. The user will be locked out for 60 minutes after exceeding the limit.
-
Define email restriction policies for registering or linking email addresses.
-
Values are
EmailVerificationCodeorPhoneVerificationCode. -
Validator function
Additional properties are allowed.
curl \
--request PATCH 'https://[tenant_id].logto.app/api/sign-in-exp' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"tenantId": "string",
"color": {
"primaryColor": "string",
"isDarkModeEnabled": true,
"darkPrimaryColor": "string"
},
"branding": {
"logoUrl": "string",
"darkLogoUrl": "string",
"favicon": "string",
"darkFavicon": "string"
},
"hideLogtoBranding": true,
"languageInfo": {
"autoDetect": true,
"fallbackLanguage": "af-ZA"
},
"agreeToTermsPolicy": "Automatic",
"signIn": {
"methods": [
{
"identifier": "username",
"password": true,
"verificationCode": true,
"isPasswordPrimary": true
}
]
},
"signUp": {
"identifiers": [
"username"
],
"password": true,
"verify": true,
"secondaryIdentifiers": [
{
"identifier": "username",
"verify": true
}
]
},
"socialSignIn": {
"automaticAccountLinking": true,
"skipRequiredIdentifiers": true
},
"socialSignInConnectorTargets": [
"string"
],
"signInMode": "SignIn",
"customCss": "string",
"customContent": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"customUiAssets": {
"id": "string",
"createdAt": 42.0
},
"customUiCsp": {
"scriptSrc": [
"string"
],
"connectSrc": [
"string"
]
},
"crossOriginOpenerPolicy": "unsafe-none",
"passwordPolicy": {
"length": {
"min": 8,
"max": 256
},
"characterTypes": {
"min": 1
},
"rejects": {
"pwned": true,
"repetitionAndSequence": true,
"userInfo": true,
"words": []
}
},
"mfa": {
"factors": [
"Totp"
],
"policy": "UserControlled",
"organizationRequiredMfaPolicy": "NoPrompt"
},
"adaptiveMfa": {
"enabled": true
},
"trustedDevice": {
"enabled": true,
"durationDays": 42.0
},
"singleSignOnEnabled": true,
"ssoBrandingBeforeEmailMatch": true,
"captchaPolicy": {
"enabled": true
},
"sentinelPolicy": {
"maxAttempts": 42.0,
"lockoutDuration": 42.0
},
"emailBlocklistPolicy": {
"blockDisposableAddresses": true,
"blockSubaddressing": true,
"customAllowlist": [
"string"
],
"customBlocklist": [
"string"
]
},
"forgotPasswordMethods": [
"EmailVerificationCode"
],
"passkeySignIn": {
"enabled": true,
"showPasskeyButton": true,
"allowAutofill": true
},
"signUpProfileFields": [
{
"name": "string"
}
],
"usernamePolicy": {},
"termsOfUseUrl": "string",
"privacyPolicyUrl": "string",
"supportEmail": "hello@example.com",
"supportWebsiteUrl": "string",
"unknownSessionRedirectUrl": "string",
"passwordExpiration": {},
"verificationCodePolicy": {
"expirationDuration": 42.0,
"maxRetryAttempts": 42.0
}
}'
{
"tenantId": "string",
"color": {
"primaryColor": "string",
"isDarkModeEnabled": true,
"darkPrimaryColor": "string"
},
"branding": {
"logoUrl": "string",
"darkLogoUrl": "string",
"favicon": "string",
"darkFavicon": "string"
},
"hideLogtoBranding": true,
"languageInfo": {
"autoDetect": true,
"fallbackLanguage": "af-ZA"
},
"agreeToTermsPolicy": "Automatic",
"signIn": {
"methods": [
{
"identifier": "username",
"password": true,
"verificationCode": true,
"isPasswordPrimary": true
}
]
},
"signUp": {
"identifiers": [
"username"
],
"password": true,
"verify": true,
"secondaryIdentifiers": [
{
"identifier": "username",
"verify": true
}
]
},
"socialSignIn": {
"automaticAccountLinking": true,
"skipRequiredIdentifiers": true
},
"socialSignInConnectorTargets": [
"string"
],
"signInMode": "SignIn",
"customCss": "string",
"customContent": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"customUiAssets": {
"id": "string",
"createdAt": 42.0
},
"customUiCsp": {
"scriptSrc": [
"string"
],
"connectSrc": [
"string"
]
},
"crossOriginOpenerPolicy": "unsafe-none",
"passwordPolicy": {
"length": {
"min": 8,
"max": 256
},
"characterTypes": {
"min": 1
},
"rejects": {
"pwned": true,
"repetitionAndSequence": true,
"userInfo": true,
"words": []
}
},
"mfa": {
"factors": [
"Totp"
],
"policy": "UserControlled",
"organizationRequiredMfaPolicy": "NoPrompt"
},
"adaptiveMfa": {
"enabled": true
},
"trustedDevice": {
"enabled": true,
"durationDays": 42.0
},
"singleSignOnEnabled": true,
"ssoBrandingBeforeEmailMatch": true,
"captchaPolicy": {
"enabled": true
},
"sentinelPolicy": {
"maxAttempts": 42.0,
"lockoutDuration": 42.0
},
"emailBlocklistPolicy": {
"blockDisposableAddresses": true,
"blockSubaddressing": true,
"customAllowlist": [
"string"
],
"customBlocklist": [
"string"
]
},
"forgotPasswordMethods": [
"EmailVerificationCode"
],
"passkeySignIn": {
"enabled": true,
"showPasskeyButton": true,
"allowAutofill": true
},
"signUpProfileFields": [
{
"name": "string"
}
],
"usernamePolicy": {},
"termsOfUseUrl": "string",
"privacyPolicyUrl": "string",
"supportEmail": "hello@example.com",
"supportWebsiteUrl": "string",
"unknownSessionRedirectUrl": "string",
"passwordExpiration": {},
"verificationCodePolicy": {
"expirationDuration": 42.0,
"maxRetryAttempts": 42.0
}
}
{
"tenantId": "string",
"id": "string",
"color": {
"primaryColor": "string",
"isDarkModeEnabled": true,
"darkPrimaryColor": "string"
},
"branding": {
"logoUrl": "string",
"darkLogoUrl": "string",
"favicon": "string",
"darkFavicon": "string"
},
"hideLogtoBranding": true,
"languageInfo": {
"autoDetect": true,
"fallbackLanguage": "af-ZA"
},
"termsOfUseUrl": "string",
"privacyPolicyUrl": "string",
"agreeToTermsPolicy": "Automatic",
"signIn": {
"methods": [
{
"identifier": "username",
"password": true,
"verificationCode": true,
"isPasswordPrimary": true
}
]
},
"signUp": {
"identifiers": [
"username"
],
"password": true,
"verify": true,
"secondaryIdentifiers": [
{
"identifier": "username",
"verify": true
}
]
},
"socialSignIn": {
"automaticAccountLinking": true,
"skipRequiredIdentifiers": true
},
"socialSignInConnectorTargets": [
"string"
],
"signInMode": "SignIn",
"customCss": "string",
"customContent": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"customUiAssets": {
"id": "string",
"createdAt": 42.0
},
"customUiCsp": {
"scriptSrc": [
"string"
],
"connectSrc": [
"string"
]
},
"crossOriginOpenerPolicy": "unsafe-none",
"passwordPolicy": {
"length": {
"min": 8,
"max": 256
},
"characterTypes": {
"min": 1
},
"rejects": {
"pwned": true,
"repetitionAndSequence": true,
"userInfo": true,
"words": []
}
},
"mfa": {
"factors": [
"Totp"
],
"policy": "UserControlled",
"organizationRequiredMfaPolicy": "NoPrompt"
},
"adaptiveMfa": {
"enabled": true
},
"trustedDevice": {
"enabled": true,
"durationDays": 42.0
},
"singleSignOnEnabled": true,
"ssoBrandingBeforeEmailMatch": true,
"supportEmail": "string",
"supportWebsiteUrl": "string",
"unknownSessionRedirectUrl": "string",
"captchaPolicy": {
"enabled": true
},
"sentinelPolicy": {
"maxAttempts": 42.0,
"lockoutDuration": 42.0
},
"emailBlocklistPolicy": {
"blockDisposableAddresses": true,
"blockSubaddressing": true,
"customAllowlist": [
"string"
],
"customBlocklist": [
"string"
]
},
"verificationCodePolicy": {
"expirationDuration": 42.0,
"maxRetryAttempts": 42.0
},
"forgotPasswordMethods": [
"EmailVerificationCode"
],
"passkeySignIn": {
"enabled": true,
"showPasskeyButton": true,
"allowAutofill": true
},
"signUpProfileFields": [
{
"name": "string"
}
],
"passwordExpiration": {
"enabled": true
},
"usernamePolicy": {}
}