Skip to content

Commit

Permalink
dont store the token in the cookie, use in-memory sessions instead
Browse files Browse the repository at this point in the history
  • Loading branch information
izuzak committed May 14, 2014
1 parent 291b814 commit ab012fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/ruby/basics-of-authentication/advanced_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
CLIENT_ID = ENV['GH_BASIC_CLIENT_ID']
CLIENT_SECRET = ENV['GH_BASIC_SECRET_ID']

use Rack::Session::Cookie, :secret => rand.to_s()
use Rack::Session::Pool, :cookie_only => false

def authenticated?
session[:access_token]
Expand Down

0 comments on commit ab012fb

Please sign in to comment.