Do not blow up on node create when the ec2 configuration values are not
[arvados.git] / services / api / app / models / api_client_authorization.rb
index e90d7980cd682192281f921fdab0b4ee2a7075eb..fca57dce8f4d0eb3331c05d442e9fe0fa94f399a 100644 (file)
@@ -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