add facebook login module, hwi/HWIOAuthBundle
This commit is contained in:
@@ -7,3 +7,16 @@ twig:
|
||||
project_name: 'MineSeeker'
|
||||
project_shortname: 'Mine'
|
||||
project_monogram: 'MS'
|
||||
|
||||
hwi_oauth:
|
||||
firewall_names: [secured_area]
|
||||
resource_owners:
|
||||
facebook:
|
||||
type: facebook
|
||||
client_id: 320599508311862
|
||||
client_secret: 18d4f48cdd274bccee2678e5eff3f557
|
||||
scope: ""
|
||||
options:
|
||||
display: popup
|
||||
auth_type: rerequest
|
||||
csrf: true
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
hwi_oauth_redirect:
|
||||
resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
|
||||
prefix: /connect
|
||||
|
||||
hwi_oauth_login:
|
||||
resource: "@HWIOAuthBundle/Resources/config/routing/login.xml"
|
||||
prefix: /login
|
||||
|
||||
facebook_login:
|
||||
path: /login/check-facebook
|
||||
|
||||
google_login:
|
||||
path: /login/check-google
|
||||
|
||||
github_login:
|
||||
path: /login/check-github
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
services:
|
||||
# jotunheimr_user.example:
|
||||
# class: Jotunheimr\UserBundle\Example
|
||||
# arguments: ["@service_id", "plain_value", %parameter%]
|
||||
my.custom.user_provider:
|
||||
class: Jotunheimr\UserBundle\Security\Core\User\MyFOSUBUserProvider
|
||||
arguments: ['@fos_user.user_manager', { facebook: facebookId }]
|
||||
|
||||
Reference in New Issue
Block a user