Title: WP Steam Auth
Author: Konrad Chmielewski
Published: <strong>2016 年 10 月 3 日</strong>
Last modified: 2017 年 4 月 29 日

---

搜索插件

![](https://ps.w.org/wp-steam-auth/assets/banner-772x250.png?rev=1648187)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/wp-steam-auth/assets/icon-256x256.png?rev=1648189)

# WP Steam Auth

 作者：[Konrad Chmielewski](https://profiles.wordpress.org/hwk-fr/)

[下载](https://downloads.wordpress.org/plugin/wp-steam-auth.0.6.4.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-steam-auth/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-steam-auth/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-steam-auth/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-steam-auth/#developers)

 [支持](https://wordpress.org/support/plugin/wp-steam-auth/)

## 描述

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:

 * Improved version of [PHP library Steam Authentification](https://github.com/SmItH197/SteamAuthentication)
   by SmItH197 ([demo](http://bensmith.in/steam/))
 * [The original Steam Openid script](http://pastebin.com/6vZT4RhD) by JTX
 * [The LightopenID library](http://gitorious.org/lightopenid)

#### My Other Plugins:

 * [WP 404 Auto Redirect to Similar Post](https://wordpress.org/plugins/wp-404-auto-redirect-to-similar-post/)
 * [WP G2A Goldmine CD Keys Affiliate](https://wordpress.org/plugins/wp-g2a-goldmine-cd-keys-affiliate/)

## 屏幕截图

[⌊WP Steam Auth Settings⌉⌊WP Steam Auth Settings⌉[

WP Steam Auth Settings

[⌊WP Users Dashboard⌉⌊WP Users Dashboard⌉[

WP Users Dashboard

[⌊WP User Profile with "Steam" section⌉⌊WP User Profile with "Steam" section⌉[

WP User Profile with “Steam” section

## 安装

#### 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(); } ?>`

## 常见问题

  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.

## 评价

![](https://secure.gravatar.com/avatar/0a0128dff3bbd8d1d5d1b37a8b02d508222d6b09493c6db4f63cfe085f93b39d?
s=60&d=retro&r=g)

### 󠀁[Works but…](https://wordpress.org/support/topic/works-but-60/)󠁿

 [arrdiendo4](https://profiles.wordpress.org/arrdiendo4/) 2018 年 4 月 4 日

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.

![](https://secure.gravatar.com/avatar/59a5afc2eccd6b8dd4cb271a5cf3d4164fca3a2e5717195d18c70318af1118df?
s=60&d=retro&r=g)

### 󠀁[It does work](https://wordpress.org/support/topic/it-doesnt-work-175/)󠁿

 [m1stik](https://profiles.wordpress.org/m1stik/) 2018 年 3 月 10 日

This awesome plugin is actually working.

![](https://secure.gravatar.com/avatar/733f97fa734490dc6c2f53516f57161ac6263e203412e842d10e951cfa9188e6?
s=60&d=retro&r=g)

### 󠀁[It’s not working](https://wordpress.org/support/topic/its-not-working-90/)󠁿

 [rolzan](https://profiles.wordpress.org/rolzan/) 2018 年 2 月 13 日

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).

![](https://secure.gravatar.com/avatar/8b00eadeff1c49ad4ae5875e60063b1dd3a4f4f3d277ba4bed6b6a5227e30a8b?
s=60&d=retro&r=g)

### 󠀁[Super fast and easy steam auth intergration](https://wordpress.org/support/topic/super-fast-and-easy-steam-auth-intergration/)󠁿

 [csgoant](https://profiles.wordpress.org/csgoant/) 2017 年 5 月 4 日

Easier than any openid implementation for wordpress and steam

![](https://secure.gravatar.com/avatar/a0a06fad60c5420407cf6863f05df494e9ffe25de0903792fbe5d0c0ef1083ad?
s=60&d=retro&r=g)

### 󠀁[Removed](https://wordpress.org/support/topic/documentation-missing/)󠁿

 [toooni](https://profiles.wordpress.org/toooni/) 2017 年 4 月 10 日 1 回复

Please delete, i can’t do it myself…

![](https://secure.gravatar.com/avatar/0b35985ae0c9fe3155d471bd454c4d29319b10fdd30be3205c59506360913a43?
s=60&d=retro&r=g)

### 󠀁[Great plugin, great support](https://wordpress.org/support/topic/great-plugin-great-support-530/)󠁿

 [Mihael](https://profiles.wordpress.org/mihael/) 2016 年 11 月 30 日

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

 [ 阅读所有9条评价 ](https://wordpress.org/support/plugin/wp-steam-auth/reviews/)

## 贡献者及开发者

「WP Steam Auth」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Konrad Chmielewski ](https://profiles.wordpress.org/hwk-fr/)

[帮助将「WP Steam Auth」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-steam-auth)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-steam-auth/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-steam-auth/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-steam-auth/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-steam-auth/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **0.6.4**
 *  最后更新：**9 年前**
 *  活跃安装数量 **70+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-steam-auth/)
 * 标签
 * [oauth](https://cn.wordpress.org/plugins/tags/oauth/)[OpenID](https://cn.wordpress.org/plugins/tags/openid/)
   [Steam](https://cn.wordpress.org/plugins/tags/steam/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-steam-auth/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/wp-steam-auth/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/wp-steam-auth/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-steam-auth/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-steam-auth/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/wp-steam-auth/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-steam-auth/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-steam-auth/reviews/)

## 贡献者

 *   [ Konrad Chmielewski ](https://profiles.wordpress.org/hwk-fr/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-steam-auth/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://hwk.fr/)