Giter Club home page Giter Club logo

wordpress-social-login's Introduction

WordPress Social Login is a free and open source plugin made by the community, for the community.

Basically, WordPress Social Login allow your website visitors and customers to register and login via social networks such as twitter, facebook and google but it has much more to offer.

For more information about WordPress Social Login, refer to our online user guide.

WSL Authentication Widget

Key Features

  • No premium features.
  • One-click social login.
  • Absolute privacy of your website users data.
  • Wide variety of identities providers.
  • A highly customizable and fully extensible widgets.
  • Easy-to-use and clean user interfaces.
  • Contacts import from google, facebook, live, linkedin and vkontakte.
  • User profiles and contacts management.
  • Compatible with WordPress 3.0+, BuddyPress and bbPress.
  • ACL-based security model.
  • Provides a direct access to social networks apis.
  • Modular design easily extended.
  • Comprehensive documentation.

License

MIT — That's short for do whatever you want.

Thanks

Big thanks to everyone who have contributed to WordPress Social Login by submitting Patches, Ideas, Reviews and by Helping in the support forum.

Screenshots

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot

wordpress-social-login's People

Contributors

achimkoellner avatar amdindows avatar andreyuv avatar auberginejoe avatar brainfork avatar cadic avatar creaoticx avatar creativefruitbowl avatar csmillie avatar cyberwani avatar eduardev avatar evgalak avatar gonzomir avatar hubdotcom avatar ihorvorotnov avatar jonnale avatar latch-app avatar mattrabe avatar miled avatar moiseevigor avatar nickivanter avatar optimizamx avatar ronindesign avatar s-sols avatar scottmurray avatar tadaskay avatar ttys99 avatar visualdatasolutions avatar xsmeets avatar ziogaschr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wordpress-social-login's Issues

Redirect Loop

After auth with any providers, can't return. It's stuck between providers to return url.

Our Wordpress has Multisite feature and server runs Nginx 1.7.12 and PHPNG. We already configurated for;

location /wp-content/plugins/wordpress-social-login/hybridauth/ {
allow all;
}

I couldn't found the same issue on your documents & wordpress support forum

wsluserprofiles columns

OK...so this may be going too far, however, I think that we should figure out a way to make the the information that we want to pull and sync from hybridauth / social networks more extensible.

Right now, if I want to get the country code and save it to wsluserprofiles, I need to modify the core of wsl.

It would be cool if we could config additional user profile fields and map to providers.

Initially, this can just be done in code. Over time, we can create a UX for this.

At a high level, maybe we can implement a strategy pattern to gather user profile information from a provider and a strategy pattern to project this data into wsl.

Make sense??

Adding avatar from Social Network

Hi i love the plugin, but it will be awseome it could take also the avatar from your social network and put it your BuddyPress user avatar.

LinkedIn scope

We should make the LinkedIn scope be a parameter vs. hard coded. Or, if we keep it hard-coded, we should use r_fullprofile vs. r_basicprofile in the request.

The current hard-coded scope includes requesting r_network and rw_nus which is fairly inclusive. As such, using r_fullprofile would be more in line with this approach.

What do you think?

White screen

After checking all the plugins, wordpress-social-login is the only one that has problems with the last version of wordpress.... I hope it can be fixed because I like it so much :)

ajax

i'm trying to login by ajax but i couldn't find any solution to it
can you help my to provide an ajax example to login by facebook & twitter & google
i'm trying to integrate the plugin with phonegap facebook login plugin so i could give user access to site data and register from app

Plugin is behaving badly

plugin is behaving badly. I logged in with Twitter but it used some other persons profile picture.

Blocking registrations blocks logins too

I use WSL to let my users register and login through google.

Setting "Accept new registration" OFF and "Allow authentication" ON my users can't login and the bouncer says no registration allowed.

Few suggestions / feature requests

WSL plugin looks much better with recent improvements. And it really has plenty of features.:)

So I have some suggestions..

  1. Under wp-admin -> profile -> Social networks

add an extra option called "Add another network" and display social buttons to connect with other networks.

