From 2f8f5a00673f0d8d9f146a1391c53c8637059c45 Mon Sep 17 00:00:00 2001 From: David Christofas Date: Wed, 17 Mar 2021 10:49:00 +0100 Subject: [PATCH] get public share methods also return the share password now (#113) For some alternative public share authentication methods we need to be able to access the public share password. Some more details are documented here: https://github.com/cs3org/cs3apis/issues/110 --- cs3/sharing/link/v1beta1/link_api.proto | 10 ++++++++++ docs/index.html | 18 +++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/cs3/sharing/link/v1beta1/link_api.proto b/cs3/sharing/link/v1beta1/link_api.proto index 3244a84c..81b469dc 100644 --- a/cs3/sharing/link/v1beta1/link_api.proto +++ b/cs3/sharing/link/v1beta1/link_api.proto @@ -39,6 +39,10 @@ import "cs3/types/v1beta1/types.proto"; // The Public Share Provider API is meant to manipulate public shares // also called public links. // +// Access to public shares can be limitted by a password. The share +// provider must store this password in a secure manner e.g. hashed +// with the bcrypt algorithm. +// // The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL // NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and // "OPTIONAL" in this document are to be interpreted as described in @@ -220,6 +224,9 @@ message GetPublicShareResponse { // REQUIRED. // The share. PublicShare share = 3; + // OPTIONAL. + // The share password hash. + string password_hash = 4; } message GetPublicShareByTokenRequest { @@ -244,4 +251,7 @@ message GetPublicShareByTokenResponse { // REQUIRED. // The share. PublicShare share = 3; + // OPTIONAL. + // The share password hash. + string password_hash = 4; } diff --git a/docs/index.html b/docs/index.html index 17b64820..d082755c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8519,6 +8519,14 @@

GetPublicShareBy The share.

+ + password_hash + string + +

OPTIONAL. +The share password hash.

+ + @@ -8593,6 +8601,14 @@

GetPublicShareResponse< The share.

+ + password_hash + string + +

OPTIONAL. +The share password hash.

+ + @@ -8994,7 +9010,7 @@

UpdatePub

LinkAPI

-

PublicShare Provider API

The Public Share Provider API is meant to manipulate public shares

also called public links.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL

NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and

"OPTIONAL" in this document are to be interpreted as described in

RFC 2119.

The following are global requirements that apply to all methods:

Any method MUST return CODE_OK on a succesful operation.

Any method MAY return NOT_IMPLEMENTED.

Any method MAY return INTERNAL.

Any method MAY return UNKNOWN.

Any method MAY return UNAUTHENTICATED.

+

PublicShare Provider API

The Public Share Provider API is meant to manipulate public shares

also called public links.

Access to public shares can be limitted by a password. The share

provider must store this password in a secure manner e.g. hashed

with the bcrypt algorithm.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL

NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and

"OPTIONAL" in this document are to be interpreted as described in

RFC 2119.

The following are global requirements that apply to all methods:

Any method MUST return CODE_OK on a succesful operation.

Any method MAY return NOT_IMPLEMENTED.

Any method MAY return INTERNAL.

Any method MAY return UNKNOWN.

Any method MAY return UNAUTHENTICATED.

Method NameRequest TypeResponse TypeDescription