fix(login, console): replace allowUsernamePassword with allowLocalAuthentication in login, change translation in console (#11413)

# Which Problems Are Solved

This PR deprecates and replaces the use of `allowUsernamePassword` with
`allowLocalAuthentication`.
It additionally disables the username on organizations that disallow
local authentication. In such a case, only IDPs are shown.

# How the Problems Are Solved

- replace `allowUsernamePassword` by `allowLocalAuthentication`
- disable username form if !allowLocalAuthentication
- translate property in console UI
This commit is contained in:
Max Peintner
2026-02-04 12:54:37 +00:00
committed by GitHub
parent 6f07b8deee
commit 38dbd4cf3e
46 changed files with 171 additions and 142 deletions
@@ -83,7 +83,7 @@ describe("verify invite", () => {
data: { data: {
settings: { settings: {
passkeysType: 1, passkeysType: 1,
allowUsernamePassword: true, allowLocalAuthentication: true,
}, },
}, },
}); });
@@ -48,7 +48,7 @@ describe("login", () => {
data: { data: {
settings: { settings: {
passkeysType: 1, passkeysType: 1,
allowUsernamePassword: true, allowLocalAuthentication: true,
}, },
}, },
}); });
@@ -15,7 +15,7 @@ describe("register", () => {
settings: { settings: {
passkeysType: 1, passkeysType: 1,
allowRegister: true, allowRegister: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
defaultRedirectUri: "", defaultRedirectUri: "",
}, },
}, },
+1
View File
@@ -47,6 +47,7 @@
"userNotFound": "المستخدم غير موجود في النظام", "userNotFound": "المستخدم غير موجود في النظام",
"couldNotCreateSession": "تعذر إنشاء جلسة للمستخدم", "couldNotCreateSession": "تعذر إنشاء جلسة للمستخدم",
"initialUserNotSupported": "المستخدم الأولي غير مدعوم", "initialUserNotSupported": "المستخدم الأولي غير مدعوم",
"localAuthenticationNotAllowed": "المصادقة المحلية غير مسموح بها! اتصل بالمسؤول لمزيد من المعلومات.",
"usernamePasswordNotAllowed": "اسم المستخدم وكلمة المرور غير مسموح بهما! اتصل بالمسؤول لمزيد من المعلومات.", "usernamePasswordNotAllowed": "اسم المستخدم وكلمة المرور غير مسموح بهما! اتصل بالمسؤول لمزيد من المعلومات.",
"passkeysNotAllowed": "مفاتيح المرور غير مسموح بها! اتصل بالمسؤول لمزيد من المعلومات.", "passkeysNotAllowed": "مفاتيح المرور غير مسموح بها! اتصل بالمسؤول لمزيد من المعلومات.",
"couldNotFindIdentityProvider": "تعذر العثور على مزود الهوية.", "couldNotFindIdentityProvider": "تعذر العثور على مزود الهوية.",
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Benutzer im System nicht gefunden", "userNotFound": "Benutzer im System nicht gefunden",
"couldNotCreateSession": "Sitzung für Benutzer konnte nicht erstellt werden", "couldNotCreateSession": "Sitzung für Benutzer konnte nicht erstellt werden",
"initialUserNotSupported": "Initialer Benutzer wird nicht unterstützt", "initialUserNotSupported": "Initialer Benutzer wird nicht unterstützt",
"usernamePasswordNotAllowed": "Benutzername und Passwort nicht zulässig! Wenden Sie sich für weitere Informationen an Ihren Administrator.", "localAuthenticationNotAllowed": "Lokale Authentifizierung nicht zulässig! Wenden Sie sich für weitere Informationen an Ihren Administrator.",
"passkeysNotAllowed": "Passkeys nicht zulässig! Wenden Sie sich für weitere Informationen an Ihren Administrator.", "passkeysNotAllowed": "Passkeys nicht zulässig! Wenden Sie sich für weitere Informationen an Ihren Administrator.",
"couldNotFindIdentityProvider": "Identitätsanbieter konnte nicht gefunden werden.", "couldNotFindIdentityProvider": "Identitätsanbieter konnte nicht gefunden werden.",
"userNotActive": "Das Benutzerkonto ist inaktiv. Wenden Sie sich für weitere Informationen an Ihren Administrator." "userNotActive": "Das Benutzerkonto ist inaktiv. Wenden Sie sich für weitere Informationen an Ihren Administrator."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "User not found in the system", "userNotFound": "User not found in the system",
"couldNotCreateSession": "Could not create session for user", "couldNotCreateSession": "Could not create session for user",
"initialUserNotSupported": "Initial User not supported", "initialUserNotSupported": "Initial User not supported",
"usernamePasswordNotAllowed": "Username Password not allowed! Contact your administrator for more information.", "localAuthenticationNotAllowed": "Local authentication is not allowed! Contact your administrator for more information.",
"passkeysNotAllowed": "Passkeys not allowed! Contact your administrator for more information.", "passkeysNotAllowed": "Passkeys not allowed! Contact your administrator for more information.",
"couldNotFindIdentityProvider": "Could not find identity provider.", "couldNotFindIdentityProvider": "Could not find identity provider.",
"userNotActive": "User is not active. Contact your administrator for more information." "userNotActive": "User is not active. Contact your administrator for more information."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Usuario no encontrado en el sistema", "userNotFound": "Usuario no encontrado en el sistema",
"couldNotCreateSession": "No se pudo crear la sesión para el usuario", "couldNotCreateSession": "No se pudo crear la sesión para el usuario",
"initialUserNotSupported": "Usuario inicial no admitido", "initialUserNotSupported": "Usuario inicial no admitido",
"usernamePasswordNotAllowed": "El inicio de sesión con usuario y contraseña no está permitido. Contacte con su administrador para más información.", "localAuthenticationNotAllowed": "¡La autenticación local no está permitida! Contacte con su administrador para más información.",
"passkeysNotAllowed": "Las passkeys no están permitidas. Contacte con su administrador para más información.", "passkeysNotAllowed": "Las passkeys no están permitidas. Contacte con su administrador para más información.",
"couldNotFindIdentityProvider": "No se pudo encontrar el proveedor de identidad.", "couldNotFindIdentityProvider": "No se pudo encontrar el proveedor de identidad.",
"userNotActive": "El usuario no está activo. Contacte con su administrador para más información." "userNotActive": "El usuario no está activo. Contacte con su administrador para más información."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Utilisateur non trouvé dans le système", "userNotFound": "Utilisateur non trouvé dans le système",
"couldNotCreateSession": "Impossible de créer une session pour l'utilisateur", "couldNotCreateSession": "Impossible de créer une session pour l'utilisateur",
"initialUserNotSupported": "Utilisateur initial non pris en charge", "initialUserNotSupported": "Utilisateur initial non pris en charge",
"usernamePasswordNotAllowed": "L'identifiant et le mot de passe ne sont pas autorisés ! Contactez votre administrateur pour plus d'informations.", "localAuthenticationNotAllowed": "L'authentification locale n'est pas autorisée ! Contactez votre administrateur pour plus d'informations.",
"passkeysNotAllowed": "Les clés d'accès ne sont pas autorisées ! Contactez votre administrateur pour plus d'informations.", "passkeysNotAllowed": "Les clés d'accès ne sont pas autorisées ! Contactez votre administrateur pour plus d'informations.",
"couldNotFindIdentityProvider": "Impossible de trouver le fournisseur d'identité.", "couldNotFindIdentityProvider": "Impossible de trouver le fournisseur d'identité.",
"userNotActive": "L'utilisateur n'est pas actif. Contactez votre administrateur pour plus d'informations." "userNotActive": "L'utilisateur n'est pas actif. Contactez votre administrateur pour plus d'informations."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Utente non trovato nel sistema", "userNotFound": "Utente non trovato nel sistema",
"couldNotCreateSession": "Impossibile creare la sessione per l'utente", "couldNotCreateSession": "Impossibile creare la sessione per l'utente",
"initialUserNotSupported": "Utente iniziale non supportato", "initialUserNotSupported": "Utente iniziale non supportato",
"usernamePasswordNotAllowed": "Nome utente e password non consentiti! Contatta l'amministratore per maggiori informazioni.", "localAuthenticationNotAllowed": "L'autenticazione locale non è consentita! Contatta il tuo amministratore per ulteriori informazioni.",
"passkeysNotAllowed": "Passkey non consentite! Contatta l'amministratore per maggiori informazioni.", "passkeysNotAllowed": "Passkey non consentite! Contatta l'amministratore per maggiori informazioni.",
"couldNotFindIdentityProvider": "Impossibile trovare il provider di identità.", "couldNotFindIdentityProvider": "Impossibile trovare il provider di identità.",
"userNotActive": "L'utente non è attivo. Contatta l'amministratore per maggiori informazioni." "userNotActive": "L'utente non è attivo. Contatta l'amministratore per maggiori informazioni."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "ユーザーがシステムに見つかりません", "userNotFound": "ユーザーがシステムに見つかりません",
"couldNotCreateSession": "ユーザーのセッションを作成できませんでした", "couldNotCreateSession": "ユーザーのセッションを作成できませんでした",
"initialUserNotSupported": "初期ユーザーはサポートされていません", "initialUserNotSupported": "初期ユーザーはサポートされていません",
"usernamePasswordNotAllowed": "ユーザー名とパスワードは許可されていません!詳細については管理者にお問い合わせください。", "localAuthenticationNotAllowed": "ローカル認証は許可されていません! 詳細については管理者に問い合わせてください。",
"passkeysNotAllowed": "パスキーは許可されていません!詳細については管理者にお問い合わせください。", "passkeysNotAllowed": "パスキーは許可されていません!詳細については管理者にお問い合わせください。",
"couldNotFindIdentityProvider": "IDプロバイダーが見つかりませんでした。", "couldNotFindIdentityProvider": "IDプロバイダーが見つかりませんでした。",
"userNotActive": "ユーザーはアクティブではありません。詳細については管理者にお問い合わせください。" "userNotActive": "ユーザーはアクティブではありません。詳細については管理者にお問い合わせください。"
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Gebruiker niet in het systeem gevonden", "userNotFound": "Gebruiker niet in het systeem gevonden",
"couldNotCreateSession": "Kon sessie voor gebruiker niet aanmaken", "couldNotCreateSession": "Kon sessie voor gebruiker niet aanmaken",
"initialUserNotSupported": "Initiële gebruiker wordt niet ondersteund", "initialUserNotSupported": "Initiële gebruiker wordt niet ondersteund",
"usernamePasswordNotAllowed": "Gebruikersnaam en wachtwoord niet toegestaan! Neem contact op met jouw beheerder voor meer informatie.", "localAuthenticationNotAllowed": "Lokale authenticatie is niet toegestaan! Neem contact op met uw beheerder voor meer informatie.",
"passkeysNotAllowed": "Passkeys niet toegestaan! Neem contact op met jouw beheerder voor meer informatie.", "passkeysNotAllowed": "Passkeys niet toegestaan! Neem contact op met jouw beheerder voor meer informatie.",
"couldNotFindIdentityProvider": "Kon identiteitsprovider niet vinden.", "couldNotFindIdentityProvider": "Kon identiteitsprovider niet vinden.",
"userNotActive": "Gebruiker is niet actief. Neem contact op met jouw beheerder voor meer informatie." "userNotActive": "Gebruiker is niet actief. Neem contact op met jouw beheerder voor meer informatie."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Użytkownik nie został znaleziony w systemie", "userNotFound": "Użytkownik nie został znaleziony w systemie",
"couldNotCreateSession": "Nie udało się utworzyć sesji dla użytkownika", "couldNotCreateSession": "Nie udało się utworzyć sesji dla użytkownika",
"initialUserNotSupported": "Użytkownik inicjalny nie jest obsługiwany", "initialUserNotSupported": "Użytkownik inicjalny nie jest obsługiwany",
"usernamePasswordNotAllowed": "Logowanie przy użyciu nazwy użytkownika i hasła jest niedozwolone! Skontaktuj się z administratorem, aby uzyskać więcej informacji.", "localAuthenticationNotAllowed": "Uwierzytelnianie lokalne nie jest dozwolone! Skontaktuj się z administratorem, aby uzyskać więcej informacji.",
"passkeysNotAllowed": "Klucze dostępu są niedozwolone! Skontaktuj się z administratorem, aby uzyskać więcej informacji.", "passkeysNotAllowed": "Klucze dostępu są niedozwolone! Skontaktuj się z administratorem, aby uzyskać więcej informacji.",
"couldNotFindIdentityProvider": "Nie udało się znaleźć dostawcy tożsamości.", "couldNotFindIdentityProvider": "Nie udało się znaleźć dostawcy tożsamości.",
"userNotActive": "Użytkownik jest nieaktywny. Skontaktuj się z administratorem, aby uzyskać więcej informacji." "userNotActive": "Użytkownik jest nieaktywny. Skontaktuj się z administratorem, aby uzyskać więcej informacji."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Пользователь не найден в системе", "userNotFound": "Пользователь не найден в системе",
"couldNotCreateSession": "Не удалось создать сессию для пользователя", "couldNotCreateSession": "Не удалось создать сессию для пользователя",
"initialUserNotSupported": "Начальный пользователь не поддерживается", "initialUserNotSupported": "Начальный пользователь не поддерживается",
"usernamePasswordNotAllowed": "Использование имени пользователя и пароля не разрешено! Обратитесь к администратору за дополнительной информацией.", "localAuthenticationNotAllowed": "Локальная аутентификация запрещена! Обратитесь к администратору за дополнительной информацией.",
"passkeysNotAllowed": "Ключи доступа не разрешены! Обратитесь к администратору за дополнительной информацией.", "passkeysNotAllowed": "Ключи доступа не разрешены! Обратитесь к администратору за дополнительной информацией.",
"couldNotFindIdentityProvider": "Не удалось найти поставщика удостоверений.", "couldNotFindIdentityProvider": "Не удалось найти поставщика удостоверений.",
"userNotActive": "Пользователь неактивен. Обратитесь к администратору за дополнительной информацией." "userNotActive": "Пользователь неактивен. Обратитесь к администратору за дополнительной информацией."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Kullanıcı sistemde bulunamadı", "userNotFound": "Kullanıcı sistemde bulunamadı",
"couldNotCreateSession": "Kullanıcı için oturum oluşturulamadı", "couldNotCreateSession": "Kullanıcı için oturum oluşturulamadı",
"initialUserNotSupported": "İlk kullanıcı desteklenmiyor", "initialUserNotSupported": "İlk kullanıcı desteklenmiyor",
"usernamePasswordNotAllowed": "Kullanıcı adı ve şifre izin verilmiyor! Daha fazla bilgi için yöneticinizle iletişime geçin.", "localAuthenticationNotAllowed": "Yerel kimlik doğrulamasına izin verilmiyor! Daha fazla bilgi için yöneticinize başvurun.",
"passkeysNotAllowed": "Passkey'ler izin verilmiyor! Daha fazla bilgi için yöneticinizle iletişime geçin.", "passkeysNotAllowed": "Passkey'ler izin verilmiyor! Daha fazla bilgi için yöneticinizle iletişime geçin.",
"couldNotFindIdentityProvider": "Kimlik sağlayıcı bulunamadı.", "couldNotFindIdentityProvider": "Kimlik sağlayıcı bulunamadı.",
"userNotActive": "Kullanıcı aktif değil. Daha fazla bilgi için yöneticinizle iletişime geçin." "userNotActive": "Kullanıcı aktif değil. Daha fazla bilgi için yöneticinizle iletişime geçin."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "Користувача не знайдено в системі", "userNotFound": "Користувача не знайдено в системі",
"couldNotCreateSession": "Не вдалося створити сеанс для користувача", "couldNotCreateSession": "Не вдалося створити сеанс для користувача",
"initialUserNotSupported": "Початковий користувач не підтримується", "initialUserNotSupported": "Початковий користувач не підтримується",
"usernamePasswordNotAllowed": "Ім'я користувача та пароль не дозволені! Зверніться до адміністратора для отримання додаткової інформації.", "localAuthenticationNotAllowed": "Локальна аутентифікація заборонена! Зверніться до адміністратора за додатковою інформацією.",
"passkeysNotAllowed": "Ключі доступу не дозволені! Зверніться до адміністратора для отримання додаткової інформації.", "passkeysNotAllowed": "Ключі доступу не дозволені! Зверніться до адміністратора для отримання додаткової інформації.",
"couldNotFindIdentityProvider": "Не вдалося знайти постачальника ідентичності.", "couldNotFindIdentityProvider": "Не вдалося знайти постачальника ідентичності.",
"userNotActive": "Користувач неактивний. Зверніться до адміністратора для отримання додаткової інформації." "userNotActive": "Користувач неактивний. Зверніться до адміністратора для отримання додаткової інформації."
+1 -1
View File
@@ -47,7 +47,7 @@
"userNotFound": "系统中未找到用户", "userNotFound": "系统中未找到用户",
"couldNotCreateSession": "无法为用户创建会话", "couldNotCreateSession": "无法为用户创建会话",
"initialUserNotSupported": "不支持初始用户", "initialUserNotSupported": "不支持初始用户",
"usernamePasswordNotAllowed": "不允许使用用户名和密码!请联系管理员了解更多信息。", "localAuthenticationNotAllowed": "不允许本地身份验证!请联系您的管理员以获取更多信息。",
"passkeysNotAllowed": "不允许使用 Passkey!请联系管理员了解更多信息。", "passkeysNotAllowed": "不允许使用 Passkey!请联系管理员了解更多信息。",
"couldNotFindIdentityProvider": "找不到身份提供者。", "couldNotFindIdentityProvider": "找不到身份提供者。",
"userNotActive": "用户未激活。请联系管理员了解更多信息。" "userNotActive": "用户未激活。请联系管理员了解更多信息。"
@@ -57,7 +57,7 @@ export default async function Page(props: { searchParams: Promise<Record<string
</div> </div>
<div className="w-full"> <div className="w-full">
<UsernameForm {loginSettings?.allowLocalAuthentication && <UsernameForm
loginName={loginName} loginName={loginName}
requestId={requestId} requestId={requestId}
organization={organization} // stick to "organization" as we still want to do user discovery based on the searchParams not the default organization, later the organization is determined by the found user organization={organization} // stick to "organization" as we still want to do user discovery based on the searchParams not the default organization, later the organization is determined by the found user
@@ -66,7 +66,7 @@ export default async function Page(props: { searchParams: Promise<Record<string
suffix={suffix} suffix={suffix}
submit={submit} submit={submit}
allowRegister={!!loginSettings?.allowRegister} allowRegister={!!loginSettings?.allowRegister}
></UsernameForm> ></UsernameForm>}
{loginSettings?.allowExternalIdp && !!identityProviders?.length && ( {loginSettings?.allowExternalIdp && !!identityProviders?.length && (
<div className="w-full pb-4 pt-6"> <div className="w-full pb-4 pt-6">
@@ -75,6 +75,7 @@ export default async function Page(props: { searchParams: Promise<Record<string
requestId={requestId} requestId={requestId}
organization={organization} organization={organization}
postErrorRedirectUrl="/loginname" postErrorRedirectUrl="/loginname"
showLabel={loginSettings?.allowLocalAuthentication}
></SignInWithIdp> ></SignInWithIdp>
</div> </div>
)} )}
+1 -2
View File
@@ -13,7 +13,6 @@ import {
getPasswordComplexitySettings, getPasswordComplexitySettings,
} from "@/lib/zitadel"; } from "@/lib/zitadel";
import { Organization } from "@zitadel/proto/zitadel/org/v2/org_pb"; import { Organization } from "@zitadel/proto/zitadel/org/v2/org_pb";
import { PasskeysType } from "@zitadel/proto/zitadel/settings/v2/login_settings_pb";
import { Metadata } from "next"; import { Metadata } from "next";
import { getTranslations } from "next-intl/server"; import { getTranslations } from "next-intl/server";
import { headers } from "next/headers"; import { headers } from "next/headers";
@@ -93,7 +92,7 @@ export default async function Page(props: { searchParams: Promise<Record<string
{legal && {legal &&
passwordComplexitySettings && passwordComplexitySettings &&
organization && organization &&
(loginSettings.allowUsernamePassword || loginSettings.passkeysType == PasskeysType.ALLOWED) && ( loginSettings.allowLocalAuthentication && (
<RegisterForm <RegisterForm
idpCount={!loginSettings?.allowExternalIdp ? 0 : identityProviders.length} idpCount={!loginSettings?.allowExternalIdp ? 0 : identityProviders.length}
legal={legal} legal={legal}
@@ -52,7 +52,7 @@ export default async function Page(props: { searchParams: Promise<Record<string
</div> </div>
<div className="w-full"></div> <div className="w-full"></div>
</DynamicTheme> </DynamicTheme>
) : loginSettings?.allowRegister && loginSettings.allowUsernamePassword ? ( ) : loginSettings?.allowRegister && loginSettings.allowLocalAuthentication ? (
<DynamicTheme branding={branding}> <DynamicTheme branding={branding}>
<div className="flex flex-col space-y-4"> <div className="flex flex-col space-y-4">
<h1> <h1>
@@ -20,16 +20,17 @@ export function ChooseAuthenticatorToLogin({
return ( return (
<> <>
{authMethods.includes(AuthenticationMethodType.PASSWORD) && {authMethods.includes(AuthenticationMethodType.PASSWORD) &&
loginSettings?.allowUsernamePassword && ( loginSettings?.allowLocalAuthentication && (
<div className="ztdl-p"> <div className="ztdl-p">
<Translated i18nKey="chooseAlternativeMethod" namespace="idp" /> <Translated i18nKey="chooseAlternativeMethod" namespace="idp" />
</div> </div>
)} )}
<div className="grid w-full grid-cols-1 gap-5 pt-4"> <div className="grid w-full grid-cols-1 gap-5 pt-4">
{authMethods.includes(AuthenticationMethodType.PASSWORD) && {authMethods.includes(AuthenticationMethodType.PASSWORD) &&
loginSettings?.allowUsernamePassword && loginSettings?.allowLocalAuthentication &&
PASSWORD(false, "/password?" + params)} PASSWORD(false, "/password?" + params)}
{authMethods.includes(AuthenticationMethodType.PASSKEY) && {authMethods.includes(AuthenticationMethodType.PASSKEY) &&
loginSettings?.allowLocalAuthentication &&
loginSettings?.passkeysType == PasskeysType.ALLOWED && loginSettings?.passkeysType == PasskeysType.ALLOWED &&
PASSKEYS(false, "/passkey?" + params)} PASSKEYS(false, "/passkey?" + params)}
</div> </div>
@@ -21,7 +21,7 @@ export function ChooseAuthenticatorToSetup({ authMethods, params, loginSettings
return ( return (
<div className="grid w-full grid-cols-1 gap-5 pt-4"> <div className="grid w-full grid-cols-1 gap-5 pt-4">
{!authMethods.includes(AuthenticationMethodType.PASSWORD) && {!authMethods.includes(AuthenticationMethodType.PASSWORD) &&
loginSettings.allowUsernamePassword && loginSettings.allowLocalAuthentication &&
PASSWORD(false, "/password/set?" + params)} PASSWORD(false, "/password/set?" + params)}
{!authMethods.includes(AuthenticationMethodType.PASSKEY) && {!authMethods.includes(AuthenticationMethodType.PASSKEY) &&
loginSettings.passkeysType == PasskeysType.ALLOWED && loginSettings.passkeysType == PasskeysType.ALLOWED &&
+4 -4
View File
@@ -159,7 +159,7 @@ export function RegisterForm({
<PrivacyPolicyCheckboxes legal={legal} onChange={setTosAndPolicyAccepted} /> <PrivacyPolicyCheckboxes legal={legal} onChange={setTosAndPolicyAccepted} />
)} )}
{/* show chooser if both methods are allowed */} {/* show chooser if both methods are allowed */}
{loginSettings && loginSettings.allowUsernamePassword && loginSettings.passkeysType == PasskeysType.ALLOWED && ( {loginSettings && loginSettings.allowLocalAuthentication && loginSettings.passkeysType == PasskeysType.ALLOWED && (
<> <>
<p className="ztdl-p mb-6 mt-4 block text-left"> <p className="ztdl-p mb-6 mt-4 block text-left">
<Translated i18nKey="selectMethod" namespace="register" /> <Translated i18nKey="selectMethod" namespace="register" />
@@ -170,7 +170,7 @@ export function RegisterForm({
</div> </div>
</> </>
)} )}
{!loginSettings?.allowUsernamePassword && {!loginSettings?.allowLocalAuthentication &&
loginSettings?.passkeysType !== PasskeysType.ALLOWED && loginSettings?.passkeysType !== PasskeysType.ALLOWED &&
(!loginSettings?.allowExternalIdp || !idpCount) && ( (!loginSettings?.allowExternalIdp || !idpCount) && (
<div className="py-4"> <div className="py-4">
@@ -194,9 +194,9 @@ export function RegisterForm({
disabled={loading || !canSubmit} disabled={loading || !canSubmit}
onClick={handleSubmit((values) => { onClick={handleSubmit((values) => {
const usePasswordToContinue: boolean = const usePasswordToContinue: boolean =
loginSettings?.allowUsernamePassword && loginSettings?.passkeysType == PasskeysType.ALLOWED loginSettings?.allowLocalAuthentication && loginSettings?.passkeysType == PasskeysType.ALLOWED
? !(selected === methods[0]) // choose selection if both available ? !(selected === methods[0]) // choose selection if both available
: !!loginSettings?.allowUsernamePassword; // if password is chosen : !!loginSettings?.allowLocalAuthentication; // if password is chosen
// set password as default if only password is allowed // set password as default if only password is allowed
return submitAndContinue(values, usePasswordToContinue); return submitAndContinue(values, usePasswordToContinue);
})} })}
+61 -41
View File
@@ -134,7 +134,7 @@ describe("sendLoginname", () => {
}); });
test("should return error when user search fails", async () => { test("should return error when user search fails", async () => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: true }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: true });
mockSearchUsers.mockResolvedValue({ error: "Search failed" }); mockSearchUsers.mockResolvedValue({ error: "Search failed" });
const result = await sendLoginname({ const result = await sendLoginname({
@@ -145,7 +145,7 @@ describe("sendLoginname", () => {
}); });
test("should return error when search result has no result field", async () => { test("should return error when search result has no result field", async () => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: true }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: true });
mockSearchUsers.mockResolvedValue({}); mockSearchUsers.mockResolvedValue({});
const result = await sendLoginname({ const result = await sendLoginname({
@@ -156,7 +156,7 @@ describe("sendLoginname", () => {
}); });
test("should return error when more than one user found", async () => { test("should return error when more than one user found", async () => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: true }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: true });
mockSearchUsers.mockResolvedValue({ mockSearchUsers.mockResolvedValue({
result: [ result: [
{ userId: "user1", preferredLoginName: "[email protected]" }, { userId: "user1", preferredLoginName: "[email protected]" },
@@ -192,7 +192,7 @@ describe("sendLoginname", () => {
}; };
beforeEach(() => { beforeEach(() => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: true }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: true });
mockSearchUsers.mockResolvedValue({ result: [mockUser] }); mockSearchUsers.mockResolvedValue({ result: [mockUser] });
mockCreate.mockReturnValue({}); mockCreate.mockReturnValue({});
mockCreateSessionAndUpdateCookie.mockResolvedValue({ session: mockSession, sessionCookie: {} }); mockCreateSessionAndUpdateCookie.mockResolvedValue({ session: mockSession, sessionCookie: {} });
@@ -232,7 +232,7 @@ describe("sendLoginname", () => {
}); });
test("should attempt IDP redirect when password is not allowed but user has IDP links", async () => { test("should attempt IDP redirect when password is not allowed but user has IDP links", async () => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: false }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: false });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSWORD], authMethodTypes: [AuthenticationMethodType.PASSWORD],
}); });
@@ -253,7 +253,7 @@ describe("sendLoginname", () => {
}); });
test("should return error when password not allowed and no IDP links available", async () => { test("should return error when password not allowed and no IDP links available", async () => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: false }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: false });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSWORD], authMethodTypes: [AuthenticationMethodType.PASSWORD],
}); });
@@ -265,12 +265,12 @@ describe("sendLoginname", () => {
}); });
expect(result).toEqual({ expect(result).toEqual({
error: "errors.usernamePasswordNotAllowed", error: "errors.localAuthenticationNotAllowed",
}); });
}); });
test("should redirect to organization IDP when password not allowed, no user IDP links, but organization has active IDP", async () => { test("should redirect to organization IDP when password not allowed, no user IDP links, but organization has active IDP", async () => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: false }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: false });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSWORD], authMethodTypes: [AuthenticationMethodType.PASSWORD],
}); });
@@ -293,7 +293,7 @@ describe("sendLoginname", () => {
}); });
test("should redirect to passkey when user has only passkey method and it's allowed", async () => { test("should redirect to passkey when user has only passkey method and it's allowed", async () => {
mockGetLoginSettings.mockResolvedValue({ passkeysType: PasskeysType.ALLOWED }); mockGetLoginSettings.mockResolvedValue({ passkeysType: PasskeysType.ALLOWED, allowLocalAuthentication: true });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSKEY], authMethodTypes: [AuthenticationMethodType.PASSKEY],
}); });
@@ -310,7 +310,25 @@ describe("sendLoginname", () => {
}); });
test("should return error when passkeys are not allowed", async () => { test("should return error when passkeys are not allowed", async () => {
mockGetLoginSettings.mockResolvedValue({ passkeysType: PasskeysType.NOT_ALLOWED }); mockGetLoginSettings.mockResolvedValue({ passkeysType: PasskeysType.NOT_ALLOWED, allowLocalAuthentication: true });
mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSKEY],
});
const result = await sendLoginname({
loginName: "[email protected]",
});
expect(result).toEqual({
error: "errors.passkeysNotAllowed",
});
});
test("should return error when passkeys are allowed but allowLocalAuthentication is false", async () => {
mockGetLoginSettings.mockResolvedValue({
passkeysType: PasskeysType.ALLOWED,
allowLocalAuthentication: false,
});
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSKEY], authMethodTypes: [AuthenticationMethodType.PASSKEY],
}); });
@@ -342,7 +360,7 @@ describe("sendLoginname", () => {
test("should NOT create session when ignoreUnknownUsernames is true", async () => { test("should NOT create session when ignoreUnknownUsernames is true", async () => {
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowUsernamePassword: true, allowLocalAuthentication: true,
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
}); });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
@@ -377,8 +395,8 @@ describe("sendLoginname", () => {
expect((result as any).redirect).toContain("altPassword=true"); // password is allowed expect((result as any).redirect).toContain("altPassword=true"); // password is allowed
}); });
test("should not show password alternative when password is not allowed", async () => { test("should return error when allowLocalAuthentication is false (disabling both password and passkey)", async () => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: false }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: false });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSWORD, AuthenticationMethodType.PASSKEY], authMethodTypes: [AuthenticationMethodType.PASSWORD, AuthenticationMethodType.PASSKEY],
}); });
@@ -387,9 +405,9 @@ describe("sendLoginname", () => {
loginName: "[email protected]", loginName: "[email protected]",
}); });
expect(result).toBeDefined(); expect(result).toEqual({
expect(result?.redirect).toMatch(/^\/passkey\?/); error: "errors.localAuthenticationNotAllowed",
expect(result?.redirect).toContain("altPassword=false"); // password is not allowed });
}); });
test("should redirect to IDP when no passkey but IDP available", async () => { test("should redirect to IDP when no passkey but IDP available", async () => {
@@ -422,7 +440,7 @@ describe("sendLoginname", () => {
}); });
test("should return error when password is only method in multi-method scenario but not allowed", async () => { test("should return error when password is only method in multi-method scenario but not allowed", async () => {
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: false }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: false });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSWORD], authMethodTypes: [AuthenticationMethodType.PASSWORD],
}); });
@@ -434,7 +452,7 @@ describe("sendLoginname", () => {
}); });
expect(result).toEqual({ expect(result).toEqual({
error: "errors.usernamePasswordNotAllowed", error: "errors.localAuthenticationNotAllowed",
}); });
}); });
}); });
@@ -448,7 +466,7 @@ describe("sendLoginname", () => {
test("should redirect to single IDP when register allowed but password not allowed", async () => { test("should redirect to single IDP when register allowed but password not allowed", async () => {
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowRegister: true, allowRegister: true,
allowUsernamePassword: false, allowLocalAuthentication: false,
}); });
mockGetActiveIdentityProviders.mockResolvedValue({ mockGetActiveIdentityProviders.mockResolvedValue({
identityProviders: [{ id: "idp123", type: "OIDC" }], identityProviders: [{ id: "idp123", type: "OIDC" }],
@@ -465,7 +483,7 @@ describe("sendLoginname", () => {
test("should redirect to register when both register and password allowed", async () => { test("should redirect to register when both register and password allowed", async () => {
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowRegister: true, allowRegister: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
ignoreUnknownUsernames: false, ignoreUnknownUsernames: false,
}); });
@@ -504,7 +522,7 @@ describe("sendLoginname", () => {
test("should return error when user not found and no registration allowed", async () => { test("should return error when user not found and no registration allowed", async () => {
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowRegister: false, allowRegister: false,
allowUsernamePassword: true, allowLocalAuthentication: true,
}); });
const result = await sendLoginname({ const result = await sendLoginname({
@@ -519,14 +537,14 @@ describe("sendLoginname", () => {
mockGetLoginSettings mockGetLoginSettings
.mockResolvedValueOnce({ .mockResolvedValueOnce({
allowRegister: true, allowRegister: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
ignoreUnknownUsernames: false, ignoreUnknownUsernames: false,
}) })
// Mock login settings for discovered org - must include all necessary flags // Mock login settings for discovered org - must include all necessary flags
.mockResolvedValueOnce({ .mockResolvedValueOnce({
allowDomainDiscovery: true, allowDomainDiscovery: true,
allowRegister: true, allowRegister: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
ignoreUnknownUsernames: false, ignoreUnknownUsernames: false,
}); });
@@ -559,13 +577,13 @@ describe("sendLoginname", () => {
mockGetLoginSettings mockGetLoginSettings
.mockResolvedValueOnce({ .mockResolvedValueOnce({
allowRegister: true, allowRegister: true,
allowUsernamePassword: false, allowLocalAuthentication: false,
}) })
// Mock login settings for discovered org - must include all necessary flags // Mock login settings for discovered org - must include all necessary flags
.mockResolvedValueOnce({ .mockResolvedValueOnce({
allowDomainDiscovery: true, allowDomainDiscovery: true,
allowRegister: true, allowRegister: true,
allowUsernamePassword: false, allowLocalAuthentication: false,
}); });
// Mock org discovery to return one org with matching domain // Mock org discovery to return one org with matching domain
@@ -603,7 +621,7 @@ describe("sendLoginname", () => {
mockGetLoginSettings mockGetLoginSettings
.mockResolvedValueOnce({ .mockResolvedValueOnce({
allowRegister: true, allowRegister: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
ignoreUnknownUsernames: false, ignoreUnknownUsernames: false,
}) })
// Mock login settings for org with domain discovery disabled // Mock login settings for org with domain discovery disabled
@@ -627,7 +645,7 @@ describe("sendLoginname", () => {
test("should not discover org if multiple orgs match the domain", async () => { test("should not discover org if multiple orgs match the domain", async () => {
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowRegister: true, allowRegister: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
ignoreUnknownUsernames: false, ignoreUnknownUsernames: false,
}); });
@@ -651,7 +669,7 @@ describe("sendLoginname", () => {
test("should use provided organization instead of discovering when org context exists", async () => { test("should use provided organization instead of discovering when org context exists", async () => {
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowRegister: true, allowRegister: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
ignoreUnknownUsernames: false, ignoreUnknownUsernames: false,
}); });
@@ -669,11 +687,11 @@ describe("sendLoginname", () => {
expect(mockGetOrgsByDomain).not.toHaveBeenCalled(); expect(mockGetOrgsByDomain).not.toHaveBeenCalled();
}); });
test("should redirect to password when ignoreUnknownUsernames is true, allowRegister is true, but allowUsernamePassword is false (User not found)", async () => { test("should redirect to password when ignoreUnknownUsernames is true, allowRegister is true, but allowLocalAuthentication is false (User not found)", async () => {
mockSearchUsers.mockResolvedValue({ result: [] }); mockSearchUsers.mockResolvedValue({ result: [] });
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowRegister: true, allowRegister: true,
allowUsernamePassword: false, allowLocalAuthentication: false,
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
}); });
mockGetActiveIdentityProviders.mockResolvedValue({ identityProviders: [] }); mockGetActiveIdentityProviders.mockResolvedValue({ identityProviders: [] });
@@ -747,7 +765,7 @@ describe("sendLoginname", () => {
}); });
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
}); });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSWORD], authMethodTypes: [AuthenticationMethodType.PASSWORD],
@@ -777,7 +795,7 @@ describe("sendLoginname", () => {
}); });
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
allowUsernamePassword: true, allowLocalAuthentication: true,
}); });
mockListAuthenticationMethodTypes.mockResolvedValue({ mockListAuthenticationMethodTypes.mockResolvedValue({
authMethodTypes: [AuthenticationMethodType.PASSWORD], authMethodTypes: [AuthenticationMethodType.PASSWORD],
@@ -809,7 +827,7 @@ describe("sendLoginname", () => {
}; };
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowUsernamePassword: false, allowLocalAuthentication: false,
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
}); });
mockSearchUsers.mockResolvedValue({ result: [mockUser] }); mockSearchUsers.mockResolvedValue({ result: [mockUser] });
@@ -826,7 +844,7 @@ describe("sendLoginname", () => {
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
}); });
expect(result).not.toEqual({ error: "errors.usernamePasswordNotAllowed" }); expect(result).not.toEqual({ error: "errors.localAuthenticationNotAllowed" });
expect(result).toHaveProperty("redirect"); expect(result).toHaveProperty("redirect");
expect((result as any).redirect).toMatch(/^\/password\?/); expect((result as any).redirect).toMatch(/^\/password\?/);
}); });
@@ -892,7 +910,7 @@ describe("sendLoginname", () => {
}, },
}; };
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: true }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: true });
mockSearchUsers.mockResolvedValue({ result: [mockUser] }); mockSearchUsers.mockResolvedValue({ result: [mockUser] });
mockCreate.mockReturnValue({}); mockCreate.mockReturnValue({});
mockCreateSessionAndUpdateCookie.mockResolvedValue({ session: mockSession, sessionCookie: {} }); mockCreateSessionAndUpdateCookie.mockResolvedValue({ session: mockSession, sessionCookie: {} });
@@ -923,7 +941,7 @@ describe("sendLoginname", () => {
}, },
}; };
mockGetLoginSettings.mockResolvedValue({ allowUsernamePassword: true }); mockGetLoginSettings.mockResolvedValue({ allowLocalAuthentication: true });
mockSearchUsers.mockResolvedValue({ result: [mockUser] }); mockSearchUsers.mockResolvedValue({ result: [mockUser] });
mockCreate.mockReturnValue({}); mockCreate.mockReturnValue({});
mockCreateSessionAndUpdateCookie.mockResolvedValue({ session: mockSession, sessionCookie: {} }); mockCreateSessionAndUpdateCookie.mockResolvedValue({ session: mockSession, sessionCookie: {} });
@@ -962,7 +980,7 @@ describe("sendLoginname", () => {
}; };
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
allowUsernamePassword: true, allowLocalAuthentication: true,
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
}); });
// Mock search result returns a user with resolved/different loginName // Mock search result returns a user with resolved/different loginName
@@ -1006,6 +1024,7 @@ describe("sendLoginname", () => {
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
passkeysType: PasskeysType.ALLOWED, passkeysType: PasskeysType.ALLOWED,
allowLocalAuthentication: true,
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
}); });
mockSearchUsers.mockResolvedValue({ result: [mockUser] }); mockSearchUsers.mockResolvedValue({ result: [mockUser] });
@@ -1047,6 +1066,7 @@ describe("sendLoginname", () => {
mockGetLoginSettings.mockResolvedValue({ mockGetLoginSettings.mockResolvedValue({
passkeysType: PasskeysType.ALLOWED, passkeysType: PasskeysType.ALLOWED,
allowLocalAuthentication: true,
ignoreUnknownUsernames: true, ignoreUnknownUsernames: true,
}); });
mockSearchUsers.mockResolvedValue({ result: [mockUser] }); mockSearchUsers.mockResolvedValue({ result: [mockUser] });
@@ -1088,10 +1108,10 @@ describe("sendLoginname", () => {
// Mock implementation to return different settings based on organization // Mock implementation to return different settings based on organization
mockGetLoginSettings.mockImplementation(async (args: any) => { mockGetLoginSettings.mockImplementation(async (args: any) => {
if (args.organization === "context-org") { if (args.organization === "context-org") {
return { allowUsernamePassword: true, ignoreUnknownUsernames: true }; return { allowLocalAuthentication: true, ignoreUnknownUsernames: true };
} }
if (args.organization === "user-org") { if (args.organization === "user-org") {
return { allowUsernamePassword: true, ignoreUnknownUsernames: false }; return { allowLocalAuthentication: true, ignoreUnknownUsernames: false };
} }
return {}; return {};
}); });
@@ -1136,10 +1156,10 @@ describe("sendLoginname", () => {
mockGetLoginSettings.mockImplementation(async (args: any) => { mockGetLoginSettings.mockImplementation(async (args: any) => {
if (args.organization === "context-org") { if (args.organization === "context-org") {
return { allowUsernamePassword: true, ignoreUnknownUsernames: false }; return { allowLocalAuthentication: true, ignoreUnknownUsernames: false };
} }
if (args.organization === "user-org") { if (args.organization === "user-org") {
return { allowUsernamePassword: true, ignoreUnknownUsernames: true }; return { allowLocalAuthentication: true, ignoreUnknownUsernames: true };
} }
return {}; return {};
}); });
+16 -9
View File
@@ -336,7 +336,7 @@ export async function sendLoginname(command: SendLoginnameCommand) {
const method = methods.authMethodTypes[0]; const method = methods.authMethodTypes[0];
switch (method) { switch (method) {
case AuthenticationMethodType.PASSWORD: // user has only password as auth method case AuthenticationMethodType.PASSWORD: // user has only password as auth method
if (!userLoginSettings?.allowUsernamePassword) { if (!userLoginSettings?.allowLocalAuthentication) {
// Check if user has IDPs available as alternative, that could eventually be used to register/link. // Check if user has IDPs available as alternative, that could eventually be used to register/link.
const idpResp = await redirectUserToIDP(userId, organization); const idpResp = await redirectUserToIDP(userId, organization);
if (idpResp?.redirect) { if (idpResp?.redirect) {
@@ -348,7 +348,7 @@ export async function sendLoginname(command: SendLoginnameCommand) {
} }
return { return {
error: t("errors.usernamePasswordNotAllowed"), error: t("errors.localAuthenticationNotAllowed"),
}; };
} }
@@ -371,7 +371,10 @@ export async function sendLoginname(command: SendLoginnameCommand) {
}; };
case AuthenticationMethodType.PASSKEY: // AuthenticationMethodType.AUTHENTICATION_METHOD_TYPE_PASSKEY case AuthenticationMethodType.PASSKEY: // AuthenticationMethodType.AUTHENTICATION_METHOD_TYPE_PASSKEY
if (userLoginSettings?.passkeysType === PasskeysType.NOT_ALLOWED) { if (
userLoginSettings?.passkeysType === PasskeysType.NOT_ALLOWED ||
!userLoginSettings?.allowLocalAuthentication
) {
if (command.ignoreUnknownUsernames) { if (command.ignoreUnknownUsernames) {
return preventUserEnumeration(command.organization); return preventUserEnumeration(command.organization);
} }
@@ -406,12 +409,16 @@ export async function sendLoginname(command: SendLoginnameCommand) {
} }
} else { } else {
// prefer passkey in favor of other methods // prefer passkey in favor of other methods
if (methods.authMethodTypes.includes(AuthenticationMethodType.PASSKEY)) { if (
methods.authMethodTypes.includes(AuthenticationMethodType.PASSKEY) &&
userLoginSettings?.passkeysType !== PasskeysType.NOT_ALLOWED &&
userLoginSettings?.allowLocalAuthentication
) {
const passkeyParams = new URLSearchParams({ const passkeyParams = new URLSearchParams({
loginName: command.ignoreUnknownUsernames loginName: command.ignoreUnknownUsernames
? command.loginName ? command.loginName
: (session?.factors?.user?.loginName ?? user.preferredLoginName), : (session?.factors?.user?.loginName ?? user.preferredLoginName),
altPassword: `${methods.authMethodTypes.includes(AuthenticationMethodType.PASSWORD) && userLoginSettings?.allowUsernamePassword}`, // show alternative password option only if allowed altPassword: `${methods.authMethodTypes.includes(AuthenticationMethodType.PASSWORD) && userLoginSettings?.allowLocalAuthentication}`, // show alternative password option only if allowed
}); });
if (command.requestId) { if (command.requestId) {
@@ -427,12 +434,12 @@ export async function sendLoginname(command: SendLoginnameCommand) {
return redirectUserToIDP(userId, organization); return redirectUserToIDP(userId, organization);
} else if (methods.authMethodTypes.includes(AuthenticationMethodType.PASSWORD)) { } else if (methods.authMethodTypes.includes(AuthenticationMethodType.PASSWORD)) {
// Check if password authentication is allowed // Check if password authentication is allowed
if (!userLoginSettings?.allowUsernamePassword) { if (!userLoginSettings?.allowLocalAuthentication) {
if (command.ignoreUnknownUsernames) { if (command.ignoreUnknownUsernames) {
return preventUserEnumeration(command.organization); return preventUserEnumeration(command.organization);
} }
return { return {
error: "Username Password not allowed! Contact your administrator for more information.", error: t("errors.localAuthenticationNotAllowed"),
}; };
} }
@@ -497,7 +504,7 @@ export async function sendLoginname(command: SendLoginnameCommand) {
} }
// user not found, check if register is enabled on instance / organization context // user not found, check if register is enabled on instance / organization context
if (effectiveLoginSettings?.allowRegister && !effectiveLoginSettings?.allowUsernamePassword) { if (effectiveLoginSettings?.allowRegister && !effectiveLoginSettings?.allowLocalAuthentication) {
console.log("redirecting to IDP (register allowed, password not allowed)"); console.log("redirecting to IDP (register allowed, password not allowed)");
const resp = await redirectUserToIDP(undefined, discoveredOrganization); const resp = await redirectUserToIDP(undefined, discoveredOrganization);
if (resp) { if (resp) {
@@ -506,7 +513,7 @@ export async function sendLoginname(command: SendLoginnameCommand) {
console.log("IDP redirect failed, returning user not found"); console.log("IDP redirect failed, returning user not found");
return preventUserEnumeration(discoveredOrganization); return preventUserEnumeration(discoveredOrganization);
} else if (effectiveLoginSettings?.allowRegister && effectiveLoginSettings?.allowUsernamePassword) { } else if (effectiveLoginSettings?.allowRegister && effectiveLoginSettings?.allowLocalAuthentication) {
console.log("register and password both allowed"); console.log("register and password both allowed");
// do not register user if ignoreUnknownUsernames is set // do not register user if ignoreUnknownUsernames is set
if (discoveredOrganization && !effectiveLoginSettings?.ignoreUnknownUsernames) { if (discoveredOrganization && !effectiveLoginSettings?.ignoreUnknownUsernames) {
@@ -229,7 +229,7 @@
<mat-checkbox <mat-checkbox
class="login-policy-toggle" class="login-policy-toggle"
color="primary" color="primary"
matTooltip="{{ 'DESCRIPTIONS.SETTINGS.LOGIN.FORM.USERNAME_PASSWORD_ALLOWED.DESCRIPTION' | translate }}" matTooltip="{{ 'DESCRIPTIONS.SETTINGS.LOGIN.FORM.LOCAL_AUTHENTICATION_ALLOWED.DESCRIPTION' | translate }}"
ngDefaultControl ngDefaultControl
[(ngModel)]="loginData.allowUsernamePassword" [(ngModel)]="loginData.allowUsernamePassword"
[disabled]=" [disabled]="
@@ -244,7 +244,7 @@
| async) === false | async) === false
" "
> >
{{ 'DESCRIPTIONS.SETTINGS.LOGIN.FORM.USERNAME_PASSWORD_ALLOWED.TITLE' | translate }} {{ 'DESCRIPTIONS.SETTINGS.LOGIN.FORM.LOCAL_AUTHENTICATION_ALLOWED.TITLE' | translate }}
</mat-checkbox> </mat-checkbox>
<!-- <cnsl-info-section class="info"> <!-- <cnsl-info-section class="info">
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Форма за Вход", "TITLE": "Форма за Вход",
"DESCRIPTION": "Персонализирайте формата за вход.", "DESCRIPTION": "Персонализирайте формата за вход.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Разрешено е използването на потребителско име и парола", "TITLE": "Разрешено е локално удостоверяване",
"DESCRIPTION": "Позволете на вашите потребители да влизат с тяхното потребителско име и парола. Ако това е деактивирано, вашите потребители могат да влизат само чрез автентикация без парола или с външен доставчик на идентичност." "DESCRIPTION": "Позволете на потребителите си да влизат с потребителско име и парола или удостоверяване с passkey. Ако това е деактивирано, потребителите ви могат да влизат само чрез външен доставчик на идентичност."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Разрешена е регистрация на потребители", "TITLE": "Разрешена е регистрация на потребители",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Přihlašovací formulář", "TITLE": "Přihlašovací formulář",
"DESCRIPTION": "Přizpůsob si přihlašovací formulář.", "DESCRIPTION": "Přizpůsob si přihlašovací formulář.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Povoleno přihlášení pomocí uživatelského jména a hesla", "TITLE": "Místní ověření povoleno",
"DESCRIPTION": "Umožni svým uživatelům přihlásit se pomocí uživatelského jména a hesla. Pokud je tato možnost deaktivována, tvoji uživatelé se mohou přihlásit pouze pomocí autentizace pomocí passkey nebo pomocí externího poskytovatele identity." "DESCRIPTION": "Umožněte uživatelům přihlásit se pomocí uživatelského jména a hesla nebo ověření pomocí přístupového klíče (passkey). Pokud je tato možnost deaktivována, uživatelé se mohou přihlásit pouze pomocí externího poskytovatele identity."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Povolena registrace uživatelů", "TITLE": "Povolena registrace uživatelů",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Login-Formular", "TITLE": "Login-Formular",
"DESCRIPTION": "Passe das Login-Formular an.", "DESCRIPTION": "Passe das Login-Formular an.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Benutzername und Passwort erlaubt", "TITLE": "Lokale Authentifizierung erlaubt",
"DESCRIPTION": "Erlaube deinen Benutzern, sich mit ihrem Benutzernamen und Passwort einzuloggen. Ist dies deaktiviert, können sich deine Benutzer nur mit Passkey Authentifizierung oder einem externen Identitätsanbieter einloggen." "DESCRIPTION": "Erlauben Sie Ihren Benutzern, sich mit ihrem Benutzernamen und Passwort oder per Passkey-Authentifizierung anzumelden. Wenn dies deaktiviert ist, können sich Ihre Benutzer nur über einen externen Identitätsanbieter anmelden."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Benutzerregistrierung erlaubt", "TITLE": "Benutzerregistrierung erlaubt",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Login Form", "TITLE": "Login Form",
"DESCRIPTION": "Customize the login form.", "DESCRIPTION": "Customize the login form.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Username and Password allowed", "TITLE": "Local authentication allowed",
"DESCRIPTION": "Allow your users to log in with their username and password. If this is deactivated, your users can only log in using passkey authentication or with an external identity provider." "DESCRIPTION": "Allow your users to log in with their username and password or passkey authentication. If this is deactivated, your users can only log in using an external identity provider."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "User Registration allowed", "TITLE": "User Registration allowed",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Formulario de Inicio de Sesión", "TITLE": "Formulario de Inicio de Sesión",
"DESCRIPTION": "Personaliza el formulario de inicio de sesión.", "DESCRIPTION": "Personaliza el formulario de inicio de sesión.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Permitido Nombre de Usuario y Contraseña", "TITLE": "Autenticación local permitida",
"DESCRIPTION": "Permite a tus usuarios iniciar sesión con su nombre de usuario y contraseña. Si esto está desactivado, tus usuarios solo pueden iniciar sesión utilizando llaves de acceso o con un proveedor de identidad externo." "DESCRIPTION": "Permita que sus usuarios inicien sesión con su nombre de usuario y contraseña o autenticación con passkey. Si esto se desactiva, sus usuarios solo podrán iniciar sesión utilizando un proveedor de identidad externo."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Permitida la Registración de Usuarios", "TITLE": "Permitida la Registración de Usuarios",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Formulaire de connexion", "TITLE": "Formulaire de connexion",
"DESCRIPTION": "Personnalisez le formulaire de connexion", "DESCRIPTION": "Personnalisez le formulaire de connexion",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Nom d'utilisateur et mot de passe autorisés", "TITLE": "Authentification locale autorisée",
"DESCRIPTION": "Autorisez vos utilisateurs à se connecter avec leur nom d'utilisateur et mot de passe. Si désactivé, vos utilisateurs pourront uniquement se connecter avec une clé d'accès ou avec un fournisseur d'identité externe" "DESCRIPTION": "Autorisez vos utilisateurs à se connecter avec leur nom d'utilisateur et leur mot de passe ou via l'authentification par passkey. Si cette option est désactivée, vos utilisateurs ne pourront se connecter qu'en utilisant un fournisseur d'identité externe."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Enregistrement de nouveaux utilisateurs autorisé", "TITLE": "Enregistrement de nouveaux utilisateurs autorisé",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Bejelentkező űrlap", "TITLE": "Bejelentkező űrlap",
"DESCRIPTION": "Szabd testre a bejelentkező űrlapot.", "DESCRIPTION": "Szabd testre a bejelentkező űrlapot.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Felhasználónév és jelszó engedélyezve", "TITLE": "Helyi hitelesítés engedélyezve",
"DESCRIPTION": "Engedd meg a felhasználóidnak, hogy felhasználónévvel és jelszóval jelentkezzenek be. Ha ez nincs engedélyezve, a felhasználóid csak Passkey azonosítással vagy külső identitásszolgáltatóval tudnak bejelentkezni." "DESCRIPTION": "Engedélyezze a felhasználók számára a bejelentkezést felhasználónévvel és jelszóval vagy jelkulcsos hitelesítéssel. Ha ez ki van kapcsolva, a felhasználók csak külső személyazonosság-szolgáltatón keresztül jelentkezhetnek be."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Felhasználói regisztráció engedélyezve", "TITLE": "Felhasználói regisztráció engedélyezve",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Formulir Masuk", "TITLE": "Formulir Masuk",
"DESCRIPTION": "Sesuaikan formulir login.", "DESCRIPTION": "Sesuaikan formulir login.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Nama Pengguna dan Kata Sandi diperbolehkan", "TITLE": "Otentikasi lokal diizinkan",
"DESCRIPTION": "Izinkan pengguna Anda untuk masuk dengan nama pengguna dan kata sandi mereka. Jika ini dinonaktifkan, pengguna Anda hanya dapat masuk menggunakan autentikasi tanpa kata sandi atau dengan penyedia identitas eksternal." "DESCRIPTION": "Izinkan pengguna Anda untuk masuk dengan nama pengguna dan kata sandi atau autentikasi passkey. Jika ini dinonaktifkan, pengguna Anda hanya dapat masuk menggunakan penyedia identitas eksternal."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Pendaftaran Pengguna diperbolehkan", "TITLE": "Pendaftaran Pengguna diperbolehkan",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Modulo di Login", "TITLE": "Modulo di Login",
"DESCRIPTION": "Personalizza il modulo di login.", "DESCRIPTION": "Personalizza il modulo di login.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Username e Password consentiti", "TITLE": "Autenticazione locale consentita",
"DESCRIPTION": "Permetti ai tuoi utenti di accedere con il loro username e password. Se questa opzione è disattivata, i tuoi utenti possono accedere solo utilizzando l'autenticazione con passkey o con un provider di identità esterno." "DESCRIPTION": "Consenti ai tuoi utenti di accedere con nome utente e password o autenticazione passkey. Se disattivato, i tuoi utenti potranno accedere solo utilizzando un provider di identità esterno."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Registrazione Utente consentita", "TITLE": "Registrazione Utente consentita",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "ログインフォーム", "TITLE": "ログインフォーム",
"DESCRIPTION": "ログインフォームをカスタマイズします。", "DESCRIPTION": "ログインフォームをカスタマイズします。",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "ユーザー名とパスワードが許可", "TITLE": "ローカル認証を許可",
"DESCRIPTION": "ユーザーがユーザー名とパスワードでログインできるようにします。これが無効になっている場合、ユーザーはパスキー認証または外部IDプロバイダーを使用してのみログインできます。" "DESCRIPTION": "ユーザーがユーザー名とパスワード、またはパスキー認証でログインできるようにします。これが無効になっている場合、ユーザーは外部IDプロバイダーを使用してのみログインできます。"
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "ユーザー登録が許可", "TITLE": "ユーザー登録が許可",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "로그인 폼", "TITLE": "로그인 폼",
"DESCRIPTION": "로그인 폼을 사용자 정의하세요.", "DESCRIPTION": "로그인 폼을 사용자 정의하세요.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "사용자 이름과 비밀번호 허용", "TITLE": "로컬 인증 허용",
"DESCRIPTION": "사용자가 사용자 이름과 비밀번호로 로그인할 수 있도록 허용하세요. 비활성화하면 비밀번호 없는 인증 또는 외부 ID 제공자로만 로그인할 수 있습니다." "DESCRIPTION": "사용자가 사용자 이름과 비밀번호 또는 패스키 인증으로 로그인할 수 있도록 허용합니다. 이 기능이 비활성화되면 사용자는 외부 ID 제공업체를 통해서만 로그인할 수 있습니다."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "사용자 등록 허용", "TITLE": "사용자 등록 허용",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Формулар за најава", "TITLE": "Формулар за најава",
"DESCRIPTION": "Прилагодете го формуларот за најава.", "DESCRIPTION": "Прилагодете го формуларот за најава.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Дозволено корисничко име и лозинка", "TITLE": "Дозволена локална автентикација",
"DESCRIPTION": "Овозможете на вашите корисници да се најават со нивното корисничко име и лозинка. Ако ова е деактивирано, вашите корисници можат да се најават само со аутентикација без лозинка или со надворешен провајдер на идентитет." "DESCRIPTION": "Дозволете им на вашите корисници да се најават со нивното корисничко име и лозинка или со автентикација преку passkey. Ако ова е деактивирано, вашите корисници ќе можат да се најават само преку надворешен провајдер на идентитет."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Дозволена регистрација на корисници", "TITLE": "Дозволена регистрација на корисници",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Inlogformulier", "TITLE": "Inlogformulier",
"DESCRIPTION": "Pas het inlogformulier aan.", "DESCRIPTION": "Pas het inlogformulier aan.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Gebruikersnaam en wachtwoord toegestaan", "TITLE": "Lokale authenticatie toegestaan",
"DESCRIPTION": "Sta je gebruikers toe om in te loggen met hun gebruikersnaam en wachtwoord. Als dit is gedeactiveerd, kunnen je gebruikers alleen inloggen met wachtwoordloze authenticatie of met een externe identiteitsprovider." "DESCRIPTION": "Sta uw gebruikers toe in te loggen met hun gebruikersnaam en wachtwoord of via passkey-authenticatie. Als dit is uitgeschakeld, kunnen uw gebruikers alleen inloggen via een externe identiteitsprovider."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Gebruikersregistratie toegestaan", "TITLE": "Gebruikersregistratie toegestaan",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Formularz Logowania", "TITLE": "Formularz Logowania",
"DESCRIPTION": "Dostosuj formularz logowania.", "DESCRIPTION": "Dostosuj formularz logowania.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Dozwolone użytkownik i hasło", "TITLE": "Lokalne uwierzytelnianie dozwolone",
"DESCRIPTION": "Pozwól swoim użytkownikom logować się za pomocą nazwy użytkownika i hasła. Jeśli to zostanie dezaktywowane, użytkownicy mogą logować się tylko za pomocą uwierzytelniania bez hasła lub z zewnętrznym dostawcą tożsamości." "DESCRIPTION": "Zezwól użytkownikom na logowanie za pomocą nazwy użytkownika i hasła lub uwierzytelniania passkey. Jeśli ta opcja jest wyłączona, użytkownicy mogą logować się tylko za pomocą zewnętrznego dostawcy tożsamości."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Dozwolona rejestracja użytkownika", "TITLE": "Dozwolona rejestracja użytkownika",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Formulário de Login", "TITLE": "Formulário de Login",
"DESCRIPTION": "Personalize o formulário de login.", "DESCRIPTION": "Personalize o formulário de login.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Usuário e Senha permitidos", "TITLE": "Autenticação local permitida",
"DESCRIPTION": "Permite que seus usuários façam login com seu nome de usuário e senha. Se isto for desativado, seus usuários só poderão fazer login usando autenticação sem senha ou com um provedor de identidade externo." "DESCRIPTION": "Permita que os seus utilizadores iniciem sessão com o seu nome de utilizador e palavra-passe ou autenticação por passkey. Se isto for desativado, os seus utilizadores apenas poderão iniciar sessão utilizando um fornecedor de identidade externo."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Registro de Usuário permitido", "TITLE": "Registro de Usuário permitido",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Formular de autentificare", "TITLE": "Formular de autentificare",
"DESCRIPTION": "Personalizați formularul de autentificare.", "DESCRIPTION": "Personalizați formularul de autentificare.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Nume de utilizator și parolă permise", "TITLE": "Autentificare locală permisă",
"DESCRIPTION": "Permiteți utilizatorilor dvs. să se conecteze cu numele lor de utilizator și parola. Dacă acest lucru este dezactivat, utilizatorii dvs. se pot conecta numai utilizând autentificarea Passkey sau cu un furnizor de identitate extern." "DESCRIPTION": "Permiteți utilizatorilor să se autentifice cu numele de utilizator și parola sau prin autentificare cu passkey. Dacă aceasta este dezactivată, utilizatorii se pot autentifica doar folosind un furnizor de identitate extern."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Înregistrarea utilizatorilor permisă", "TITLE": "Înregistrarea utilizatorilor permisă",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Форма входа", "TITLE": "Форма входа",
"DESCRIPTION": "Настройка формы входа.", "DESCRIPTION": "Настройка формы входа.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Разрешен вход с именем пользователя и паролем", "TITLE": "Разрешена локальная аутентификация",
"DESCRIPTION": "Разрешить пользователям входить с использованием имени пользователя и пароля. Если это отключено, ваши пользователи смогут входить только с использованием беспарольной аутентификации или через внешнего поставщика идентификации." "DESCRIPTION": "Разрешите пользователям входить в систему с помощью имени пользователя и пароля или аутентификации по ключу доступа (passkey). Если эта опция отключена, пользователи смогут войти только через внешнего поставщика удостоверений."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Разрешена регистрация пользователей", "TITLE": "Разрешена регистрация пользователей",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Inloggningsformulär", "TITLE": "Inloggningsformulär",
"DESCRIPTION": "Anpassa inloggningsformuläret.", "DESCRIPTION": "Anpassa inloggningsformuläret.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Användarnamn och lösenord tillåtet", "TITLE": "Lokal autentisering tillåten",
"DESCRIPTION": "Tillåt dina användare att logga in med sitt användarnamn och lösenord. Om detta är inaktiverat, kan dina användare endast logga in med Passkey autentisering eller med en extern identitetsleverantör." "DESCRIPTION": "Tillåt dina användare att logga in med sitt användarnamn och lösenord eller nyckelautentisering (passkey). Om detta är inaktiverat kan dina användare endast logga in med en extern identitetsleverantör."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Användarregistrering tillåten", "TITLE": "Användarregistrering tillåten",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Giriş Formu", "TITLE": "Giriş Formu",
"DESCRIPTION": "Giriş formunu özelleştirin.", "DESCRIPTION": "Giriş formunu özelleştirin.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Kullanıcı adı ve Şifreye izin verildi", "TITLE": "Yerel kimlik doğrulamaya izin verildi",
"DESCRIPTION": "Kullanıcılarınızın kullanıcı adı ve şifreleriyle giriş yapmalarına izin verin. Bu devre dışı bırakılırsa, kullanıcılarınız yalnızca şifresiz kimlik doğrulama veya harici kimlik sağlayıcısı kullanarak giriş yapabilir." "DESCRIPTION": "Kullanıcılarınızın kullanıcı adı ve şifre veya geçiş anahtarı (passkey) kimlik doğrulaması ile oturum açmasına izin verin. Bu devre dışı bırakılırsa, kullanıcılarınız yalnızca harici bir kimlik sağlayıcı kullanarak oturum açabilir."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Kullanıcı Kaydına izin verildi", "TITLE": "Kullanıcı Kaydına izin verildi",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "Форма входу", "TITLE": "Форма входу",
"DESCRIPTION": "Налаштуйте форму входу.", "DESCRIPTION": "Налаштуйте форму входу.",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "Дозволено ім'я користувача та пароль", "TITLE": "Дозволена локальна автентифікація",
"DESCRIPTION": "Дозволити вашим користувачам входити з їх іменем користувача та паролем. Якщо це деактивовано, ваші користувачі можуть входити лише за допомогою автентифікації без пароля або з зовнішнім постачальником ідентичності." "DESCRIPTION": "Дозвольте користувачам входити за допомогою імені користувача та пароля або автентифікації за ключем доступу (passkey). Якщо цю опцію вимкнено, користувачі зможуть увійти лише через зовнішнього постачальника ідентифікації."
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "Дозволена реєстрація користувача", "TITLE": "Дозволена реєстрація користувача",
+3 -3
View File
@@ -281,9 +281,9 @@
"FORM": { "FORM": {
"TITLE": "登录表单", "TITLE": "登录表单",
"DESCRIPTION": "自定义登录表单。", "DESCRIPTION": "自定义登录表单。",
"USERNAME_PASSWORD_ALLOWED": { "LOCAL_AUTHENTICATION_ALLOWED": {
"TITLE": "允许用户名和密码", "TITLE": "允许本地身份验证",
"DESCRIPTION": "允许用户使用他们的用户名和密码登录。如果此功能被禁用,你的用户只能使用Passkey认证或外部身份提供者登录。" "DESCRIPTION": "允许您的用户使用其用户名和密码或通行密钥身份验证登录。如果停用此选项,您的用户只能使用外部身份提供商登录。"
}, },
"USER_REGISTRATION_ALLOWED": { "USER_REGISTRATION_ALLOWED": {
"TITLE": "允许用户注册", "TITLE": "允许用户注册",