projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
API server /collections/uuid/provenance endpoint works.
[arvados.git]
/
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 e90d7980cd682192281f921fdab0b4ee2a7075eb..fca57dce8f4d0eb3331c05d442e9fe0fa94f399a 100644
(file)
--- 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
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
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 :expires_at
t.add :last_used_at
t.add :last_used_by_ip_address
+ t.add :scopes
end
def assign_random_api_token
end
def assign_random_api_token