youshido/token-authenticator
最新稳定版本:1.1.1
Composer 安装命令:
composer require youshido/token-authenticator
包简介
Symfony bundle to allow you token based authentication
README 文档
README
This bundle allow you to use a token authentication mechanism similar to OAuth but much more simplified.
Installation
First, enable bundle in your AppKernel by adding it to the registerBundles method:
... new Youshido\TokenAuthenticationBundle\TokenAuthenticationBundle(),
Then create provider and firewall under app/config/security.yml (if you don't have encoder yet – might as well add it here):
security: providers: api_user_provider: id: token_user_provider encoders: AppBundle\Entity\User: md5 firewalls: api_firewall: pattern: ^/.* stateless: true simple_preauth: authenticator: token_authenticator provider: api_user_provider anonymous: ~
Now add your model class name to the service declaration app/config/config.yml:
token_authentication: user_model: "AppBundle\\Entity\\User"
统计信息
- 总下载量: 9.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-03