diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b56f5a68..1e417502a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog All notable changes to this project will be documented in this file. +## 6.1.3 + +### Fixed + +* [Fix(Login): do not advertise CHECK_PASSWORD capability (user_saml#829)](https://github.com/nextcloud/user_saml/pull/829) + ## 6.1.2 ### Fixed diff --git a/l10n/ast.js b/l10n/ast.js index 8a7e01579..238c60400 100644 --- a/l10n/ast.js +++ b/l10n/ast.js @@ -1,10 +1,54 @@ OC.L10N.register( "user_saml", { + "This user account is disabled, please contact your administrator." : "Esta cuenta d'usuariu ta desactivada, ponte en contautu cola alministración", "Saved" : "Guardóse", + "Could not save" : "Nun se pudo guardar", + "Provider" : "Fornidor", + "Unknown error, please check the log file for more details." : "Hebo un error desconocíu, comprueba'l ficheru de rexistru pa consiguir más detalles.", + "Direct log in" : "Aniciu de la sesión direutu", + "SSO & SAML log in" : "Aniciu de la sesión SAML y SSO", + "This page should not be visited directly." : "Esta páxina nun s'habría visitar direutamente.", + "Provider " : "Fornidor", + "X.509 certificate of the Service Provider" : "Certificáu X.509 del fornidor de servicios", + "Private key of the Service Provider" : "Clave privada del fornidor de servicios", + "Indicates if the SP will validate all received XML." : "Indica si'l fornidor de servicios va validar tolos XML recibíos", + "Group A, Group B, …" : "Grupu A, grupu B…", "Email address" : "Direición de corréu electrónicu", + "Encrypted" : "Cifróse", + "Entity" : "Entidá", + "Kerberos" : "Kerberos", + "Persistent" : "Persistente", + "Transient" : "Transitoriu", + "Unspecified" : "Ensin especificar", + "Windows domain qualified name" : "Nome cualificáu del dominiu de Windows", + "SSO & SAML authentication" : "Autenticación SAML y SSO", + "Authenticate using single sign-on" : "Autenticar col aniciu de la sesión únicu", "Open documentation" : "Abrir la documentación", + "Make sure to configure an administrative user that can access the instance via SSO. Logging-in with your regular %s account will not be possible anymore, unless you enabled \"%s\" or you go directly to the URL %s." : "Asegúrate de configurar un usuariu alministrativu que pueda acceder a esta instancia per SSO. L'aniciu de la sesión cola cuenta «%s» normal yá nun va ser posible, sacante qu'activares «%s» o vaigas direutamente a la URL «%s».", + "Make sure to configure an administrative user that can access the instance via SSO. Logging-in with your regular %s account will not be possible anymore, unless you go directly to the URL %s." : "Asegúrate de configurar un usuariu alministrativu que pueda acceder a esta instancia per SSO. L'aniciu de la sesión cola cuenta «%s» normal yá nun va ser posible, sacante que vaigas direutamente a la URL «%s».", + "Use built-in SAML authentication" : "Usar l'autenticación SAML integrada", + "Use environment variable" : "Usar la variable d'entornu", + "Global settings" : "Configuración global", + "Remove identity provider" : "Quitar el fornidor d'identidaes", + "Add identity provider" : "Amestar un fornidor d'identidaes", "General" : "Xeneral", - "Error" : "Error" + "Identity Provider Data" : "Datos del fornidor d'identidaes", + "Show optional Identity Provider settings…" : "Amosar la configuración adicional del fornidor d'identidaes…", + "Public X.509 certificate of the IdP" : "Certificáu X.509 públicu del forndior d'identidaes", + "Attribute mapping" : "Mapéu d'atributos", + "Show attribute mapping settings…" : "Amosar la configuración del mapéu d'atributos…", + "Security settings" : "Configuración de seguranza", + "For increased security we recommend enabling the following settings if supported by your environment." : "P'aumentar la seguranza, aconseyámoste activar la configuración siguiente si'l to entornu ye compatible.", + "Show security settings…" : "Amosar la configuración de seguranza…", + "User filtering" : "Peñera d'usuarios", + "Download metadata XML" : "Baxar el XML de los metadatos", + "Reset settings" : "Reafitar la configuración", + "Metadata invalid" : "Los meta datos son inválidos", + "Metadata valid" : "Los metadatos son válidos", + "Error" : "Error", + "Access denied." : "Negóse l'accesu.", + "Login options:" : "Opciones de l'aniciu de la sesión:", + "Choose an authentication provider" : "Escueyi un fornidor d'autenticación" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/ast.json b/l10n/ast.json index d5ce00ffa..e0e24c904 100644 --- a/l10n/ast.json +++ b/l10n/ast.json @@ -1,8 +1,52 @@ { "translations": { + "This user account is disabled, please contact your administrator." : "Esta cuenta d'usuariu ta desactivada, ponte en contautu cola alministración", "Saved" : "Guardóse", + "Could not save" : "Nun se pudo guardar", + "Provider" : "Fornidor", + "Unknown error, please check the log file for more details." : "Hebo un error desconocíu, comprueba'l ficheru de rexistru pa consiguir más detalles.", + "Direct log in" : "Aniciu de la sesión direutu", + "SSO & SAML log in" : "Aniciu de la sesión SAML y SSO", + "This page should not be visited directly." : "Esta páxina nun s'habría visitar direutamente.", + "Provider " : "Fornidor", + "X.509 certificate of the Service Provider" : "Certificáu X.509 del fornidor de servicios", + "Private key of the Service Provider" : "Clave privada del fornidor de servicios", + "Indicates if the SP will validate all received XML." : "Indica si'l fornidor de servicios va validar tolos XML recibíos", + "Group A, Group B, …" : "Grupu A, grupu B…", "Email address" : "Direición de corréu electrónicu", + "Encrypted" : "Cifróse", + "Entity" : "Entidá", + "Kerberos" : "Kerberos", + "Persistent" : "Persistente", + "Transient" : "Transitoriu", + "Unspecified" : "Ensin especificar", + "Windows domain qualified name" : "Nome cualificáu del dominiu de Windows", + "SSO & SAML authentication" : "Autenticación SAML y SSO", + "Authenticate using single sign-on" : "Autenticar col aniciu de la sesión únicu", "Open documentation" : "Abrir la documentación", + "Make sure to configure an administrative user that can access the instance via SSO. Logging-in with your regular %s account will not be possible anymore, unless you enabled \"%s\" or you go directly to the URL %s." : "Asegúrate de configurar un usuariu alministrativu que pueda acceder a esta instancia per SSO. L'aniciu de la sesión cola cuenta «%s» normal yá nun va ser posible, sacante qu'activares «%s» o vaigas direutamente a la URL «%s».", + "Make sure to configure an administrative user that can access the instance via SSO. Logging-in with your regular %s account will not be possible anymore, unless you go directly to the URL %s." : "Asegúrate de configurar un usuariu alministrativu que pueda acceder a esta instancia per SSO. L'aniciu de la sesión cola cuenta «%s» normal yá nun va ser posible, sacante que vaigas direutamente a la URL «%s».", + "Use built-in SAML authentication" : "Usar l'autenticación SAML integrada", + "Use environment variable" : "Usar la variable d'entornu", + "Global settings" : "Configuración global", + "Remove identity provider" : "Quitar el fornidor d'identidaes", + "Add identity provider" : "Amestar un fornidor d'identidaes", "General" : "Xeneral", - "Error" : "Error" + "Identity Provider Data" : "Datos del fornidor d'identidaes", + "Show optional Identity Provider settings…" : "Amosar la configuración adicional del fornidor d'identidaes…", + "Public X.509 certificate of the IdP" : "Certificáu X.509 públicu del forndior d'identidaes", + "Attribute mapping" : "Mapéu d'atributos", + "Show attribute mapping settings…" : "Amosar la configuración del mapéu d'atributos…", + "Security settings" : "Configuración de seguranza", + "For increased security we recommend enabling the following settings if supported by your environment." : "P'aumentar la seguranza, aconseyámoste activar la configuración siguiente si'l to entornu ye compatible.", + "Show security settings…" : "Amosar la configuración de seguranza…", + "User filtering" : "Peñera d'usuarios", + "Download metadata XML" : "Baxar el XML de los metadatos", + "Reset settings" : "Reafitar la configuración", + "Metadata invalid" : "Los meta datos son inválidos", + "Metadata valid" : "Los metadatos son válidos", + "Error" : "Error", + "Access denied." : "Negóse l'accesu.", + "Login options:" : "Opciones de l'aniciu de la sesión:", + "Choose an authentication provider" : "Escueyi un fornidor d'autenticación" },"pluralForm" :"nplurals=2; plural=(n != 1);" } \ No newline at end of file diff --git a/l10n/es.js b/l10n/es.js index 0b5ce9f18..3559cb1cc 100644 --- a/l10n/es.js +++ b/l10n/es.js @@ -95,6 +95,7 @@ OC.L10N.register( "Account not provisioned." : "Cuenta de usuario no aprovisionada.", "Your account is not provisioned, access to this service is thus not possible." : "Su cuenta no esta aprovisionada, por lo tanto el acceso a este servicio no es posible.", "Login options:" : "Opciones de login:", + "Choose an authentication provider" : "Seleccione un proveedor de autenticación", "Group Mapping Prefix, default: SAML_" : "Prefijo de mapeo de grupo, por defecto: SAML_" }, "nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;"); diff --git a/l10n/es.json b/l10n/es.json index 3a83c369c..dbb5870cb 100644 --- a/l10n/es.json +++ b/l10n/es.json @@ -93,6 +93,7 @@ "Account not provisioned." : "Cuenta de usuario no aprovisionada.", "Your account is not provisioned, access to this service is thus not possible." : "Su cuenta no esta aprovisionada, por lo tanto el acceso a este servicio no es posible.", "Login options:" : "Opciones de login:", + "Choose an authentication provider" : "Seleccione un proveedor de autenticación", "Group Mapping Prefix, default: SAML_" : "Prefijo de mapeo de grupo, por defecto: SAML_" },"pluralForm" :"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;" } \ No newline at end of file diff --git a/lib/UserBackend.php b/lib/UserBackend.php index 991c8099d..24648b4d7 100644 --- a/lib/UserBackend.php +++ b/lib/UserBackend.php @@ -34,13 +34,16 @@ use OCP\IUserManager; use OCP\IUserSession; use OCP\Server; +use OCP\User\Backend\ABackend; +use OCP\User\Backend\ICountUsersBackend; use OCP\User\Backend\IGetDisplayNameBackend; +use OCP\User\Backend\IGetHomeBackend; use OCP\User\Events\UserChangedEvent; use OCP\User\Events\UserFirstTimeLoggedInEvent; use OCP\UserInterface; use Psr\Log\LoggerInterface; -class UserBackend implements IApacheBackend, UserInterface, IUserBackend, IGetDisplayNameBackend { +class UserBackend extends ABackend implements IApacheBackend, IUserBackend, IGetDisplayNameBackend, ICountUsersBackend, IGetHomeBackend { /** @var IConfig */ private $config; /** @var IURLGenerator */ @@ -170,23 +173,6 @@ public function initializeHomeDir(string $uid): void { $this->eventDispatcher->dispatchTyped(new UserFirstTimeLoggedInEvent($user)); } - /** - * Check if backend implements actions - * @param int $actions bitwise-or'ed actions - * @return boolean - * - * Returns the supported actions as int to be - * compared with \OC\User\Backend::CREATE_USER etc. - * @since 4.5.0 - */ - public function implementsActions($actions) { - $availableActions = \OC\User\Backend::CHECK_PASSWORD; - $availableActions |= \OC\User\Backend::GET_DISPLAYNAME; - $availableActions |= \OC\User\Backend::GET_HOME; - $availableActions |= \OC\User\Backend::COUNT_USERS; - return (bool)($availableActions & $actions); - } - /** * delete a user * @param string $uid The username of the user to delete