acsystems/keycloak-authenticator-bundle
最新稳定版本:1.1.0
Composer 安装命令:
composer require acsystems/keycloak-authenticator-bundle
包简介
Keycloak connector for stateless JWT authentication
README 文档
README
The goal of this bundle is to provide a Keycloak token authenticator for Symfony.
Documentation
Quick start
Installation
Install the package from packagist using composer
composer require acsystems/keycloak-authenticator-bundle
Add the bundle.
config/bundles.php
return [
ACSystems\KeycloakAuthenticatorBundle\ACSystemsKeycloakAuthenticatorBundle::class => ['all' => true]
];
Set up Symfony Security to use the custom authenticator.
config/packages/security.yaml
security:
firewalls:
main:
stateless: true
custom_authenticators:
- ACSystems\KeycloakAuthenticatorBundle\Security\KeycloakTokenAuthenticator
access_control:
# ...
Add your keycloak base url and realm
config/packages/keycloak_authenticator.yaml:
acsystems_keycloak_authenticator:
keycloak_authenticator:
base_uri: 'https://example.com/'
realm: 'example-realm'
Configurable parameters
| Name | Type | Usage |
|---|---|---|
| base_uri | string | URL to your keycloak instance |
| realm | optional string | Realm name, will be derived if not present |
| client_id | optional string | Human readable client_id, will be derived if not present |
Upgrading
For version migrations instructions see upgrade instructions.
Supported platforms
These are the platforms which are officially supported by this package. Any other versions might work but is not guaranteed.
| Platform | Version |
|---|---|
| PHP | ^8.1 |
| Symfony | ^6.1 |
Contributing
Please read our contribution guidelines before contributing.
统计信息
- 总下载量: 197
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-28