php - Does not get Response in HWIOAuthBundle -


i have installed hwioauthbundle. login facebook bundle. after successful login, no response. see blank screen.

my config file is:

hwi_oauth:     firewall_name: secured_area     resource_owners:         facebook:             type:          facebook             client_id:     xxxxxxx             client_secret: xxxxxxx             scope:         "email"             infos_url:     "https://graph.facebook.com/me?fields=id,name,email,picture.type(square)"             paths:                 email:          email                 profilepicture: picture.data.url     

my security file is:

security:     providers:         hwi:             id: hwi_oauth.user.provider      firewalls:         secured_area:             anonymous: ~             oauth:                 resource_owners:                     facebook:      "/login/check-facebook"                 login_path:        /login                 use_forward:       false                 failure_path:      /login                   oauth_user_provider:                     service: hwi_oauth.user.provider      access_control:         - { path: ^/login, roles: is_authenticated_anonymously } 

my routing file is:

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  custom_login:     path: /login/check-custom 

try in config:

security:     providers:         hwi:             id: hwi_oauth.user.provider      firewalls:         secured_area:             anonymous: ~             oauth:                 resource_owners:                     facebook:      "/login/check-facebook"                 login_path:        /login                 use_forward:       false                 failure_path:      /login                 #new line here                 default_target_path: / #or else /profile etc.                  oauth_user_provider:                     service: hwi_oauth.user.provider      access_control:         - { path: ^/login, roles: is_authenticated_anonymously } 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -