Closed Streek closed 11 years ago
Hey @Streek, I'm having the exact same problem.A fresh rails app with just the omniauth_steam gem added. What can I do to resolve this issue?
Thanks in advance.
Getting the same issue, this has been here for 7 months, awesome!!!
Have you guys resolved the problem?
Nope, I didn't. But I'm aware of an open source rails app that uses steam open id login successfully, maybe it's worth checking the source code out: https://github.com/Arie/serveme
dude i got mine to work, in my initialisers i had
provider :steam, ENV[KEY]
i remove the ENV and just had the 'key' as such.
@reu are you actively maintaining this project?
@nicatronTg I am sorry for not giving the required attention to this project for the last months. Today I will try close all the issues/bugs, as well improve the documentation (and hopefully add an usage example).
Anyway, I don't think this a bug. This is more like a "bad documentation bug". I will update the README, as the put-the-configuration-keys-on-environment-variables I used as example are clearly causing lots of confusion.
When you configure a provider, the second argument should be your Steam Web API key that you can claim here (note that the Web API Key is domain bound, so, to test the server on localhost for instance, you must create a key for "localhost" on Steam).
For example, if my api key is "mykey123", I would need to have the following configuration:
provider :steam, "mykey123"
With that stated, I am closing this for now. If someone does happen to find a bug related to this, I would gladly accept a patch.
Steam accepts my API key just fine on localhost
.
@nTraum, Steam used to accept mine too, but it was not working yesterday while I was implementing an example app.
/Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/omniauth-1.1.1/lib/omniauth.rb:95:in'
Keith-Connollys-MacBook-Pro:randomsteamgame streek$
add_camelization': undefined method
[]=' for nil:NilClass (NoMethodError) from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/omniauth-openid-1.0.1/lib/omniauth/strategies/open_id.rb:121:in<top (required)>' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/omniauth-steam-1.0.0/lib/omniauth/strategies/steam.rb:3:in
module:Strategies' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/omniauth-steam-1.0.0/lib/omniauth/strategies/steam.rb:2:in<module:OmniAuth>' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/omniauth-steam-1.0.0/lib/omniauth/strategies/steam.rb:1:in
<top (required)>' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/omniauth-steam-1.0.0/lib/omniauth-steam.rb:2:inrequire' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/omniauth-steam-1.0.0/lib/omniauth-steam.rb:2:in
<top (required)>' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:inrequire' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in
block (2 levels) in require' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:ineach' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in
block in require' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:ineach' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in
require' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler.rb:128:inrequire' from /Users/streek/Dropbox/Website Development/randomsteamgame/config/application.rb:7:in
<top (required)>' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:53:inrequire' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:53:in
block in <top (required)>' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:intap' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in
<top (required)>' from script/rails:6:inrequire' from script/rails:6:in