gabyquiles/auth-bundle
Composer 安装命令:
composer require gabyquiles/auth-bundle
包简介
Provide the verification for jwt from AWS Cognito
README 文档
README
This bundle decode and verifies a AWS JWT to allow users authenticated with AWS Cognito to access your services.
Installation
composer require gabyquiles/auth-bundle
Configuration
Add config/gaby_quiles_auth_jws.yaml
gaby_quiles_auth_jws:
token_ttl: 3601
clock_skew: 1
pool_id: '%pool_id%'
region: '%aws_region%'
Mocking
When you are testing your application you want to isolate your application. In those cases you can use override the provider in /config/services_test.yaml for the TestProvider:
services:
gaby_quiles_auth_jws.aws_jwt_provider:
class: GabyQuiles\Auth\Providers\TestProvider
This provider will receive a base64 encoded json token like:
{"username": "admin","exp": 1570899818,"iat": 1570896218,"email": "user@example.com"}
统计信息
- 总下载量: 9.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2019-10-17