Skip to content

Commit 01989d1

Browse files
Merge branch 'develop' into fix-share-fields
2 parents f14a9bd + d185cce commit 01989d1

File tree

2 files changed

+36
-20
lines changed

2 files changed

+36
-20
lines changed

IETF-RFC.md

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ Remote Resource if accepted by the Invite Receiver OCM Server.
9595
access rights to a Resource; it MAY also refer to a record in a
9696
database representing this rule.
9797
* __Sending Party__ - A person or party who is authorized to create
98-
Shares; similar to "Resource Owner" in OAuth.
98+
Shares; similar to "Resource Owner" in OAuth, identified by its
99+
OCM Address.
99100
* __Receiving Party__ - A person, group or party who is granted access
100101
to the Resource through the Share; similar to "Requesting Party / RqP"
101-
in OAuth-UMA.
102+
in OAuth-UMA, identified by its OCM Address.
102103
* __Share Creation Notification__ - A server-to-server request from the
103104
sending server to the receiving server, notifying the receiving server
104105
that a Share has been created.
@@ -146,8 +147,10 @@ Sending Server or vice versa, using the OCM Notifications endpoint.
146147
* __Invite Message__ - Out-of-band message used to establish contact
147148
between parties and servers in the Invite Flow, containing an Invite
148149
Token (see below) and the Invite Sender's OCM Address.
149-
* __Invite Sender__ - The party sending an Invite.
150-
* __Invite Receiver__ - The party receiving an Invite.
150+
* __Invite Sender__ - The party sending an Invite, identified by its
151+
OCM Address.
152+
* __Invite Receiver__ - The party receiving an Invite, identified by its
153+
OCM Address.
151154
* __Invite Sender OCM Server__ - The server holding an address book
152155
used by the Invite Sender, to which details of the Invite Receiver are
153156
to be added.
@@ -612,7 +615,7 @@ with the fields as described below
612615
## Fields
613616

614617
* REQUIRED shareWith (string)
615-
Consumer specific identifier of the user, group or federation
618+
OCM Address of the user, group or federation
616619
the provider wants to share the Resource with. This MUST be
617620
known in advance, either via a previous Invitation or through
618621
other means.
@@ -631,11 +634,11 @@ with the fields as described below
631634
repeated.
632635
Example: 7c084226-d9a1-11e6-bf26-cec0c932ce01
633636
* REQUIRED owner (string) -
634-
Provider specific identifier of the user who owns the
637+
OCM Address of the user who owns the
635638
Resource.
636639
Example: "6358b71804dfa8ab069cf05ed1b0ed2a@apiwise.nl"
637640
* REQUIRED sender (string) -
638-
Provider specific identifier of the user that wants to share
641+
OCM Address of the user that wants to share
639642
the Resource.
640643
Example: "527bd5b5d689e2c32ae974c6229ff785@apiwise.nl"
641644
* OPTIONAL ownerDisplayName (string)
@@ -777,8 +780,8 @@ request body
777780
* no keypair is trusted or discoverable from the FQDN part of the
778781
`sender` field in the request body
779782
* the keypair used to generate the HTTP Signature doesn't match the one
780-
trusted or discoverable from the FQDN part of the `sender` field in the
781-
request body
783+
trusted or discoverable from the FQDN part of the `sender` field
784+
in the request body
782785
* the Sending Server is denylisted
783786
* the Sending Server is not allowlisted
784787
* the Sending Party is not trusted by the Receiving Party (e.g., no
@@ -1120,20 +1123,32 @@ format:
11201123
Servers exposed by the Directory Service
11211124
* REQUIRED: `servers` - a JSON array of objects to describe the list
11221125
of OCM Servers with the following string fields:
1123-
* REQUIRED: `url` - the OCM Server's FQDN
1124-
* REQUIRED: `displayName` - a human-readable name for the OCM Server
1126+
* REQUIRED: `url` - an absolute URL identifying the
1127+
OCM Server. It MUST:
1128+
* include scheme: either `https://` or
1129+
(for testing purposes) `http://`
1130+
* include host (either a FQDN or an IP address)
1131+
* MAY include a non-default port
1132+
* MUST NOT include a base path (e.g., `/ocm`)
1133+
* MUST NOT include userinfo, query, or fragment
1134+
* REQUIRED: `displayName` - a human-readable name
1135+
for the OCM Server
11251136
Example:
11261137
```json
11271138
{
11281139
"federation" : "The ScienceMesh Directory",
11291140
"servers" : [
11301141
{
1131-
"url" : "https://ocm-server-1.fqdn",
1142+
"url" : "https://ocm-server-1.example.org",
11321143
"displayName" : "OCM Server 1"
11331144
},
11341145
{
1135-
"url" : "https://ocm-server-2.fqdn",
1146+
"url" : "https://ocm-server-2.example.org:4443",
11361147
"displayName" : "OCM Server 2"
1148+
},
1149+
{
1150+
"url" : "http://192.168.1.1:8080",
1151+
"displayName" : "OCM Server 3"
11371152
}
11381153
]
11391154
}
@@ -1153,9 +1168,10 @@ Woojin Seok, Rogier Spoor, Christian Sprajc, Peter Szegedi,
11531168
Ron Trompert, Benedikt Wegmann and Johnatan Xu.
11541169

11551170
We would also like to thank Ishank Arora, Gianmaria Del Monte,
1156-
Jörn Friedrich Dreyer, Richard Freitag, Hugo González Labrador,
1157-
Maxence Lange, Lovisa Lugnegård, Sandro Mesterheide, Antoon Prins and
1158-
Björn Schießle for their direct contributions to the specification.
1171+
Jörn Friedrich Dreyer, Richard Freitag, Hugo González Labrador,
1172+
Matthias Kraus, Maxence Lange, Lovisa Lugnegård, Sandro Mesterheide,
1173+
Antoon Prins and Björn Schießle for their direct contributions
1174+
to the specification.
11591175

11601176
Over the years many more people have been involved in the development
11611177
of OCM. We would like to thank all of them for their contributions,

spec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ components:
489489
shareWith:
490490
type: string
491491
description: >
492-
Consumer specific identifier of the user, group or federation the
493-
provider wants to share the Resource with. This MUST be known
492+
OCM Address of the user, group or federation the
493+
provider wants to share the resource with. This MUST be known
494494
in advance, either via a previous Invitation or through other means.
495495
example: 51dc30ddc473d43a6011e9ebba6ca770@geant.org
496496
name:
@@ -512,12 +512,12 @@ components:
512512
example: 7c084226-d9a1-11e6-bf26-cec0c932ce01
513513
owner:
514514
description: |
515-
Provider specific identifier of the user who owns the resource.
515+
OCM Address of the user who owns the resource.
516516
type: string
517517
example: 6358b71804dfa8ab069cf05ed1b0ed2a@apiwise.nl
518518
sender:
519519
description: |
520-
Provider specific identifier of the user that wants to share the
520+
OCM Address of the user that wants to share the
521521
resource.
522522
type: string
523523
example: 527bd5b5d689e2c32ae974c6229ff785@apiwise.nl

0 commit comments

Comments
 (0)