Private
Public Access
1
0

working user authentication w/ fb and plain login

This commit is contained in:
2016-11-04 20:57:34 +01:00
parent 88144ebaa4
commit ada68b9100
10 changed files with 175 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ hwi_oauth:
type: facebook
client_id: 320599508311862
client_secret: 18d4f48cdd274bccee2678e5eff3f557
scope: ""
scope: "public_profile,email"
options:
display: popup
auth_type: rerequest

View File

@@ -1,3 +1,4 @@
# HWIOAuthBundle routes
hwi_oauth_redirect:
resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
prefix: /connect

View File

@@ -1,4 +1,4 @@
services:
my.custom.user_provider:
class: Jotunheimr\UserBundle\Security\Core\User\MyFOSUBUserProvider
arguments: ['@fos_user.user_manager', { facebook: facebookId }]
arguments: ['@fos_user.user_manager', { facebook: facebookId }, '@doctrine.orm.entity_manager']