From 690c8ec24e9aac1a825f29fbf58a606308a14fdf Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Fri, 20 Aug 2021 18:06:15 +0000 Subject: [PATCH] Add matrix term accept instruction This change adds a missing step to accept matrix term required to use the identity lookup service. Change-Id: I4f6ad60d983bfc82342ee7d69659074c91296dc1 --- playbooks/roles/matrix-gerritbot/README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/roles/matrix-gerritbot/README.rst b/playbooks/roles/matrix-gerritbot/README.rst index 2983cf2f10..991bb48eb4 100644 --- a/playbooks/roles/matrix-gerritbot/README.rst +++ b/playbooks/roles/matrix-gerritbot/README.rst @@ -32,3 +32,11 @@ Create the *gerritbot_matrix_identity_token* with this command: export MATRIX_IDENTITY_TOKEN=$(curl -XPOST ${IDENTITY_URL}/_matrix/identity/v2/account/register -d "${MATRIX_OPENID}" | jq -r '.access_token') echo "gerritbot_matrix_identity_token: ${MATRIX_IDENTITY_TOKEN}" + +You might need to accept matrix terms: + +.. code-block:: + + curl -H "Authorization: Bearer ${MATRIX_IDENTITY_TOKEN}" ${IDENTITY_URL}/_matrix/identity/v2/terms + curl -XPOST ${IDENTITY_URL}/_matrix/identity/v2/terms -H "Authorization: Bearer ${MATRIX_IDENTITY_TOKEN}" -d \ + '{"user_accepts": ["https://matrix.org/legal/identity-server-privacy-notice-1"]}'