Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.116.170.100
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
security-core /
Delete
Unzip
Name
Size
Permission
Date
Action
Authentication
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Authorization
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Encoder
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Event
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Exception
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Resources
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Role
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Signature
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Test
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
User
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Validator
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
AuthenticationEvents.php
1.39
KB
-rw-rw-r--
2022-07-20 13:00
CHANGELOG.md
1.93
KB
-rw-rw-r--
2022-07-20 13:00
LICENSE
1.04
KB
-rw-rw-r--
2022-07-20 13:00
README.md
2.16
KB
-rw-rw-r--
2022-07-20 13:00
Security.php
1.89
KB
-rw-rw-r--
2022-07-20 13:00
composer.json
1.97
KB
-rw-rw-r--
2022-07-20 13:00
Save
Rename
Security Component - Core ========================= Security provides an infrastructure for sophisticated authorization systems, which makes it possible to easily separate the actual authorization logic from so called user providers that hold the users credentials. Getting Started --------------- ``` $ composer require symfony/security-core ``` ```php use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Symfony\Component\Security\Core\Authorization\AccessDecisionManager; use Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter; use Symfony\Component\Security\Core\Authorization\Voter\RoleVoter; use Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Component\Security\Core\Role\RoleHierarchy; $accessDecisionManager = new AccessDecisionManager([ new AuthenticatedVoter(new AuthenticationTrustResolver()), new RoleVoter(), new RoleHierarchyVoter(new RoleHierarchy([ 'ROLE_ADMIN' => ['ROLE_USER'], ])) ]); $user = new \App\Entity\User(...); $token = new UsernamePasswordToken($user, 'main', $user->getRoles()); if (!$accessDecisionManager->decide($token, ['ROLE_ADMIN'])) { throw new AccessDeniedException(); } ``` Sponsor ------- The Security component for Symfony 5.4/6.0 is [backed][1] by [SymfonyCasts][2]. Learn Symfony faster by watching real projects being built and actively coding along with them. SymfonyCasts bridges that learning gap, bringing you video tutorials and coding challenges. Code on! Help Symfony by [sponsoring][3] its development! Resources --------- * [Documentation](https://symfony.com/doc/current/components/security.html) * [Contributing](https://symfony.com/doc/current/contributing/index.html) * [Report issues](https://github.com/symfony/symfony/issues) and [send Pull Requests](https://github.com/symfony/symfony/pulls) in the [main Symfony repository](https://github.com/symfony/symfony) [1]: https://symfony.com/backers [2]: https://symfonycasts.com [3]: https://symfony.com/sponsor