Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nogweii
Last active August 29, 2015 13:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nogweii/9363423 to your computer and use it in GitHub Desktop.
Save nogweii/9363423 to your computer and use it in GitHub Desktop.
steam login plugin for discourse
# name: discourse-steam
# about: VALVE's Steam login support for Discourse
# version: 0.0.1
# authors: Colin Shea
auth_provider :title => 'with Steam',
:authenticator => Auth::OpenIdAuthenticator.new('steam','http://steamcommunity.com/openid', trusted: true),
:message => 'Authenticating with Steam (make sure pop up blockers are not enabled)',
:frame_width => 1000, # the frame size used for the pop up window, overrides default
:frame_height => 800
# Discourse ships with Zocial, which includes a Steam icon already!
register_css <<CSS
.btn-social.steam {
background: #000;
color: #EFE;
}
.btn-social.steam:before {
content: "b";
}
CSS
@defaye
Copy link

defaye commented Jul 27, 2014

I've created a complete Discourse Steam plugin available here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment