Hybrid auth with Yii causing a redirect loop

后端 未结 2 518
走了就别回头了
走了就别回头了 2020-12-21 05:46

I am trying to implement twitter sign in on my website using hybridauth. I know there is a hybrid auth plugin for Yii. I am not using it because last time I used I ran into

相关标签:
2条回答
  • 2020-12-21 06:24
    1. Hybrid Auth login for twitter and facebook requires a valid domain not localhost.

    2. Your base_url in configuration file "hybridauth.php" should be set to "/hauth/endpoint" i.e. it must point to the endpoint. If you have removed index.php through .htaccess then use "/index.php/hauth/endpoint".

    3. Set permissions of hybridauth.log in Logs folder to writable.

    Reference Link: http://hybridauth.sourceforge.net/userguide/Configuration.html

    0 讨论(0)
  • 2020-12-21 06:24

    Did you noticed the base url in your config? Its where the callback is returned during auth and you must use live web domain to test it.

    "base_url" => "http://localhost/yiiauth/authtest/",

    Also twitter requires additional tokens to be created , i hope you have done that already.

    I have working hybridauth on my test website: www.bemployable.com

    0 讨论(0)
提交回复
热议问题