hwioauthbundle

How can I Override HWIOAuthBundle twig file

梦想与她 提交于 2019-12-01 06:25:00
问题 I am new in HWIOAuthBundle with Symfony2.3 +FosUserBundle. I am using this bundle for facebook, twitter, googleplus login in my project. I have successfully install this and this working fine. But I want to override login.html.twig because I want to show facebook , twitter, google plus Images to our twig file but I don't know How I can do this in HWIOAuthBundle. My login.html.twig {% block content %} {# Bonus: Show all available login link in HWIOAuthBundle #} {% render(controller(

Symfony HWIOAuthBundle, how to configure cURL?

不问归期 提交于 2019-11-30 14:23:37
问题 On the development machine we have the default certificates that comes with apache, when we trying to authenticate with facebook, HWIOAuthBundle fires an exception: SSL certificate problem: unable to get local issuer certificate It's clear that in plain PHP we need to set an option CURLOPT_SSL_VERIFYPEER = false , and pass to curl_setopt_array(...) . How can we define these options for Symfony or for HWIOAuthBundle? 回答1: Add following options under "hwi_oauth" and you should be fine. hwi

Symfony HWIOAuthBundle, how to configure cURL?

旧街凉风 提交于 2019-11-30 10:27:13
On the development machine we have the default certificates that comes with apache, when we trying to authenticate with facebook, HWIOAuthBundle fires an exception: SSL certificate problem: unable to get local issuer certificate It's clear that in plain PHP we need to set an option CURLOPT_SSL_VERIFYPEER = false , and pass to curl_setopt_array(...) . How can we define these options for Symfony or for HWIOAuthBundle ? Add following options under "hwi_oauth" and you should be fine. hwi_oauth: http_client: verify_peer: false 来源: https://stackoverflow.com/questions/19522963/symfony-hwioauthbundle

How to specify the scope of Google API to get the birthday

喜欢而已 提交于 2019-11-26 20:31:33
I am trying to get the birthday from the Google API, but the retrieved data in HWIOAuthBundle do not contain it. I am wondering if the specified scope for google plus api in config.yml is correct or not! If not, please give a link or the corrected scope. google: type: google client_id: %client_id% client_secret: %secret_id% scope: "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile" paths: email: email profilepicture: picture I just used and tested it using Try It . I tested it with all of the different scopes. https://www.googleapis.com/auth/plus

How to specify the scope of Google API to get the birthday

折月煮酒 提交于 2019-11-26 07:39:53
问题 I am trying to get the birthday from the Google API, but the retrieved data in HWIOAuthBundle do not contain it. I am wondering if the specified scope for google plus api in config.yml is correct or not! If not, please give a link or the corrected scope. google: type: google client_id: %client_id% client_secret: %secret_id% scope: \"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile\" paths: email: email profilepicture: picture 回答1: I just used and