thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

3.) Take the modules/user/vendors/index.php, rename it to 'hybridauth.php' and place it beside your application index.php bootstrap script. This will be your hybrid auth entry script. #119

Closed prawee closed 11 years ago

prawee commented 11 years ago

i can't find index.php inside modules/user/vendors/index.php but i see only modules/user/vendors/hybridauth/index you mean that right?

thyseus commented 11 years ago

This file: https://github.com/thyseus/yii-user-management/blob/master/user/vendors/hybridauth/index.php

please let me know if you get hybrid auth to work and if you have some improvement suggestions. thanks for choosing yii-user-management

prawee commented 11 years ago

finished it.thank you so much. if it have widget about social icon for navbar(small icon) . i think better than. ps. i use bootstrap.

thyseus commented 11 years ago

which social icon plugin do you suggest?

prawee commented 11 years ago

yeah. i want to small than default icon. (if you can). thank you for reply me.

muet84 commented 11 years ago

Thyseus and parwee

I am newbie toYum and yii too . I tried to configure hybirdauth as described in hybirdauth.txt. I can see the icons on my login page too as what it set in config. Problem is when i click any of them it brings to the http://www.indoogoo.local/user/auth/login/hybridauth/Facebook or /twitter or /google whatever is clicked.

where indoogoo.local is my virtual domain as I am working on loclhost.

I have to implement the social media logins with my app.

Any help will be appriciated a lot.

thyseus commented 11 years ago

Did you place the hybrid auth entry script beside your index.php? See step 3:

3.) Take the modules/user/vendors/index.php, rename it to 'hybridauth.php' and place it beside your application index.php bootstrap script. This will be your hybrid auth entry script.

muet84 commented 11 years ago

Ohhh, you really replied. Great.

I placed that hybridauth.php file as you said, followed and double checked all the 5 steps in doc file but no luck.

one file is in /protected directory and 2nd config inside /protected/config

let me know if have to do anything else

thyseus commented 11 years ago

please place the file where your index.php is, one directory above protected/

2013/6/24 muet84 notifications@github.com

Ohhh, you really replied. Great.

I placed that hybridauth.php file as you said, followed and double checked all the 5 steps in doc file but no luck.

one file is in /protected directory and 2nd config inside /protected/config

let me know if have to do anything else

— Reply to this email directly or view it on GitHubhttps://github.com/thyseus/yii-user-management/issues/119#issuecomment-19917532 .

GIT/GP/GTW d- D++ s a- C++ UL++ P-- E--- R !tv e-- h* r-- y-

muet84 commented 11 years ago

I am sorry but its already at the same place as you asked. i mentioned wrong.

prawee commented 11 years ago

@muet84 i use follow this.

26-06-2013 14-31-36

in file /protected/hybridauth.php i'm set url = "your url/hybridauth.php" that working.

muet84 commented 11 years ago

Thanks for your suport, finally I managed hybirauth working. The thing I was missing is my YumAuthController was old and there is no hybirdAuthlogin method and actionLogin redirecting me to the same login page.

Another thing I observerd may helpful for someone is, the array in config file has index name id and secret where some providers(Linkedin I tested) have key and secret and so It throws exception.

I love the Yum and its all components. Thanks to Yii thanks to Yum [thyseus].