SleepWalker / hoauth

yii-hoauth provides simple integration with social network authorisation lib Hybridauth in Yii.
Other
59 stars 35 forks source link

social login click renders blank window #48

Open ashishchauhan opened 10 years ago

ashishchauhan commented 10 years ago

after copying all the files and directories in my hoauth directory , i configured my apps by going to the link http://mysite.com/index.php?r=site/oauthadmin . I finished my configuration and when i clicked the login buttons a new window opens with the url http://mysite.com/index.php?r=site/oauth&provider=Google but the window remains blank. Initially it was showing the permission window but now it comes to be blank every time...i reverted all the changes i made to any of the files in the hoauth directory but still nothing changes

SleepWalker commented 10 years ago

Your yii app is in debug mode? php errors are not disabled?

ashishchauhan commented 10 years ago

i have set the debug mode to true on my index page but still no errors are being throne

SleepWalker commented 10 years ago

can you also set this on your index page?

error_reporting(E_ALL);
ini_set('display_errors', 1);
nakarin4350 commented 9 years ago

When I clicked "sign in with google" button my new windows opens with the url http://localhost/donation/index.php?r=user/login&hauth.start=Google&hauth.time=1412308960 but the window 's contents look the same like http://localhost/donation/index.php?r=user/login.In debug_file.Any ideas ?

INFO -- 127.0.0.1 -- 2014-10-03T11:02:40+07:00 -- Enter Hybrid_Provider_Adapter::login( Google ) INFO -- 127.0.0.1 -- 2014-10-03T11:02:40+07:00 -- Enter [Google]::logout() DEBUG -- 127.0.0.1 -- 2014-10-03T11:02:40+07:00 -- Hybrid_Provider_Adapter::login( Google ), redirect the user to login_start URL. -- INFO -- 127.0.0.1 -- 2014-10-03T11:02:40+07:00 -- Enter Hybrid_Auth::redirect( http://localhost/donation/index.php?r=user/login&hauth.start=Google&hauth.time=1412308960, PHP )

screenshot from 2014-10-03 11 09 11

screenshot from 2014-10-03 11 10 27

SleepWalker commented 9 years ago

hello @nakarin4350, can you add this two lines to yours UrlManager component config in application.config.main?

        'urlManager'=>array(
            'urlFormat' => 'path', // this
            'showScriptName' => false, // and this
            'rules'=>array(
...
            ),
        ),
nakarin4350 commented 9 years ago

@SleepWalker,I still have no luck,but thanks for ur response.

SleepWalker commented 9 years ago

To help you, I need the way to reproduce this issue on my localhost...

Do you use yii-user? If so, you can try to install this demo. This is the last version of yii-user and hoauth, that are already integrated together. You can try compare this setup to yours.

If you don't use yii-user, the only thing that remains is that I should see your code...