Merge Request #1
← To merge requests
From
gitlab_integration
into
master
Commits (18)
-
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
- 8 of 18 commits displayed. Click here to show all
-
I don't see the login cookie being deleted ... will this even work?
-
The login cookie from rails is deleted when the request.session.clear is called.
-
ah, ok
started a discussion
on the diff
lib/omniauth/strategies/remote_user.rb
37 | 36 | |
38 | 37 | def __logout(env) |
39 | 38 | request = Rack::Request.new(env) |
40 | - response = redirect_if_not_logging_in(request, request.path) | |
39 | + request.session.clear | |
40 | + response = redirect_if_not_logging_in(request, request.path ) | |
41 | 41 | if response |
42 | - response.delete_cookie(options.cookie) | |
43 | - response.delete_cookie(options.internal_cookie) | |
44 | - response | |
42 | + response.delete_cookie(options.internal_cookie , path: "#{request.script_name}" ) | |
3 |
|