hybridauth

Hybrid Auth with Codeigniter

自古美人都是妖i 提交于 2020-01-22 04:55:09
问题 I downloaded the codeigniter extension of HybridAuth here: https://github.com/andacata/HybridIgniter I followed instructions on its use. When I try to login via any provider at: www.mydomainname.com/hauth/login/twitter it loads a page saying: HybridAuth Open Source Social Sign On PHP Library. hybridauth.sourceforge.net/ It never works. I have valid API credentials for Twitter and Facebook but both load this page and nothing else happens. Any tips would be greatly appreciated. UPDATE My log

HYbridauth for facebook login doesn't work

久未见 提交于 2020-01-14 06:25:51
问题 I was trying to configure the hybridauth library so that I can use the the google + and the facebook sign in. But it keeps me giving a fatal error: Fatal error: require(): Failed opening required 'Facebook\Facebook.php' (include_path='.:/var/www/magilla/lib:/var/www/magilla/models') in /var/www/magilla/lib/RPC/Util.php on line 168 I followed each and every step of their documentation. I have used the composer to install the library. The library version is 2.9 and the facebook graph sdk, the

Server Error on saving Consent Screen

妖精的绣舞 提交于 2020-01-14 05:46:08
问题 I am unable to save my consent screen settings if I put an email and/or a callback url into the settings. If I enter only product name, then I can, but of course this causes my app to fail. I'm using this simply to allow login with Google via Hybrid Auth module in Drupal. The Error I get on attempted login via google is: Error: invalid_client no support email Request Details cookie_policy_enforce=false scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth

How to (correctly) extend ScnSocialAuth\Authentication\Adapter\HybridAuth::authenticate() method?

╄→гoц情女王★ 提交于 2020-01-06 15:15:06
问题 I'm using ScnSocialAuth ZF2 module to enable social media authentication in my project. As it uses ZfcUser as one of its dependencies, two DB tables are created/used by default: CREATE TABLE `user` ( `user_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `username` VARCHAR(255) DEFAULT NULL UNIQUE, `email` VARCHAR(255) DEFAULT NULL UNIQUE, `display_name` VARCHAR(50) DEFAULT NULL, `password` VARCHAR(128) NOT NULL, `state` SMALLINT UNSIGNED ) ENGINE=InnoDB CHARSET="utf8"; and CREATE TABLE

How to remove permissions offline_access and publish_stream in scope variable

扶醉桌前 提交于 2020-01-06 01:05:12
问题 I have error when I want login drupal 7 with facebook account and I use module hybridauth. like this: Invalid Scopes: offline_access, publish_stream. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions From same question I found the answer and it is to remove permissions offline_access and publish_stream in scope variable but

Facebook Login using HybridAuth showing error You cannot access this page directly

本小妞迷上赌 提交于 2020-01-01 05:50:50
问题 I am trying to write a plugin for my website to connect with facebook using the HybridAuth classes. I just tried following code function authenticatewith( $provider ) { ini_set('display_errors','on'); //includes $config = dirname(__FILE__) . '/hybridauth-2.1.2/hybridauth/config.php'; require_once("hybridauth-2.1.2/hybridauth/Hybrid/Auth.php"); $provider_name = $provider; //$config = $this->getconfig($id); try { // initialize Hybrid_Auth with a given file $hybridauth = new Hybrid_Auth($config)

Fatal error: Class 'Hybrid_Logger' not found in /hybridauth/Hybrid/Endpoint.php on line 165

旧城冷巷雨未停 提交于 2019-12-22 14:56:52
问题 I am drying to deploy HyBridAuth as a plugin in my website . my fucntion looks something like this . function authenticatewith( $provider ){ ini_set('display_errors','on'); //includes $config = dirname(__FILE__) . '/hybridauth-2.1.2/hybridauth/config.php'; require_once( "hybridauth-2.1.2/hybridauth/Hybrid/Auth.php" ); $provider_name = $provider; //$config = $this->getconfig($id); try{ // initialize Hybrid_Auth with a given file $hybridauth = new Hybrid_Auth( $config ); // try to authenticate

Restore Access Token in hybridauth

元气小坏坏 提交于 2019-12-21 05:57:10
问题 I saved the Access Token (using this method: getAccessToken ()) in my database, but now I would like to restore this value to an object. How can I do this? 回答1: This is explained in hybridauth user manual with below code : // get the stored hybridauth data from your storage system $hybridauth_session_data = get_sorted_hybridauth_session( $current_user_id ); Get_sorted_hybridauth_session is your internal function to get the stored data. It doesnt matter whether you store the data in a table in

PHP HybridAuth social signin not working at all. Redirecting to ?hauth.start=Facebook&hauth.time

大兔子大兔子 提交于 2019-12-20 09:48:32
问题 I was trying to make HybridAuth Social Login work on this simple php site. Downloaded HybridAuth and installed it. Then found that even the examples does not work for social login (tried on remote server too. The normal signin_signup example works fine. But whenever I click the link to login to a social network (i.e, facebook,twitter) it redirects me to (MY_BASE_URL/index.php?hauth.start=Facebook&hauth.time) without showing any login window/error messages at all. I've carefully read the

HybridAuth Facebook returned an invalid user id

回眸只為那壹抹淺笑 提交于 2019-12-18 08:55:34
问题 I am getting the following error: Authentication failed. The user has canceled the authentication or the provider refused the connection. Original error message: Authentication failed! Facebook returned an invalid user id. tried a lot of things like to add in the base_facebook.php CURLOPT_SSL_VERIFYPEER => false aswell as to improve the curl timeout, but it wont works. The app isnt in facebook sandbox mode anymore so I literally have no guess left. 回答1: I just solved that problem by setting