Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions IETF-RFC.md
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,13 @@ contain the following information about its OCM API:
Resources MUST support at least `webdav`, any other combination
of Resources and protocols is optional. Example:

```
~~~
{
"webdav": "/remote/dav/ocm/",
"webapp": "/app/ocm/",
"talk": "/apps/spreed/api/"
}
```
~~~
{: type="json"}
Fields:
- webdav (string) - The top-level WebDAV [RFC4918] path at this
Expand Down Expand Up @@ -1170,13 +1170,13 @@ If the request is valid and the code is accepted, the Sending Server
MUST respond with HTTP 200 OK and a OAuth-compliant JSON object
containing the issued token:

```
~~~
{
"access_token": "8f3d3f26-f1e6-4b47-9e3e-9af6c0d4ad8b",
"token_type": "Bearer",
"expires_in": 300
}
```
~~~
{: type="json"}

The `access_token` is an opaque bearer credential with no internal
Expand All @@ -1194,9 +1194,9 @@ If the request is invalid, the Sending Server MUST return an HTTP 400
response with a JSON object containing an OAuth 2.0 error code
[RFC6749]:

```
~~~
{ "error": "invalid_request" }
```
~~~
{: type="json"}

Permitted error codes are `invalid_request`, `invalid_client`,
Expand Down Expand Up @@ -1424,7 +1424,7 @@ public keys at `/.well-known/jwks.json` in the format specified by
[RFC7517]. Here is an example response from
`https://sender.example.org/.well-known/jwks.json`:

```
~~~
{
"keys": [
{
Expand All @@ -1435,7 +1435,7 @@ public keys at `/.well-known/jwks.json` in the format specified by
}
]
}
```
~~~
{: type="json"}

## Signing a Request (Sender)
Expand Down Expand Up @@ -1544,7 +1544,7 @@ adhere to the following format:
for the OCM Server
Example:

```
~~~
{
"payload": {
"federation": "The ScienceMesh Directory",
Expand All @@ -1566,7 +1566,7 @@ Example:
"protected": {"alg": "RS256"},
"signature": "..."
}
```
~~~
{: type="json"}


Expand All @@ -1593,7 +1593,7 @@ flow or direct entry. It provides a convenient way for users to
organize and access their federated contacts, and MAY allow users to
generate _Invites_.

~~~ artwork
~~~
+-----------------+
| Address Book |
| |
Expand Down Expand Up @@ -1627,7 +1627,7 @@ created through the Invite process or via direct entry. A Contact MAY
of course contain much more detailed information about the referenced
user such as if it was added via _Invites_ or direct entry.

~~~ artwork
~~~
+-----------------+
| Contact |
+-----------------+
Expand Down Expand Up @@ -1663,7 +1663,7 @@ The Invite entity represents the bidirectional trust establishment
mechanism in OCM. It facilitates secure contact exchange between users
on different OCM Servers.

~~~ artwork
~~~
+-----------------+
| Invite |
+-----------------+
Expand Down Expand Up @@ -1703,7 +1703,7 @@ implementor might find it useful to have a Provider object model to
store the discovered information about federation peers or other remote
OCM Providers.

~~~ artwork
~~~
+-----------------------+
| Provider |
| (OCM Server) |
Expand Down Expand Up @@ -1760,7 +1760,7 @@ The Share entity represents a policy granting access to a _Resource_
from a Sending Party to a Receiving Party.


~~~ artwork
~~~
+-----------------+ +------------------+
| Sending Party | | Receiving Party |
+-----------------+ +------------------+
Expand Down Expand Up @@ -1822,7 +1822,7 @@ from a Sending Party to a Receiving Party.
The User entity represents the party in OCM who can send and receive
Shares and Invites and manage Contacts, and interact with Resources.

~~~ artwork
~~~
+-----------------------+
| User |
+-----------------------+
Expand Down Expand Up @@ -1874,7 +1874,7 @@ Receiving Party through the Sending Server's API. In general a Resource
is a much more complex entity, but for the purpose of OCM we only need
to model a few key properties.

~~~ artwork
~~~
+-----------------+
| Resource |
+-----------------+
Expand Down
Loading