As of now I cannot connect with other networks while i'm logged in. It display message like "You are logged in as username"

  1. Add an invite feature. Let the user to import the contacts, select the contacts -> send invitation -> store the invited contacts.

I think its better rather than storing all contact details in the database.

  1. Auto share feature for authors. While publishing the post just auto share the post to networks like facebook twitter etc

wp_wslusersprofiles not populated when registering a new user.

Hello,

When registering a new WordPress user using Facebook (haven't tried other providers), the wp_wslusersprofiles table does not appear to get populated.

I'm using version 2.2.3 with WordPress 4.0.1 and MySQL 5.6.21.

I'm not sure if it's related at all, but my MySQL instance has a sql_mode of STRICT_ALL_TABLES (and changing it isn't an option in my case, unfortunately).

Since it's a new user, the "SELECT id, object_sha FROM ..." query in wsl_store_hybridauth_user_profile() returns no rows.

This appears to cause the $table_data['id'] value to remain set to the default 'null' string value set when initially defining $table_data.

And this causes $wpdb->replace() to generate a SQL statement that results in an error like (some values omitted):

Incorrect integer value: 'null' for column 'id' at row 1 for query
REPLACE INTO `wp_wslusersprofiles` (`id`,`user_id`,`provider`,`object_sha`,`identifier`,`websiteurl`,`profileurl`,`photourl`,`displayname`,`description`,`firstname`,`lastname`,`gender`,`language`,`age`,`birthday`,`birthmonth`,`birthyear`,`email`,`emailverified`,`phone`,`address`,`country`,`region`,`city`,`zip`)
VALUES ('null',20,'Facebook','[... omitted ...]','[... omitted ...]','','[... omitted ...]','[... omitted ...]','[... omitted ...]','','[... omitted ...]','[... omitted ...]','[... omitted ...]','[... omitted ...]','','','','','[... omitted ...]','[... omitted ...]','','','','','','')
made by wsl_store_hybridauth_user_profile

Even if the id column and the non-integer 'null' string value are removed from the statement, it looks like the statement would still fail to execute properly.

For example, columns like birthday, birthmonth, and birthyear are set to '', although the columns in wp_wslusersprofiles are defined as INT(11) NOT NULL.

Maybe the id column and 'null' value shouldn't be included if the value is unknown?

And maybe the generated SQL statement values should better match the column types, or the column types made nullable and explicit NULL values used instead of empty strings?

Thanks!

Plugin could not be activated because it triggered a fatal error.

Plugin could not be activated because it triggered a fatal error.

Warning: require_once(/var/www/vhosts/www.mywebsite.com/wp-content/plugins/wordpress-social-login/includes/settings/wsl.providers.php): failed to open stream: No such file or directory in /var/www/vhosts/www.mywebsite.com/wp-content/plugins/wordpress-social-login-master/wp-social-login.php on line 214 Fatal error: require_once(): Failed opening required '/var/www/vhosts/www.mywebsite.com/wp-content/plugins/wordpress-social-login/includes/settings/wsl.providers.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/vhosts/www.mywebsite.com/wp-content/plugins/wordpress-social-login-master/wp-social-login.php on line 214

WP 4
BP 2.1
Theme X
Nginx

After removing the 2.2.2 install

Add additional parameters to wsl_alter_hook_provider_icon_markup

Creating this markup may require more information. For example, I'm using the following to add fontawesome support. To do this properly, I need to know

  • $provider_id
  • $provider_name
  • $wsl_settings_use_popup
  • $authenticate_url

Here is my hook

function my_wsl_use_fontawesome_icons($provider_id, $provider_name, $wsl_settings_use_popup, $authenticate_url ) {

    $lower_provider_id = strtolower( $provider_id );
    $href = ($wsl_settings_use_popup == 1) ? "javascript:void(0);" : $authenticate_url;
    $html = '';

    $html .= '<a rel="nofollow" href="'. $href . '" title="Connect with '. $provider_name . '" class="wsl_connect_with_provider btn ' . $lower_provider_id . '" data-provider="' . $provider_id .'">';
    $html .= '<span><i class="' . $lower_provider_id . ' icon-' . $lower_provider_id . '"></i> Connect with '. $provider_name .'</span>';
    $html .= '</a>';    
    return $html;
}
add_filter ('wsl_alter_hook_provider_icon_markup', 'my_wsl_use_fontawesome_icons', 10, 4);

Here is my proposed change to wsl.auth.widget.php. Can send in a pull request ... but my pending pull request is blocking:

Around lilne 100

        if( get_option( 'wsl_settings_' . $provider_id . '_enabled' ) ){

            $wsl_settings_use_popup = get_option( 'wsl_settings_use_popup' ) ;
            $provider_icon_markup = apply_filters( 'wsl_alter_hook_provider_icon_markup', $provider_id, $provider_name, $wsl_settings_use_popup, $authenticate_url );

Abstract icons / fonts applied to UX for social networks

Right now, WSL supports a couple of icon packs. It would be nice If we can filter or hook so that our own icons or approach can be used.

My particular need is to use FontAwesome icons so that the buttons can easily scale, etc.

Right now, I've gone into the login-widget.php (to add the option to the settings) and the auth-widget.php and made the change.

However, I'd like to create a better approach.

The issue with FontAwesome, or any other font-based approach, is that this means changing the render approach a bit.

FROM

<img alt="<?php echo $provider_name ?>" title="<?php echo $provider_name ?>" src="<?php echo $assets_base_url . strtolower( $provider_id ) . '.png' ?>" class="<?php echo strtolower( $provider_id ) ?>" />

TO (to support typical font-based approach)

<span class="btn"><i class="<?php echo strtolower( $provider_id ) ?> icon-<?php echo strtolower( $provider_id ) ?>"></i> Connect with <?php echo $provider_name ?></span>

In the auth-widget, this render happens three times, so it might be good for us to refactor/abstract into a fx.

Is it only me or everyone getting errors like Authentification failed. The user has canceled the authentication or the provider refused the connection

I tested with google, facebook and twitter. But none of them were working. All throwing errors.

Google:

Once the user click Allow access button it returns

User profile request failed. Most likely the user is not connected to the provider and he should to authenticate again

Expection

Exception Object
(
    [message:protected] => User profile request failed! Google returned an error: exception 'Exception' with message 'The Authorization Service has return: ' in /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php:82
Stack trace:
#0 /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Provider_Model_OAuth2.php(114): OAuth2Client->authenticate('4/eujoT3AsfXUD5...')
#1 /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php(175): Hybrid_Provider_Model_OAuth2->loginFinish()
#2 /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php(56): Hybrid_Endpoint::processAuthDone()
#3 /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/index.php(15): Hybrid_Endpoint::process()
#4 {main}
    [string:Exception:private] => 
    [code:protected] => 6
    [file:protected] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Auth.php
    [line:protected] => 153
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Auth.php
                    [line] => 39
                    [function] => initialize
                    [class] => Hybrid_Auth
                    [type] => ::
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
                                    [providers] => Array
                                        (
                                            [Google] => Array
                                                (
                                                    [enabled] => 1
                                                    [keys] => Array
                                                        (
                                                            [id] => xxxxxxxxxxxx.apps.googleusercontent.com
                                                            [secret] => xxxxxxxxxxxxxxxxxxxxxxxxx
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/authenticate.php
                    [line] => 98
                    [function] => __construct
                    [class] => Hybrid_Auth
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
                                    [providers] => Array
                                        (
                                            [Google] => Array
                                                (
                                                    [enabled] => 1
                                                    [keys] => Array
                                                        (
                                                            [id] => xxxxxxxxxxxx.apps.googleusercontent.com
                                                            [secret] => xxxxxxxxxxxxxxxxxxxxxxxxx
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => Exception Object
        (
            [message:protected] => User profile request failed! Google returned an error: exception 'Exception' with message 'The Authorization Service has return: ' in /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php:82
Stack trace:
#0 /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Provider_Model_OAuth2.php(114): OAuth2Client->authenticate('4/eujoT3AsfXUD5...')
#1 /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php(175): Hybrid_Provider_Model_OAuth2->loginFinish()
#2 /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php(56): Hybrid_Endpoint::processAuthDone()
#3 /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/index.php(15): Hybrid_Endpoint::process()
#4 {main}
            [string:Exception:private] => 
            [code:protected] => 6
            [file:protected] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Provider_Model_OAuth2.php
            [line:protected] => 117
            [trace:Exception:private] => Array
                (
                    [0] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php
                            [line] => 175
                            [function] => loginFinish
                            [class] => Hybrid_Provider_Model_OAuth2
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [1] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php
                            [line] => 56
                            [function] => processAuthDone
                            [class] => Hybrid_Endpoint
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                    [2] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/index.php
                            [line] => 15
                            [function] => process
                            [class] => Hybrid_Endpoint
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                )

            [previous:Exception:private] => 
        )

)
HybridAuth

Array
(
    [0] => Array
        (
            [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
            [providers] => Array
                (
                    [Google] => Array
                        (
                            [enabled] => 1
                            [keys] => Array
                                (
                                    [id] => xxxxxxxxxxxx.apps.googleusercontent.com
                                    [secret] => xxxxxxxxxxxxxxxxxxxxxxxxx
                                )

                        )

                )

        )

    [1] => 
    [2] => 
    [3] => 
)

Facebook:

Expection

Exception Object
(
    [message:protected] => Authentification failed! Facebook returned an invalide user id.
    [string:Exception:private] => 
    [code:protected] => 5
    [file:protected] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Auth.php
    [line:protected] => 153
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Auth.php
                    [line] => 39
                    [function] => initialize
                    [class] => Hybrid_Auth
                    [type] => ::
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
                                    [providers] => Array
                                        (
                                            [Facebook] => Array
                                                (
                                                    [enabled] => 1
                                                    [keys] => Array
                                                        (
                                                            [id] => xxxxxxxxxxxxxxx
                                                            [secret] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                                        )

                                                    [display] => popup
                                                )

                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/authenticate.php
                    [line] => 98
                    [function] => __construct
                    [class] => Hybrid_Auth
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
                                    [providers] => Array
                                        (
                                            [Facebook] => Array
                                                (
                                                    [enabled] => 1
                                                    [keys] => Array
                                                        (
                                                            [id] => xxxxxxxxxxxxxxx
                                                            [secret] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                                        )

                                                    [display] => popup
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => Exception Object
        (
            [message:protected] => Authentification failed! Facebook returned an invalide user id.
            [string:Exception:private] => 
            [code:protected] => 5
            [file:protected] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Providers/Facebook.php
            [line:protected] => 85
            [trace:Exception:private] => Array
                (
                    [0] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php
                            [line] => 175
                            [function] => loginFinish
                            [class] => Hybrid_Providers_Facebook
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [1] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php
                            [line] => 56
                            [function] => processAuthDone
                            [class] => Hybrid_Endpoint
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                    [2] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/index.php
                            [line] => 15
                            [function] => process
                            [class] => Hybrid_Endpoint
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                )

            [previous:Exception:private] => 
        )

)
HybridAuth

Array
(
    [0] => Array
        (
            [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
            [providers] => Array
                (
                    [Facebook] => Array
                        (
                            [enabled] => 1
                            [keys] => Array
                                (
                                    [id] => xxxxxxxxxxxxxxx
                                    [secret] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                )

                            [display] => popup
                        )

                )

        )

    [1] => 
    [2] => 
    [3] => 
)

Twitter:

Expection

Exception Object
(
    [message:protected] => Authentification failed! Twitter returned an error. 
    [string:Exception:private] => 
    [code:protected] => 5
    [file:protected] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Auth.php
    [line:protected] => 153
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Auth.php
                    [line] => 39
                    [function] => initialize
                    [class] => Hybrid_Auth
                    [type] => ::
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
                                    [providers] => Array
                                        (
                                            [Twitter] => Array
                                                (
                                                    [enabled] => 1
                                                    [keys] => Array
                                                        (
                                                            [key] => xxxxxxxxxxxxxxxxxxxxxx
                                                            [secret] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/authenticate.php
                    [line] => 98
                    [function] => __construct
                    [class] => Hybrid_Auth
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
                                    [providers] => Array
                                        (
                                            [Twitter] => Array
                                                (
                                                    [enabled] => 1
                                                    [keys] => Array
                                                        (
                                                            [key] => xxxxxxxxxxxxxxxxxxxxxx
                                                            [secret] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => Exception Object
        (
            [message:protected] => Authentification failed! Twitter returned an error. 
            [string:Exception:private] => 
            [code:protected] => 5
            [file:protected] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Provider_Model_OAuth1.php
            [line:protected] => 106
            [trace:Exception:private] => Array
                (
                    [0] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php
                            [line] => 140
                            [function] => loginBegin
                            [class] => Hybrid_Provider_Model_OAuth1
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [1] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Endpoint.php
                            [line] => 52
                            [function] => processAuthStart
                            [class] => Hybrid_Endpoint
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                    [2] => Array
                        (
                            [file] => /home/xxxxxx/public_html/wp-content/plugins/wordpress-social-login/hybridauth/index.php
                            [line] => 15
                            [function] => process
                            [class] => Hybrid_Endpoint
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                )

            [previous:Exception:private] => 
        )

)
HybridAuth

Array
(
    [0] => Array
        (
            [base_url] => http://xxxxxxxxx.com/wp-content/plugins/wordpress-social-login/hybridauth/
            [providers] => Array
                (
                    [Twitter] => Array
                        (
                            [enabled] => 1
                            [keys] => Array
                                (
                                    [key] => xxxxxxxxxxxxxxxxxxxxxx
                                    [secret] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                                )

                        )

                )

        )

    [1] => 
    [2] => 
    [3] => 
)

User Moderation = Admin Approval doesn't work

Hi,
I am using the latest WSL (2.2.3) with User Moderation set to Admin Approval (and has the latest Theme My Login installed - 6.3.10). The Admin never gets an email message saying there is a pending request for approval. However, I am able to "fix" the issue by using a hook to WSL in my theme's function.php. If you add these code before the do_action on the hook, it should fix the problem permanently. Here is my hook:
function HH_TML_mod_notice($in_user_id, $in_provider, $in_hy_user_prof) {
$HH_level = get_option( 'wsl_settings_bouncer_new_users_moderation_level' );
if( $HH_level == 101 ) {
@ Theme_My_Login_User_Moderation::new_user_activation_notification( $in_user_id );
}
elseif( $HH_level == 102 ) {
@ Theme_My_Login_User_Moderation::new_user_approval_admin_notification( $in_user_id );
}
return;
} // end HH_TML_moderation_notices
add_action('wsl_hook_process_login_after_wp_insert_user', 'HH_TML_mod_notice', 10, 3);

USing with Hide My Wp

Hello,

I have the Hide My Wp installed for security reasons but your plugin doesnt seem to be compatible with it?

It uses rewites to mask the actual roots but your plugin doesnt use them directories, how could i make it so it masks the wp-login.php...etc

406. The session identifier is missing on HHVM

I'm trying to get the plugin to login via Steam on my custom HHVM stack. I followed the guide to solve the session issues, such as caching, I am not running varnish or any cache at all. The only caching would be the memory cache built into hhvm but I restarted the server just in case and I still get the same problem.

Hopefully you can point me into the right direction to look here as I've ran out of ideas where to look. I see no errors in the hhvm php log (Where I started looking first)

Then I turned on Debug, and Development modes, and I noticed that a few steps had what appeared to be long execution times
wsl_process_login + http://MyWebSite.com/wp-login.php?action=wordpress_social_authenticate&mode=login&provider=Steam&red... 2015-01-12 09:43:55 183.645
I'm assuming execution time is that 183.645 but I'm not sure, the table has a triangle icon in the header for that column.

I am using a captcha, but I assume it's completely bypassed for social logins.

I checked the WordPress Social Login Diagnostics and got green OK all the way down, no problems here. I'm not using caching.

I've tried on wp-login.php and on a login widget on a page, with the same result. 406 Session ID is missing.

I just rechecked the HHVM log and the /var/sessions folder had the wrong user on it. SMH.
I made such a long post, I'm leaving it here. Problem fixed, this plugin rocks!

Where do we donate?

Seriously, this is one of the best open source projects (Hybrid + WSL). Where can we donate?

Not able to redirect on specific page after login

Hi,

Thanks for grate plugin.

I Have setup Redirect URL in customize tab.

After login it will not redirect to specif page, instead of that will redirect to my home page.

Do you know why i am facing this ? how can i solve this ?

Need to check redirect_to against both http and https

wsl.authentication.php line 525 should be enhanced to match both http and https.

if( set_url_scheme(get_option( 'wsl_settings_redirect_url' ), 'http') != site_url() && set_url_scheme(get_option( 'wsl_settings_redirect_url' ), 'https') != site_url()){
        $redirect_to = get_option( 'wsl_settings_redirect_url' );
}

changing username in create new user form has no effect

After user is redirected back, on create new account form, username change has no effect.
After a little digging I found the bug in the file " wordpress-social-login/includes/widgets/wsl.users.gateway.php
", line no 45.

$requested_user_login = isset( $_REQUEST["user_login"] ) ? trim( $_REQUEST["user_login"] ) : $hybridauth_user_login;

should be:

$requested_user_login = isset( $_REQUEST["user_name"] ) ? trim( $_REQUEST["user_name"] ) : $hybridauth_user_login;

Form is using "user_name" but when getting the data wrong field name is used.

Role / Entry Data Redirection

Hi, this really isn't an issue but looking around your code trying to find a solution for a use case I have.

While I'm not using default WP roles, I can, but I have 3 entry points for visitors primarily.

  1. Standard Login redirect to a user dashboard
  2. User Type A registers/logs in and is redirected to Page A
  3. User Type B registers/logs in and is redirects to page B

Is this something I can plug into with the available hooks? Can I pass data through the hooks and redirect based on that data? Is there an alternative method using your existing code base?

Great plugin overall though
Thanks!

WSL 2.1.3 and OpenID provider login returns error in LightOpenID.php

Hello all. Has anyone had problems using OpenID type providers with WSL 2.1.3 and WordPress 3.5.1? I'm running on Mac OS X 10.8.2's built-in Apache 2 HTTP server). Yahoo's older OpenID interface (https://me.yahoo.com), Stackoverflow and my new provider I'm trying to integrate all return this after successful authentication:

Warning: strpos() [function.strpos]: Offset not contained in string in /opt/wordpress/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OpenID/LightOpenID.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /opt/wordpress/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OpenID/LightOpenID.php:87) in /opt/wordpress/wp-includes/pluggable.php on line 680

Warning: Cannot modify header information - headers already sent by (output started at /opt/wordpress/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OpenID/LightOpenID.php:87) in /opt/wordpress/wp-includes/pluggable.php on line 681

Warning: Cannot modify header information - headers already sent by (output started at /opt/wordpress/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OpenID/LightOpenID.php:87) in /opt/wordpress/wp-includes/pluggable.php on line 682

Warning: Cannot modify header information - headers already sent by (output started at /opt/wordpress/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OpenID/LightOpenID.php:87) in /opt/wordpress/wp-includes/pluggable.php on line 876

I just used the stock plugin, activated it, enabled Stackoverflow then tried to login. I only have done zero customization of WordPress. It has the default theme and two plugins: aki something and hello dolly. I deleted them both just to get rid of any interactions.

I've successfully logged into these sites using hybridauth 2.1.2 directly outside of WordPress on my same web server. I've also tried this in both Chrome and Safari browsers.

WSL 1.2.2 works find on my WordPress 3.5.1 site with these providers.

Any suggestions on how to troubleshoot this are much appreciated!

Thank you,
Mark

Performance: Admin UI should not be loaded for AJAX requests

As per the advice from Yoast (https://yoast.com/separate-frontend-admin-code/). We should only load admin the components when they are needed. Currently the admin UI is loaded on every AJAX request. I've done some benchmarks to verify the impact:

No plugin:
432 ms
431 ms
435 ms
434 ms
469 ms
468 ms
433 ms
432 ms
445 ms
444 ms
Average: 442ms

WordPress Social Login activated:
493 ms
492 ms
477 ms
476 ms
450 ms
449 ms
485 ms
483 ms
465 ms
464 ms
Average: 473ms

WordPress Social Login optimized:
429 ms
428 ms
427 ms
426 ms
426 ms
425 ms
439 ms
437 ms
429 ms
427 ms
Average: 429ms

This is running a dedicated SSD server so the impact seems small, though we are looking at a 9% increase in speed in AJAX calls (473ms > 429ms).

Performance evaluation roadmap:
AJAX calls [proposed]
Front end interface
Admin interface

WSL end-points

Hello,
Today i explore WSL 2.2.3 on my development site. and i found this (on image)
capture
i still don't understand what it mean.
i try to access the link given, and i can see some message
capture2 but on right table it say FAIL!

Error: WSL end-points urls are not reachable.

If your hosting provider is using mod_security then request to whitelist your domain (HostGator and GoDaddy are known to have mod_security enabled)

This error may also happen when a .htaccess file is set to prevent direct access to the WordPress plugins directory.

Whether you are using mod_security or a .htaccess file, WSL will requires these two urls to be white-listed:

  1. http://hrace009.XXX.com/login/
  2. http://hrace009.XXX.com/wp-content/plugins/wordpress-social-login/hybridauth/

btw i am not using GoDaddy, i host it on my personal server (Dedicated) using Apache and FastCGI PHP 5.4

Odnoklassinki - Unspecified error. #6

Can't login via Odnoklassniki because of this error. I followed the link from the debug output:

http://api.odnoklassniki.ru/fb.do?application_key=&method=users.getCurrentUser&sig=07aa4538101f8bad57a0a121b60612d2&access_token=57ipa.51-1c8y0282a6g31136b3k1bsrva8

And got this message:
<error_code>101</error_code>
<error_msg>PARAM_API_KEY : Application not exist</error_msg>

So the problem probably is the empty application_key parameter value.

Is there any workaround? Thanks.

Error: Facebook SDK is auto-included by another plugin - Can this be solved?

WordPress Social Login is an outstanding plugin, well documented and easy to install. All social logins work perfectly except Facebook. It seems that the Facebook login conflicts with the Facebook SDK loaded by SEO Facebook Comments. The error message is as follows:

Oops! We ran into an issue. Unspecified error. ξ Confilict detected. Facebook SDK is already loaded by another package. Initialization failed, exit.

The plugin diagnostics give the following message:

Error: Facebook SDK is auto-included by another plugin. This will prevent Facebook from working.

Please, inform the developer of that plugin not to auto-include the file below and to use Facebook SDK only when required. /var/www/web286/html/focusingonwildlife/test-platform5/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php

It is not possible to deactivate SEO Facebook Comments as this is the commenting system on our website.

At the same time we would still like to be able to install Wordpress Social Login because it is the best plugin of its kind available today.

Surely there must be a way to to change the coding, so that both plugins can function with the Facebook SDK in parallel?

Please advise.

Already registered user

When accessing with an already registered user (NOT registered via WSL):

  1. no new user is created CORRECT
  2. no feedback is given
    nor
  3. no join between the users is made

WP Social Login plugin takes an unnecessarily long time to load

As per the conversion on https://wordpress.org/support/topic/takes-50-of-all-plugins-load-time, this plugin is taking quite a while to load compared to other plugins.

Using https://wordpress.org/plugins/p3-profiler/ to track performance, I was able to tweak some things in your initial .php file to go from average 0.5 seconds of load time to 0.05 seconds of load time. But there are other pages which may still take over 4 before your plugin has finished loading.

If I get a change I may try to Fork and do a pull-request. In the meantime, I recommend looking at that profiler just so you can see for yourself how it is stacking up against other times including WP_Core and your own theme.

Unspecified error. #0

After Login with anything network return “Unspecified error. #0”

What is the problem?

Thanks!!

Use `esc_attr` in admin forms

Hi there, thanks for the plugin! While testing it, I came across this little point:

When I enter text with a quote, the admin form goes beserk, this can be fixed by using esc_atrr() around the get_option.

Code line number example https://github.com/miled/wordpress-social-login/blob/master/includes/admin/components/login-widget/wsl.components.loginwidget.setup.php#L80

Gebruik je favoriete netwerk <span class="highlight">aanbevolen</span>

screen shot 2015-04-16 at 16 55 43

More informatie about WordPress Data Validation https://codex.wordpress.org/Data_Validation#Attribute_Nodes
http://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data

Adios,

Jaime!

Redirect to existing redirect_to if avail

Right now, we override an existing redirect_to URL param on the wsl.auth.widget.php

About line 100 make a change similar to this (I will do a pull request but I have one blocking right now).

        $redirect_to_url = (isset($_GET['redirect_to'])) ? $_GET['redirect_to'] : urlencode( $current_page_url );
        $authenticate_url = $authenticate_base_url . "provider=" . $provider_id . "&redirect_to=" . $redirect_to_url;

<pre>!!!

Just took 2 hours to find out that when you copy the shortcode to the wordpress editor that you get a < pre > tag around it. Maybe you can warn people about it. I am not a wordpress beginner at all, but that just tripped me up big time, as I usually do not use many shortcodes nor do I copy them.

Anyway,
great plugin! Thank you,
Sascha

TWITCH.TV - User Authentication requests Stream Key - Security concern

Currently when you connect your twitch account through the application, you use a scope the requests the email and the stream key. I have a lot of people showing concerns about giving their stream key to my database cause that means I can (if I had ill intents) use their stream key to stream on their channel. This is a major security flaw that should at least be considered.

image

This looks like it's using scope channel_read instead of user_read

Source - https://github.com/justintv/Twitch-API/blob/master/authentication.md#scopes
channel_read: Read access to non-public channel information, including email address and stream key.
user_read: Read access to non-public user information, such as email address.

Is there a way to make it work for user_read instead?

Thanks!

What license is it?

In the readme file the license is MIT and in the header of the wp-social-login.php it is GPL2 (which maybe should be GPLv2)

Which one is the right one for the whole plugin? I am totally pro MIT but I think it is just a typo in one of the files. Dual licensing is also possible.

I am not a lawyer or totally into licensing but it just jumped out at me.

Wordpress social login e-mail validation not working.

Hello,

We are using this great plugin Wordpress Social Login. It has a new feature that lets Twitter and Linkedin users validate their e-mail address after loging in (otherwise a random address would be generated).

However, I tried using the new e-mail validation feature for twitter and linkedin users and some things are not working properly on our website:

  1. After logging the user is redirected to the new "enter your e-mail" section. The message in the yellow box ("Please enter your e-mail address is not shown, just the yellow box' outline). The customized "connected with text" and "submit button text" are shown properly though.
  2. After entering a valid e-mail address there the user is taken to url http://www.hybridauth.com/cms/wordpress/wp-login.php and that page doesn´t load.

I mentioned this problem to the plugin author who advised to enter it here on github.com.

Thanks for your reply in advance!

Emiel

Users avatars

the plugin always call social avatar even if I uploaded my own on buddypress

SSL Security Warning in WP Admin

Due to screenshots on the plugin page NOT requested over SSL.

Example: http://hybridauth.sourceforge.net/userguide/img/setup/twitter/1.png

in: includes/admin/components/networks/wsl.components.networks.setup.php

Copyright question

Hello!

I want to incorporate part of the source code into my project which is intended to be a commercial extension for Wordpress. I know that your plugin is under MIT license but I want to use just part of the code.

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.