WP Steam Auth

Plugin Banner

WP Steam Auth

by Konrad Chmielewski

Download
Description

This plugin will let your visitors register & login to your WordPress via their Steam account using one and unique button.

All new authentification will create a new WordPress legacy user and will be automatically logged in the process. Once they are registered via Steam, users may login to your WordPress using the same Steam button.

Old WP users (registered before the plugin activation) have the possibility to synchronize their account with Steam once loggedin with the legacy WordPress system.

Note: WP Steam Auth Plugin is fully compatible with WordPress & Buddypress. Steam profile data is stored in the WP_user meta data. WP Steam Auth doesn’t interfere with the legacy WP Login/Registration system, it means that you’ll be always able to login with the legacy method.

Features:

  • Register/Login with one unique button
  • Automatically create a new WordPress legacy user
  • Automatically Upload the Steam avatar during registration
  • Choose to use the wordpress avatar or the steam avatar
  • Synchronize button available for old WP Users
  • Customize the Post-login & Post-Logout URL, or use Referer instead
  • Customize URLs & base slugs (Login / Sync. / Logout)
  • Login/Register via a popup for a better user experience
  • Manage users Steam synchronization in WP users dashboard
  • Force ReSync. for specific (or bulk) users
  • Remove Sync. for specific (or bulk) users

Contributions:

My Other Plugins:

WordPress Install

  1. Upload the plugin files to the /wp-content/plugins/wp-steam-auth directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Setup your Steam API via: http://steamcommunity.com/dev/apikey
  4. Use the Settings->Steam Auth screen to configure the plugin
  5. Add the shortcode [wp_steam_auth] in your page or use available php functions

Available Shortcode

  • [wp_steam_auth]
  • [wp_steam_auth login_text="Login via Steam"]
  • [wp_steam_auth login_class="my_class1 my_class2"]
  • [wp_steam_auth login_image="http://..."]
  • [wp_steam_auth logout_text="Logout"]
  • [wp_steam_auth logout_class="my_class1 my_class2"]
  • [wp_steam_auth logout_image="http://..."]
  • [wp_steam_auth show_sync="1"]
  • [wp_steam_auth sync_text="Synchronize"]
  • [wp_steam_auth sync_class="my_class1 my_class2"]
  • [wp_steam_auth sync_image="http://..."]

Available PHP Functions

  • <?php wpsap_button_login(); ?>
  • <?php wpsap_button_sync(); ?>
  • <?php wpsap_button_loggout(); ?>
  • <?php echo wpsap_button_login_url(); ?>
  • <?php echo wpsap_button_sync_url(); ?>
  • <?php echo wpsap_button_loggout_url(); ?>
  • <?php if(!wpsap_is_user_synced()){ wpsap_button_sync(); } ?>
  1. WP Steam Auth Settings

    WP Steam Auth Settings

  2. WP Users Dashboard

    WP Users Dashboard

  3. WP User Profile with "Steam" section

    WP User Profile with "Steam" section

Installation Instructions

WordPress Install

  1. Upload the plugin files to the /wp-content/plugins/wp-steam-auth directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Setup your Steam API via: http://steamcommunity.com/dev/apikey
  4. Use the Settings->Steam Auth screen to configure the plugin
  5. Add the shortcode [wp_steam_auth] in your page or use available php functions

Available Shortcode

  • [wp_steam_auth]
  • [wp_steam_auth login_text="Login via Steam"]
  • [wp_steam_auth login_class="my_class1 my_class2"]
  • [wp_steam_auth login_image="http://..."]
  • [wp_steam_auth logout_text="Logout"]
  • [wp_steam_auth logout_class="my_class1 my_class2"]
  • [wp_steam_auth logout_image="http://..."]
  • [wp_steam_auth show_sync="1"]
  • [wp_steam_auth sync_text="Synchronize"]
  • [wp_steam_auth sync_class="my_class1 my_class2"]
  • [wp_steam_auth sync_image="http://..."]

Available PHP Functions

  • <?php wpsap_button_login(); ?>
  • <?php wpsap_button_sync(); ?>
  • <?php wpsap_button_loggout(); ?>
  • <?php echo wpsap_button_login_url(); ?>
  • <?php echo wpsap_button_sync_url(); ?>
  • <?php echo wpsap_button_loggout_url(); ?>
  • <?php if(!wpsap_is_user_synced()){ wpsap_button_sync(); } ?>

Do I need a Steam API key?

