Skip to content

Commit ec4bcc9

Browse files
author
David Christofas
committed
add an expiration timestamp to grants
The expiration timestamp limits the access of a share in time
1 parent bb7fbfa commit ec4bcc9

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

cs3/sharing/collaboration/v1beta1/resources.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ message ShareGrant {
163163
// REQUIRED.
164164
// The share permissions for the grant.
165165
SharePermissions permissions = 2;
166+
// OPTIONAL
167+
// Expiration of the grant.
168+
cs3.types.v1beta1.Timestamp expiration = 3;
166169
}
167170

168171
// Represents a filter to apply to the request.

cs3/storage/provider/v1beta1/resources.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ message Grant {
325325
// OPTIONAL
326326
// The Creator of the grant
327327
cs3.identity.user.v1beta1.UserId creator = 3;
328+
// OPTIONAL
329+
// Expiration of the grant.
330+
cs3.types.v1beta1.Timestamp expiration = 4;
328331
}
329332

330333
// A grantee is the receiver of a grant.

docs/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8295,6 +8295,12 @@ <h3 id="cs3.identity.user.v1beta1.UserType">UserType</h3>
82958295
<td><p>A lightweight user account without access to various major functionalities.</p></td>
82968296
</tr>
82978297

8298+
<tr>
8299+
<td>USER_TYPE_SPACE_OWNER</td>
8300+
<td>8</td>
8301+
<td><p>A space owner to allow access for public link or content indexing.</p></td>
8302+
</tr>
8303+
82988304
</tbody>
82998305
</table>
83008306

@@ -10953,6 +10959,14 @@ <h3 id="cs3.sharing.collaboration.v1beta1.ShareGrant">ShareGrant</h3>
1095310959
The share permissions for the grant. </p></td>
1095410960
</tr>
1095510961

10962+
<tr>
10963+
<td>expiration</td>
10964+
<td><a href="#cs3.types.v1beta1.Timestamp">cs3.types.v1beta1.Timestamp</a></td>
10965+
<td></td>
10966+
<td><p>OPTIONAL
10967+
Expiration of the grant. </p></td>
10968+
</tr>
10969+
1095610970
</tbody>
1095710971
</table>
1095810972

@@ -17490,6 +17504,14 @@ <h3 id="cs3.storage.provider.v1beta1.Grant">Grant</h3>
1749017504
The Creator of the grant </p></td>
1749117505
</tr>
1749217506

17507+
<tr>
17508+
<td>expiration</td>
17509+
<td><a href="#cs3.types.v1beta1.Timestamp">cs3.types.v1beta1.Timestamp</a></td>
17510+
<td></td>
17511+
<td><p>OPTIONAL
17512+
Expiration of the grant. </p></td>
17513+
</tr>
17514+
1749317515
</tbody>
1749417516
</table>
1749517517

0 commit comments

Comments
 (0)