ahs/persona-bundle
Composer 安装命令:
composer require ahs/persona-bundle
包简介
Persona authentication system integration with Symfony aplications
关键字:
README 文档
README
This Bundle enables integration of the Persona authentication system. It provides a Symfony2 authentication provider so that users can login to a Symfony2 application via Persona.
Installation
- Install bundle:
The recommended way to install Persona Bundle is through composer. Just create a composer.json file and run the php composer.phar install command to install it:
{
"require": {
"ahs/persona-bundle": "*"
}
}
-
Add this bundle to your application's kernel:
// app/ApplicationKernel.php public function registerBundles() { return array( // ... new AHS\PersonaBundle\AHSPersonaBundle(), // ... ); } -
Configure your new firewal:
# app/config/security.yml firewalls: persona_secured: pattern: ^/ persona: true logout: true anonymous: true -
Change default configuration (optional):
# app/config/config.yml ahs_persona: verifier_url: "your verifier url" audience_url: "your audience host"
By default bundle works with in_memory provider.
TODO
- Provide sample controller
- Provide twig helper for login/logout buttons
- Create provider for FOSUserBundle
- Promote Mozilla Persona!
- Improve readme
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-10