Yes, you can get one for free here: http://steamcommunity.com/dev/apikey

How can I display the “Login via Steam” button?

Use the following Shortcode:

  • [wp_steam_auth]

Or the following PHP functions:

  • <?php wpsap_button_login(); ?>
  • <?php wpsap_button_sync(); ?>
  • <?php wpsap_button_loggout(); ?>
  • <?php echo wpsap_button_login_url(); ?>
  • <?php echo wpsap_button_sync_url(); ?>
  • <?php echo wpsap_button_loggout_url(); ?>
  • <?php if(!wpsap_is_user_synced()){ wpsap_button_sync(); } ?>

What is the “Force ReSync.” feature?

This will instantly logout the user. On the next login with Steam, the WP Steam Profile will be updated with latest Steam data (Profile URL, Avatar, Sync. date etc…)

What is the “Remove Sync.” feature?

This will instantly logout the user & remove the WP Steam Profile. The user won’t be able to log back via Steam. He will need to login via legacy WP method and then synchronize manually. Cannot be undone.

Works but...

By arrdiendo4 on April 4, 2018

Yes it works, but I want to do a feature request(IDK if I'll get any response as last update of plugin was 11 months ago but let's try). Soooo... Is possible an update adding an option like "if it's the first user login with that steam account ask to put an e-mail adress to create the account"? Like websites that allow you to log-in with google+/facebook but they need some more info to complete registration. Would an option like that possible? Thanks for reading.

It does work

By m1stik on March 10, 2018

This awesome plugin is actually working.

It's not working

By rolzan on February 13, 2018

I've got the same problem with this guy: https://wordpress.org/support/topic/http-error-500-21/ And I figured that the guy's thread is abandoned by the plugin author. Basically 500 internal error with the default settings, and when doing the plugin author's suggestions, I got rid of the 500 internal error but it's still not working (not able to login with steam).

Super fast and easy steam auth intergration

By csgoant on May 4, 2017

Easier than any openid implementation for wordpress and steam

Removed

By toooni on April 10, 2017

Please delete, i can't do it myself...

Great plugin, great support

By Mihael on November 30, 2016

Works great... Needed support regarding a special situation I had on my site and the plugin author was very helpful - Thank you very much!

Awesome

By idpokute on October 24, 2016

I was planning to make new website with steam information. I was looking for this kind of plugin to handle user information. It's not even ver 1, but it is still doing good job. Thanks

Fatal Error can't activate script

By zackcrisis on October 17, 2016

Don't know if my wp install is faulty but got this error when trying to activate the plugin : Fatal error: Can't use function return value in write context in /var/www/wp-content/plugins/wp-steam-auth/wp-steam-auth.php on line 263

Need to change the code

By nexolight on October 9, 2016

Not sure about the slug thing but you should mention that it works by opening the urls: index.php?wpsap_action=login index.php?wpsap_action=logout index.php?wpsap_action=sync index.php?wpsap_action=logged would work. However it redirects me to mysite/logged which does not exist.

0.6.4

  • Added Shortcode functionality: [wp_steam_auth]. More details on settings page.

0.6.3

  • Fixed Javascript bug on popup closure when website use hashtags.

0.6.2

  • Fixed a bug for PHP < 5.5 version: “Can’t use function return value in write context”

0.6.1

  • Added Buddypress compatibility: Avatars via bp_avatar_filter()

0.6.0.3

  • Fixed typo & code

0.6.0.1

  • Fixed screenshots with description

0.6

  • Added JS in admin for better UX
  • Added WP Users dashboard Sync date
  • Added Steam Profile section in the WP User Profile
  • Added to capatibility to force ReSync. for specific users (This will instantly logout the user. On the next login with Steam, the WP Steam Profile will be updated with latest Steam data: Profile URL, Avatar, Sync. date etc…)
  • Added to capatibility to Remove Sync. for specific users (This will remove the WP Steam Profile. The user won’t be able to log back via Steam. He will need to login via legacy WP method and then synchronize manually.)
  • Improved code & requires

0.5.2

  • Added URL Rewriting Settings (Login / Sync / Logout)
  • Added Logout Redirection + Referer options
  • Improved code

0.5.0.2

  • Removed session_start()

0.5.0.1

  • Checking if LightOpenID already exists before require
  • Better ABS path names
  • Better custom filters names
  • Better session_start encapsulation
  • Removed ob_start()

0.5

  • Initial Release
Back to top