Download the PHP package iserranodev/certificate-auth-bundle without Composer

On this page you can find all versions of the php package iserranodev/certificate-auth-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package certificate-auth-bundle

CertificateAuthBundle

Bundle de Symfony para autenticación mediante certificados digitales X.509 (DNIe, FNMT, etc.). Totalmente configurable y sin dependencias externas más allá de Symfony y Doctrine.

Instalación

Al instalar, el bundle crea automáticamente:

Si usas Symfony Flex, el bundle se registra automáticamente. Si no, añádelo manualmente:

Configuración

Edita config/packages/certificate_auth.yaml (creado automáticamente):

El único parámetro obligatorio es user_class. Todo lo demás tiene valores por defecto razonables.

Configuración automática de Security

El bundle registra automáticamente el firewall, el provider y el checker en security.yaml mediante PrependExtensionInterface. No necesitas añadir nada manualmente en security.yaml.

El bundle inyecta esta configuración:

Si necesitas personalizar el firewall (por ejemplo, cambiar el pattern), puedes sobreescribirlo en tu propio security.yaml, ya que la configuración del bundle se inyecta con prependExtensionConfig (menor prioridad que tu config).

Configuración completa (referencia)

Transformación del identificador

Por defecto, el bundle busca el identificador del certificado (NIF, etc.) directamente en la base de datos sin transformarlo.

Con transformer personalizado

Con EncryptBundle u otro servicio

Configuración del servidor web

Apache

Nginx + PHP-FPM

Extensibilidad

Personalizar el UserChecker

Personalizar el extractor de datos del certificado

Sobreescribir el firewall

Si el pattern ^/certificado no te sirve, simplemente define tu firewall en security.yaml con la misma key certificate_auth y tu config tendrá prioridad:

Servicios registrados

Service ID Clase
certificate_auth.authenticator CertificateAuthenticator
certificate_auth.provider CertificateProvider
certificate_auth.checker CertificateChecker
certificate_auth.data_extractor CertificateDataExtractor
certificate_auth.login_controller CertificateLoginController

Requisitos


All versions of certificate-auth-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
composer-plugin-api Version ^2.0
symfony/framework-bundle Version ^6.0|^7.0
symfony/security-bundle Version ^6.0|^7.0
doctrine/orm Version ^2.14|^3.0
doctrine/doctrine-bundle Version ^2.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package iserranodev/certificate-auth-bundle contains the following files

Loading the files please wait ...