Merge branch 'main' from workbench2.git
[arvados.git] / services / api / config / initializers / authorization.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require_relative "../../app/middlewares/arvados_api_token"
6
7 Server::Application.configure do
8   config.middleware.delete ActionDispatch::RemoteIp
9   config.middleware.insert 0, ActionDispatch::RemoteIp
10   config.middleware.insert 1, ArvadosApiToken
11 end