Merge Request #5

Merged
softwarepublico/omniauth-remote-user!5
Created by Sergio Oliveira

Cookie httponly

Set the httponly flag on _remote_user cookie.

Assignee: Macartur Sousa
Milestone: None

Merged by Macartur Sousa

Commits (1)
2 participants
lib/omniauth/strategies/remote_user.rb
... ... @@ -48,7 +48,7 @@ module OmniAuth
48 48 request = Rack::Request.new(env)
49 49 response = redirect_if_not_logging_in(request,_auth_path(request) )
50 50 if response
51   - response.set_cookie(options.internal_cookie, {value: uid , path: "#{request.script_name}"})
  51 + response.set_cookie(options.internal_cookie, {value: uid, path: "#{request.script_name}", httponly: true})
52 52 response.finish
53 53 end
54 54 end
... ...