reu / omniauth-steam

Steam authentication strategy for OmniAuth
93 stars 38 forks source link

add_camelization #2

Closed Streek closed 11 years ago

Streek commented 12 years ago

/Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/omniauth-1.1.1/lib/omniauth.rb:95:in 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:inmodule: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:in require' 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:in require' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:inblock (2 levels) in require' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in each' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:inblock in require' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in each' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:inrequire' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.1/lib/bundler.rb:128:in require' 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:in require' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:53:inblock in <top (required)>' from /Users/streek/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in tap' 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:in require' from script/rails:6:in

' Keith-Connollys-MacBook-Pro:randomsteamgame streek$

nTraum commented 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.

glennmartinez commented 11 years ago

Getting the same issue, this has been here for 7 months, awesome!!!

Have you guys resolved the problem?

nTraum commented 11 years ago

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

glennmartinez commented 11 years ago

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.

hakusaro commented 11 years ago

@reu are you actively maintaining this project?

reu commented 11 years ago

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

nTraum commented 11 years ago

Steam accepts my API key just fine on localhost.

reu commented 11 years ago

@nTraum, Steam used to accept mine too, but it was not working yesterday while I was implementing an example app.