Skip to content

Commit

Permalink
fixed example by retrieving datacenter value from metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fmhun committed Jun 11, 2012
1 parent 2cc10dc commit 338b582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end
get '/auth/:provider/callback' do
content_type 'text/plain'
token = request.env['omniauth.auth']['credentials']['token']
dc = request.env['omniauth.auth']['extra']['user_hash']['dc']
dc = request.env['omniauth.auth']['extra']['metadata']['dc']
"Standard API key is #{token}-#{dc}".inspect rescue "No data"
end

Expand Down

0 comments on commit 338b582

Please sign in to comment.