@@ -660,20 +660,19 @@ contain the following information about its OCM API:
660660 Share Creation Notification.
661661 As all Receiving Servers SHOULD require the use of TLS in API
662662 calls, it is not necessary to expose that as a criterium.
663- Example : ` ["http-request-signatures", "code" ]` . The array MAY
664- include for instance :
663+ Example : ` ["http-request-signatures"]` . The array MAY include
664+ for instance :
665665 _ `"http-request-signatures"` - to indicate that API requests
666666 without http signatures will be rejected.
667- _ `"code "` - to indicate that API requests without code will be
668- rejected (i.e. the `sharedSecret` in the protocol details will be
669- ignored ).
667+ _ `"token-exchange "` - to indicate that API requests without
668+ token exchange will be rejected (see the [Code Flow](#code-flow)
669+ section ).
670670 _ `"denylist"` - some servers MAY be blocked based on their IP
671671 address
672672 _ `"allowlist"` - unknown servers MAY be blocked based on their IP
673673 address \* `"invite"` - an invite MUST have been exchanged between the
674674 sender and the receiver before a Share Creation Notification can be
675675 sent
676-
677676* OPTIONAL: publicKey (object) - The signatory used to sign outgoing
678677 request to confirm its origin.
679678 The signatory is optional, but if present, it MUST contain
@@ -770,9 +769,6 @@ To create a Share, the Sending Server SHOULD make a HTTP POST request
770769 The expiration time for the OCM share, in seconds
771770 of UTC time since Unix epoch. If omitted, it is assumed
772771 that the share does not expire.
773- * OPTIONAL code (string)
774- A nonce to be exchanged for a (potentially short-lived)
775- bearer token at the Sending Server's tokenEndPoint [RFC6749]
776772* REQUIRED protocol (object)
777773 JSON object with specific options for each protocol.
778774 The supported protocols are : - `webdav`, to access the data -
@@ -817,12 +813,10 @@ servers MAY only support `webdav`.
817813 SHOULD be relative, in which case the prefix
818814 exposed by the `/.well-known/ocm` endpoint MUST
819815 be used. Absolute URIs are deprecated.
820- - OPTIONAL sharedSecret (string) - REQUIRED if no `code` field is
821- given for the Share as a whole (see above). An
822- optional secret to be used to access the Resource,
823- such as a bearer token.
824- To prevent leaking it in logs it MUST NOT appear in
825- any URI.
816+ - REQUIRED sharedSecret (string)
817+ A secret to be used to access the Resource, such as
818+ a bearer token. To prevent leaking it in logs it
819+ MUST NOT appear in any URI.
826820 - OPTIONAL permissions (array of strings) -
827821 The permissions granted to the sharee. A subset
828822 of : - `read` allows read-only access including
@@ -831,12 +825,13 @@ servers MAY only support `webdav`.
831825 Resource.
832826 - OPTIONAL requirements (array of strings) -
833827 The requirements that the sharee MUST fulfill to
834- access the Resource. A subset of : - `mfa-enforced ` requires the
828+ access the Resource. A subset of : - `must-use-mfa ` requires the
835829 consumer to be MFA-authenticated. This MAY be used if the
836830 recipient provider exposes the `enforce-mfa`
837- capability. - `use-code` requires the consumer to exchange
838- the given `code` via a signed HTTPS request. This
839- MAY be used if the recipient provider exposes the
831+ capability. - `must-exchange-token` requires the recipient to
832+ exchange the given `sharedSecret` via a signed HTTPS request
833+ to the Sending Server's {tokenEndPoint} [RFC6749].
834+ This MAY be used if the recipient provider exposes the
840835 ` receive-code` capability.
841836* Protocol details for `webapp` MAY contain:
842837 - REQUIRED uri (string)
0 commit comments