X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5620a47e20e004188e0f1d0245ae9e916575e806..ce3845c8ce108518832ea6ad9a10bb9b98a48174:/services/api/app/models/api_client_authorization.rb diff --git a/services/api/app/models/api_client_authorization.rb b/services/api/app/models/api_client_authorization.rb index e90d7980cd..fca57dce8f 100644 --- a/services/api/app/models/api_client_authorization.rb +++ b/services/api/app/models/api_client_authorization.rb @@ -5,8 +5,9 @@ class ApiClientAuthorization < ArvadosModel belongs_to :api_client belongs_to :user after_initialize :assign_random_api_token + serialize :scopes, Array - api_accessible :superuser, :extend => :common do |t| + api_accessible :user, extend: :common do |t| t.add :owner_uuid t.add :user_id t.add :api_client_id @@ -16,6 +17,7 @@ class ApiClientAuthorization < ArvadosModel t.add :expires_at t.add :last_used_at t.add :last_used_by_ip_address + t.add :scopes end def assign_random_api_token