Skip to content

Commit

Permalink
also this one
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbild committed Feb 23, 2024
1 parent 5fb2c33 commit 2a9fcb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ The CAS Server can return additional attributes in addition to the main attribut
When the user is authenticated, it is possible to get these attributes through the security token of Symfony:

```php
use Symfony\Component\Security\Core\Security;
use Symfony\Bundle\SecurityBundle\Security;

public function myFunction (Security $security) {
$user_attributes = $security->getToken()->getAttributes();
Expand Down
2 changes: 1 addition & 1 deletion src/Security/CasAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
use Symfony\Component\Security\Core\Security;
use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\Security\Http\Authenticator\AbstractAuthenticator;
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
use Symfony\Component\Security\Http\Authenticator\Passport\Passport;
Expand Down

0 comments on commit 2a9fcb8

Please sign in to comment.