...
and a plain text body: "The token provided was invalid or expired."
API for Authorization
Get the users who can be added to a resource's ACL
Code Block |
---|
GET http://repositoryservice.sagebase.org/repo/v1/user
|
Code Block |
---|
[
{"name":"anonymous","id":"3","creationDate":1307402971000,"uri":null,"etag":null,"individual":true},
{"name":"foo@sagebase.org","id":"4","creationDate":1307403226000,"uri":null,"etag":null,"individual":true}
]
|
Get the groups who can be added to a resource's ACL
Code Block |
---|
GET http://repositoryservice.sagebase.org/repo/v1/userGroup
|
Code Block |
---|
[
{"name":"Identified Users","id":"1","creationDate":1307141423000,"uri":null,"etag":null,"individual":false},
{"name":"Federation Group","id":"2","creationDate":1307141423000,"uri":null,"etag":null,"individual":false}
]
|
Note: The "id" fields returned from /user and /userGroup are used in the "userGroupId" fields in the ACLs shown below.
Create Access Control List for a Resource
...
Code Block |
---|
DELETE http://repositoryservice.sagebase.org/repo/v1/resource/{rid}/acl
|
Get the users who can be added to a resource's ACL
Code Block |
---|
GET http://repositoryservice.sagebase.org/repo/v1/user
|
Code Block |
---|
[
{"name":"anonymous","id":"3","creationDate":1307402971000,"uri":null,"etag":null,"individual":true},
{"name":"foo@sagebase.org","id":"4","creationDate":1307403226000,"uri":null,"etag":null,"individual":true}
]
|
Get the groups who can be added to a resource's ACL
Code Block |
---|
GET http://repositoryservice.sagebase.org/repo/v1/userGroup
|
Code Block |
---|
[
{"name":"Identified Users","id":"1","creationDate":1307141423000,"uri":null,"etag":null,"individual":false},
{"name":"Federation Group","id":"2","creationDate":1307141423000,"uri":null,"etag":null,"individual":false}
]
|