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
This commit is contained in:
Tristan Cacqueray 2021-08-20 18:06:15 +00:00
parent df5322df97
commit 690c8ec24e
1 changed files with 8 additions and 0 deletions

View File

@ -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"]}'