fittinq / symfony-authenticator
There is no license information available for the latest version (13.0.0) of this package.
13.0.0
2024-03-08 15:48 UTC
Requires
- firebase/php-jwt: ^6.0
- symfony/framework-bundle: ^6.0
- symfony/security-bundle: ^6.0
Requires (Dev)
- fittinq/symfony-mock: ^4.0
- phpunit/phpunit: ^9.0
- symfony/flex: ^1.3.1
- symfony/http-client: ^6.0
- symfony/yaml: ^6.0
- dev-main
- 13.0.0
- 12.0.0
- 11.1.1
- 11.1.0
- 11.0.0
- 10.0.2
- 10.0.1
- 10.0.0
- 9.0.4
- 9.0.3
- 9.0.2
- 9.0.1
- 9.0.0
- 8.0.1
- 8.0.0
- 7.2.2
- 7.2.1
- 7.2.0
- 7.1.4
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.0
- 4.0.0
- 3.2.0
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-11-08 16:26:47 UTC
README
Shield of your service with the authenticator library
Install via composer
composer require fittinq\symfony-authenticator
Configure bundle
# config/bundles.php
<?php
return [
// ...
Fittinq\Symfony\Authenticator\SymfonyAuthenticatorBundle::class => ['all' => true],
];
.env
Configure the following .env.local settings
AUTHENTICATOR_HOST_URL=dev.auth.hip.fittinq.com
AUTHENTICATOR_KEY_PUB=/var/www/app/auth.key.pub
Setup security.yaml
security:
enable_authenticator_manager: true
providers:
user_provider:
id: Fittinq\Symfony\Authenticator\Authenticator\JwtUserProvider
firewalls:
unsecure:
pattern: ^/(health|authenticator-callback)
security: false
secure:
provider: user_provider
custom_authenticators:
# Depending on your problem, you can add either authenticator.
# - Fittinq\Symfony\Authenticator\Authenticator\CookieAuthenticator
# - Fittinq\Symfony\Authenticator\Authenticator\HeaderAuthenticator
access_control:
- {path: '^/users', roles: ROLE_ADMIN_AUTHENTICATOR}