Commit 95890408 authored by Gabriel Mazetto's avatar Gabriel Mazetto

whitelisted additional API so gitlab-shell can authenticate with Geo

parent 04559221
...@@ -49,7 +49,8 @@ module Gitlab ...@@ -49,7 +49,8 @@ module Gitlab
end end
def whitelisted_routes def whitelisted_routes
logout_route || @request.path.include?('api/v3/geo/refresh_projects') whitelisted = %w(api/v3/internal api/v3/geo/refresh_projects)
logout_route || whitelisted.any? { |path| @request.path.include?(path) }
end end
def logout_route def logout_route
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment