Download the PHP package cooolinho/symfony-security-bundle without Composer
On this page you can find all versions of the php package cooolinho/symfony-security-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cooolinho/symfony-security-bundle
More information about cooolinho/symfony-security-bundle
Files in cooolinho/symfony-security-bundle
Download cooolinho/symfony-security-bundle
More information about cooolinho/symfony-security-bundle
Files in cooolinho/symfony-security-bundle
Vendor cooolinho
Package symfony-security-bundle
Short Description test reusable bundle
License GPL-2.0-only
Package symfony-security-bundle
Short Description test reusable bundle
License GPL-2.0-only
Please rate this library. Is it a good library?
Informations about the package symfony-security-bundle
symfony-security-bundle
Setup
Install via composer
composer install cooolinho/symfony-security-bundle
update .env
MAILER_DSN=smtp://user:[email protected]:port
update security.yml
add to encoders
security:
encoders:
...
Cooolinho\Bundle\SecurityBundle\Entity\User:
algorithm: auto
use in provider
security:
providers:
...
my_custom_provider:
entity:
class: Cooolinho\Bundle\SecurityBundle\Entity\User
property: email | username
update firewall
security:
firewalls:
...
secured_admin_area:
provider: my_custom_provider
user_checker: Cooolinho\Bundle\SecurityBundle\Security\UserChecker
custom_authenticator:
- Cooolinho\Bundle\SecurityBundle\Security\SecurityAuthenticator
logout:
path: app_logout
target: app_login
add role hierarchy
role_hierarchy:
ROLE_SUPER_ADMIN: [ ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]
ROLE_ADMIN: ROLE_USER
add access control
access_control:
- { path: ^/login, roles: PUBLIC_ACCESS }
- { path: ^/logout, roles: PUBLIC_ACCESS }
- { path: ^/admin, roles: ROLE_ADMIN }
add cooolinho_security.yaml to config/packages
cooolinho_security:
route_after_login: # REQUIRED
user_class: # REQUIRED
registration_enabled: false # optional
route_login: app_login # optional
route_logout: app_logout # optional
mailer_from: test@localhost # optional
mailer_name: Localhost Mailbot # optional
login_provider_property: email # optional
ResetPassword Setup
First you have to create two classes: App\Entity\ResetPasswordRequest and App\Repository\ResetPasswordRequestRepository
App\Entity\ResetPasswordRequest
App\Repository\ResetPasswordRequestRepository
update reset_password.yaml in config/packages
symfonycasts_reset_password:
request_password_repository: App\Repository\ResetPasswordRequestRepository
update config/routes/annotations.yaml
cooolinho_security:
resource: ../../vendor/cooolinho/symfony-security-bundle/src/Controller/
type: annotation
All versions of symfony-security-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-ctype Version *
ext-iconv Version *
cooolinho/symfony-ui-bundle Version 5.4.*
sensio/framework-extra-bundle Version ^6.1
symfony/flex Version ^1.3.1
symfony/framework-bundle Version 5.4.*
symfony/mailer Version 5.4.*
symfony/security-bundle Version 5.4.*
symfony/translation Version 5.4.*
symfony/twig-bundle Version 5.4.*
symfony/yaml Version 5.4.*
symfonycasts/reset-password-bundle Version ^1.1
ext-ctype Version *
ext-iconv Version *
cooolinho/symfony-ui-bundle Version 5.4.*
sensio/framework-extra-bundle Version ^6.1
symfony/flex Version ^1.3.1
symfony/framework-bundle Version 5.4.*
symfony/mailer Version 5.4.*
symfony/security-bundle Version 5.4.*
symfony/translation Version 5.4.*
symfony/twig-bundle Version 5.4.*
symfony/yaml Version 5.4.*
symfonycasts/reset-password-bundle Version ^1.1
The package cooolinho/symfony-security-bundle contains the following files
Loading the files please wait ....