From 4c794c8db5bda64cde64e86fe3f26de0ecc67966 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Sat, 10 Jan 2026 06:21:03 +0100 Subject: [PATCH 1/4] Update index.md --- .../version-4.0.0/dev/server/apis/http/graph/index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md b/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md index 07e6adf1..4c474fee 100644 --- a/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md +++ b/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md @@ -63,4 +63,12 @@ For development purposes the examples in the developer documentation use Basic A To authenticate with a Bearer token or OpenID Connect access token replace the `-u user:password` Basic Auth option of curl with a `-H 'Authorization: Bearer '` header. A `` can be obtained by copying it from a request in the browser, although it will time out within minutes. To automatically refresh the OpenID Connect access token an ssh-agent like solution like [oidc-agent](https://github.com/indigo-dc/oidc-agent) should be used. The graph endpoints that support a preconfigured token can be found in the [API specification](https://github.com/opencloud-eu/libre-graph-api) +#### Authorization with App token + +Users can create an App Token in their Open Cloud interface. This token can be used to authenticate a user using the Account Name for the username and the token as password. Below is an example of there request + +```sh +curl 'https://cloud.rezel.net/graph/v1.0/me' -H 'accept: application/json' -u 'accountname:the generated app token' +``` + ## Resources From 96bb0e899909cce6ed803f639360092699d92ca7 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Sat, 10 Jan 2026 06:34:37 +0100 Subject: [PATCH 2/4] Enhance documentation for App Token authentication Added example for using App Token authentication with curl. --- .../version-4.0.0/dev/server/apis/http/graph/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md b/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md index 4c474fee..a8346cb4 100644 --- a/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md +++ b/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md @@ -69,6 +69,10 @@ Users can create an App Token in their Open Cloud interface. This token can be u ```sh curl 'https://cloud.rezel.net/graph/v1.0/me' -H 'accept: application/json' -u 'accountname:the generated app token' + +# or using the Authentification Basic Header +# Authentification: Basic BASE64(username + ':' + app token) +curl 'https://cloud.rezel.net/graph/v1.0/me' -H 'accept: application/json' -H 'Authorization: Basic YWNjb3VudG5hbWU6dGhlIGdlbmVyYXRlZCBhcHAgdG9rZW4=' ``` ## Resources From fe2615c4cdf0ba7d8e9c638b524b0db5db110a11 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Wed, 14 Jan 2026 07:03:17 -0700 Subject: [PATCH 3/4] Update index.md --- .../version-4.0.0/dev/server/apis/http/graph/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md b/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md index a8346cb4..7ef7cb54 100644 --- a/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md +++ b/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md @@ -68,11 +68,11 @@ To authenticate with a Bearer token or OpenID Connect access token replace the ` Users can create an App Token in their Open Cloud interface. This token can be used to authenticate a user using the Account Name for the username and the token as password. Below is an example of there request ```sh -curl 'https://cloud.rezel.net/graph/v1.0/me' -H 'accept: application/json' -u 'accountname:the generated app token' +curl 'https://cloud.opencloud.test/graph/v1.0/me' -H 'accept: application/json' -u 'accountname:the generated app token' # or using the Authentification Basic Header # Authentification: Basic BASE64(username + ':' + app token) -curl 'https://cloud.rezel.net/graph/v1.0/me' -H 'accept: application/json' -H 'Authorization: Basic YWNjb3VudG5hbWU6dGhlIGdlbmVyYXRlZCBhcHAgdG9rZW4=' +curl 'https://cloud.opencloud.test/graph/v1.0/me' -H 'accept: application/json' -H 'Authorization: Basic YWNjb3VudG5hbWU6dGhlIGdlbmVyYXRlZCBhcHAgdG9rZW4=' ``` ## Resources From b453602b4c5ef37908f3a61e2cdf9ee361827df0 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Wed, 14 Jan 2026 10:53:27 -0700 Subject: [PATCH 4/4] Update index.md typoz --- .../version-4.0.0/dev/server/apis/http/graph/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md b/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md index 7ef7cb54..37c8a9f5 100644 --- a/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md +++ b/versioned_docs/version-4.0.0/dev/server/apis/http/graph/index.md @@ -65,7 +65,7 @@ To authenticate with a Bearer token or OpenID Connect access token replace the ` #### Authorization with App token -Users can create an App Token in their Open Cloud interface. This token can be used to authenticate a user using the Account Name for the username and the token as password. Below is an example of there request +Users can create an App Token in their Open Cloud interface. This token can be used to authenticate a user using the Account Name for the username and the token as password. Here is an example using curl ```sh curl 'https://cloud.opencloud.test/graph/v1.0/me' -H 'accept: application/json' -u 'accountname:the generated app token'