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_oauth:
    http_client:
        verify_peer: false


来源:https://stackoverflow.com/questions/19522963/symfony-hwioauthbundle-how-to-configure-curl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!