recognize / dwh-application-symfony-bundle
API 连接器
2.0.1
2024-03-21 13:41 UTC
Requires
- php: ^8.1.0
- doctrine/common: ^3.0
- doctrine/orm: ^2.5.0
- erasys/openapi-php: ^2.1|^3.0|^4.0
- symfony/framework-bundle: ^4.0|^5.0|^6.0
- symfony/security-bundle: ^4.0|^5.0|^6.0
- symfony/serializer: ^4.0|^5.0|^6.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- dev-develop
- 2.0.1
- 2.0.0
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.0.3
- 0.0.2
- 0.0.1
- dev-override-loader-methods
- dev-feature/TD-604-change-code-scanning-triggers-and-frequency
- dev-dependabot/composer/symfony/http-kernel-5.4.20
- dev-dependabot/composer/symfony/security-bundle-5.4.20
- dev-master
This package is auto-updated.
Last update: 2024-09-12 15:07:34 UTC
README
安装
安全性
在 config/packages/security.yaml
中添加以下内容:用户提供者
providers: dwhsecurity: id: Recognize\DwhApplication\Security\DwhUserProvider
用户编码器(目前仅支持 bcrypt)
encoders: Recognize\DwhApplication\Model\DwhUser: bcrypt
DWH-bridge 的防火墙
firewalls: recognize_dhw: pattern: ^/api/dwh http_basic: realm: Recognize DWH provider: dwhsecurity anonymous: false stateless: true
确保对 DWH-API 路径进行身份验证
access_control: - { path: ^/api/dwh, roles: ROLE_DWH_BRIDGE }
配置
加密令牌需要使用指定的加密方法加密的令牌。
recognize_dwh: protocol_version: 1.0.0 specification_version: 1.0.0 encryption: bcrypt encrypted_token: $2y$12$ADbwlXKfMjsHKayFlBSuLuu02FkrtgzdNWfCOrzWrCR8zkSoNsUfG