所以,我有这种安全性:
providers:
fos_userbundle:
id: hwi_oauth.user.provider.fosub_bridge
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
pattern: ^/
anonymous: true
logout: true
form_login:
provider: fos_userbundle
csrf_provider: form.csrf_provider
login_path: /login
check_path: /login_check
oauth:
resource_owners:
battlenet: "/login/check-battle-net"
login_path: /login
use_forward: false
failure_path: /login
oauth_user_provider:
service: hwi_oauth.user.provider.fosub_bridge
logout:
path: /logout
target: /
remember_me:
key: "%secret%"
lifetime: 31536000 # 365 days in seconds
path: /
domain: ~ # Defaults to the current domain from $_SERVER
我正在使用HWIOauth捆绑包。现在我想在附近的fos用户包中实现经典登录。有一些简单的方法吗? ;)
答案 0 :(得分:0)
app / console fos:user:create
然后为FOSUserBundle \ SecurityController :: loginAction和..制作路线,表格和视图等。
多数民众赞成;)它的运作非常好,没有任何安全的变化.yml