php - Hybridauth in yii won't redirect to google -
i've been trying make hybridauth work in yii hybridauth extension.
problem when want sign using google, redirects me http://mywebsite.com/site/login.
i'm using htaccess remove "index.php" path, , have index.html default (because i'm testing yii , don't want show yet) looks this:
directoryindex index.html index.php rewriteengine on # if directory or file exists, use directly rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d # otherwise forward index.php rewriterule . index.php
hybridauth extension configured in config/main.php in modules section way:
'hybridauth' => array( 'baseurl' => 'http://'. $_server['server_name'] . '/hybridauth', 'withyiiuser' => false, // set true if using yii-user "providers" => array ( "google" => array ( "enabled" => true, "keys" => array ( "id" => "xxxxxxxxxxxx.apps.googleusercontent.com", "secret" => "xxxxxxxxxxxxxxxxxxxxxxxx" ), "scope" => "" ) ) ),
on google console i've created client id web applications, redirect uris this:
http://mywebsite.com/hybridauth/default/callback?hauth.done=google
i've found this:
your base_url in configuration file "hybridauth.php" should set "/hauth/endpoint" i.e. must point endpoint. if have removed index.php through .htaccess use "/index.php/hauth/endpoint".
i've tried set baseurl in config http://'. $_server['server_name'] . '/index.php/hybridauth
no luck. wrong?
i've forgotten i've set debug property of srbac module false, unauthorized user can't access hybridauth. hybridauth has allowed in srbac module accessible everyone.
edit: couldn't find hybridauth module in srbac control panel, i've added allways allowed list, see response here.
Comments
Post a Comment