X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/81ff58f4addd05346161a9b44648d1ab31e027bc..3e975aa25c141ccd3f08335906d96d9ff7035bf2:/services/api/lib/current_api_client.rb?ds=sidebyside diff --git a/services/api/lib/current_api_client.rb b/services/api/lib/current_api_client.rb index 98112c858b..953047005b 100644 --- a/services/api/lib/current_api_client.rb +++ b/services/api/lib/current_api_client.rb @@ -189,6 +189,16 @@ module CurrentApiClient end end + def system_root_token_api_client + $system_root_token_api_client = check_cache $system_root_token_api_client do + act_as_system_user do + ActiveRecord::Base.transaction do + ApiClient.find_or_create_by!(is_trusted: true, url_prefix: "SystemRootToken") + end + end + end + end + def empty_collection_pdh 'd41d8cd98f00b204e9800998ecf8427e+0' end