• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Social Network Authentication (Twitter, Google, VK.com) 1.0

No permission to download

guiltar

Well-known member
#1

Brandon Sheley

Well-known member
#8
Nice idea, I'd want to remove vk.com or whatever that is, can we just use the google and twitter authentication?
Also what email do the users use if they sign up through Twitter?
 

guiltar

Well-known member
#9
Outside of paypal, because I do not (can not) use it; do you accept donations?

AlertPay.com or Google Checkout perhaps?
Unfortunately only half-working paypal now. I can recieve but can't pay until associate some credit card to it.
All It says is the client ID. It doesn't say the client secret.
screen.jpg

Nice idea, I'd want to remove vk.com or whatever that is, can we just use the google and twitter authentication?
Also what email do the users use if they sign up through Twitter?
VK.com won't appear if you don't specify its application id.
Only configured networks appear.
 

guiltar

Well-known member
#11
oh
you dind't include the librabry?:(
No, I was going to do it but there are couple things that stopped me.
First, most of providers give basic user info without authorization. Library doesn't retrieve info such a way.
It requires curl and some hosters disable it. The final reason was its structure: IDE doesn't recognize the code and sometimes library seems overcomplicated.

That's why I decided to write own velocycle :)
Indeed, there are 2 main protocols: Oauth1a and Oauth2. First one has all needed helpers in Zend Framework, second one is trivial.

BTW, I would add LinkedIn and Yahoo if I have SSL on server.
If somebody have and allow me to develop most LinkedIn and Yahoo will be added.
 
#13
Create new application and you will see it in API console https://code.google.com/apis/console

You use only those social networks for which you set up Application Id.
I get this error with the google app:
Feil:redirect_uri_mismatch
The redirect URI in the request: http://www.strikkesiden.no/register/google did not match a registered redirect URI
This error with the twitter app:
Server Error

Could not retrieve a valid Token response from Token URL:Desktop applications only support the oauth_callback value 'oob'/oauth/request_token?oauth_consumer_key=yhQCkNBh7BPEBOIvFA&oauth_nonce=f123ec5e5a8af0acc4a2513a644ba25d&oauth_timestamp=1335549047&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_callback=http%3A%2F%2Fwww.strikkesiden.no%2Fregister%2Ftwitter&oauth_signature=ax8%2BA3VOrTU64p5z8QLumiolqbA%3D
  1. Zend_Oauth_Http->_assessRequestAttempt() in Zend/Oauth/Http.php at line 190
  2. Zend_Oauth_Http->startRequestCycle() in Zend/Oauth/Http.php at line 191
  3. Zend_Oauth_Http->startRequestCycle() in Zend/Oauth/Http.php at line 191
  4. Zend_Oauth_Http->startRequestCycle() in Zend/Oauth/Http/RequestToken.php at line 51
  5. Zend_Oauth_Http_RequestToken->execute() in Zend/Oauth/Consumer.php at line 115
  6. Zend_Oauth_Consumer->getRequestToken() in Social/Provider/Oauth/Abstract.php at line 58
  7. Social_Provider_Oauth_Abstract->getAuthorizeUrl() in Social/ControllerPublic/Register.php at line 34
  8. Social_ControllerPublic_Register->_getProviderResponse() in Social/ControllerPublic/Register.php at line 389
  9. Social_ControllerPublic_Register->actionTwitter() in XenForo/FrontController.php at line 310
  10. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  11. XenForo_FrontController->run() in /home/strikkes/public_html/index.php at line 13
I have no idea if i have the right settings in the google application...

Any help is much appreciated :eek:
 

guiltar

Well-known member
#14
I get this error:


I have no idea if i have the right settings in the google application...

Any help is much appreciated :eek:
Forgot, Google is very accurate with redirect uri. Type 2 uri:
Code:
http://example.com/register/google
http://example.com/register/google?assoc=1
 
#19
Great Stuff Sir...i found two bugs

(i) Login Buttons not visible [screenshot]
(ii) I already had twitter, as per the instruction i proceeded without uninstalling, i'm getting error when checking twitter integration on profile page

Thanks once again :) and hope to see these fixed soon...
 

Attachments

Volion

Active member
#20
After installing this app, Twitter Integration is still in the options. I thought it was supposed to uninstall the Twitter auth?

Also I am now getting this when I try to associate, everything worked before installing Social Network Authentication.

array_merge() [function.array-merge]: Argument #2 is not an array
  1. XenForo_Application::handlePhpError() in Social/ControllerPublic/Account.php at line 47
  2. Social_ControllerPublic_Account->_getProviderResponse() in Social/ControllerPublic/Account.php at line 95
  3. Social_ControllerPublic_Account->actionTwitter() in XenForo/FrontController.php at line 310
  4. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  5. XenForo_FrontController->run() in /public_html/index.php at line 13