Permalink
Browse files

fixed example by retrieving datacenter value from metadata

  • Loading branch information...
1 parent 2cc10dc commit 338b582066a2b89faceeaea10c743e0282ab4c3e @fmhun committed Jun 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/config.ru
View
@@ -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

0 comments on commit 338b582

Please sign in to comment.