1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class ApiClient < ArvadosModel
8 include CommonApiTemplate
9 has_many :api_client_authorizations
11 api_accessible :user, extend: :common do |t|
18 (from_trusted_url && Rails.configuration.Login.TokenLifetime == 0) || super
24 norm(self.url_prefix) == norm(Rails.configuration.Services.Workbench1.ExternalURL) ||
25 norm(self.url_prefix) == norm(Rails.configuration.Services.Workbench2.ExternalURL)
29 # normalize URL for comparison
31 if url.scheme == "https"
34 if url.scheme == "http"