fittinq/symfony-authenticator
最新稳定版本:13.0.0
Composer 安装命令:
composer require fittinq/symfony-authenticator
包简介
README 文档
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}
统计信息
- 总下载量: 4.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-08-16