定制 acsystems/keycloak-authenticator-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

License PHP Code Style

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

NameTypeUsage
base_uristringURL to your keycloak instance
realmoptional stringRealm name, will be derived if not present
client_idoptional stringHuman 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.

PlatformVersion
PHP^8.1
Symfony^6.1

Contributing

Please read our contribution guidelines before contributing.

统计信息

  • 总下载量: 197
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固