{"issue":{"created_at":"2011-12-04T21:48:37Z","state":"closed","updated_at":"2011-12-05T13:54:58Z","comments":10,"user":{"gravatar_id":"c145c05dc5f14c8644b2f4c07eaf0ff6","id":13223,"url":"https://api.github.com/users/fluxsaas","avatar_url":"https://secure.gravatar.com/avatar/c145c05dc5f14c8644b2f4c07eaf0ff6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"fluxsaas"},"body":"Hey,\r\ni had some problems getting the consumer app up and running with the current oauth2 gem. here is what i have changed:\r\n\r\n#### consumer.rb\r\n\r\n    get '/auth/test' do  \r\n      redirect client.auth_code.authorize_url(:redirect_uri => redirect_uri)\r\n    end  \r\n  \r\n    get '/auth/test/callback' do  \r\n      access_token = client.auth_code.get_token(params[:code], :redirect_uri => redirect_uri )\r\n      puts access_token.inspect\r\n      session[:access_token] = access_token.token\r\n      @message = JSON.parse(access_token.get('/api/users.json').body)\r\n      erb :success\r\n    end  \r\n\r\nits the code form the example @ https://github.com/intridea/oauth2\r\n","assignee":{"gravatar_id":"012f4052c6fb1a600a3e4f39e1f2439a","id":477511,"url":"https://api.github.com/users/Gazler","avatar_url":"https://secure.gravatar.com/avatar/012f4052c6fb1a600a3e4f39e1f2439a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Gazler"},"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2443960,"number":3,"labels":[],"title":"update to oauth2 v0.5.1","html_url":"https://github.com/Gazler/Oauth2-Tutorial/issues/3","closed_at":"2011-12-05T13:54:58Z","url":"https://api.github.com/repos/Gazler/Oauth2-Tutorial/issues/3","milestone":null},"action":"created","comment":{"created_at":"2011-12-05T13:54:58Z","updated_at":"2011-12-05T13:54:58Z","user":{"gravatar_id":"012f4052c6fb1a600a3e4f39e1f2439a","id":477511,"url":"https://api.github.com/users/Gazler","avatar_url":"https://secure.gravatar.com/avatar/012f4052c6fb1a600a3e4f39e1f2439a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Gazler"},"body":"That explains it then!\r\n\r\nGenerally, it would be up to the developer to skip the before filters that are inherited.  I don't feel like re-recording the screencasts to add that in!  I will add a common issues section to the tutorial.  :)","id":3017191,"url":"https://api.github.com/repos/Gazler/Oauth2-Tutorial/issues/comments/3017191"}}