Zum Inhalt springen

Dienste/Mattermost/en: Unterschied zwischen den Versionen

Aus Technik-Wiki
Manal (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „==== Access token for the API ====“
Manal (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „Instead, session tokens can be used, which can be retrieved from the web browser as follows. It should be noted that these tokens have a limited lifespan.“
 
Zeile 33: Zeile 33:
==== Access token for the API ====
==== Access token for the API ====


<div lang="de" dir="ltr" class="mw-content-ltr">
Mattermost has the option to create [https://developers.mattermost.com/integrate/reference/personal-access-token/ Personal Access Tokens] for API access, but unfortunately this must be activated individually for each account.
Mattermost hat zwar die Option [https://developers.mattermost.com/integrate/reference/personal-access-token/ Personal Access Tokens] für den API-Zugriff zu erzeugen, die aber leider für jeden Account individuell aktiviert werden muss.
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
Instead, session tokens can be used, which can be retrieved from the web browser as follows. It should be noted that these tokens have a limited lifespan.
Stattdessen kann man einen Session-Token verwenden, den man wie folgt aus seinem Web-Browser auslesen kann. Dabei muss beachtet werden, dass diese Token eine begrenzte Lebensdauer haben.
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
# Login to Mattermost in a browser.
# Im Browser bei Mattermost anmelden.
# Press F12 to open the development tools.
# F12 drücken um die Entwicklungswerkzeuge zu öffnen.
# Switch to the ''Network'' tab.
# Auf den ''Netzwerk''-Tab wechseln.
# Press F5 to reload the page.
# F5 drücken um die Webseite neu zu laden.
# In the list of web requests in the ''Network'' tab, click on one with the value ''view'' in the ''File'' column.
# In der Liste der Web-Anfragen im ''Netzwerk''-Tab eine Zeile mit dem Wert ''view'' in der ''Datei''-Spalte anklicken.
# On the right side, switch to the ''Cookies'' tab.
# Auf der rechten Seite auf den ''Cookies''-Tab wechseln.
# The value of <code>MMAUTHTOKEN</code> can be used to access the API.
# Der Wert von <code>MMAUTHTOKEN</code> kann als Zugangs-Token für die API verwendet werden.
</div>

Aktuelle Version vom 2. März 2026, 13:05 Uhr

Mattermost chat system

As part of the Gitlab instance, FB3 offers Mattermost for chats. Anyone who can log in to the FB3-Gitlab can also use Mattermost.

https://mattermost.informatik.uni-bremen.de/

Discontinuation in May 2026

Mattermost no longer supports authentication via Gitlab in the free version starting with version 11 (also see the announcement from Mattermost). As a result, Gitlab has announced that starting with version 19, expected to be released in May of this year, Mattermost will no longer be included in the Gitlab Linux packages (also see the section on Mattermost in "Deprecations and removals by version").

Since the paid licenses of Mattermost are associated with enormous costs, the FB3 Mattermost server will be discontinued with the update of the FB3 Gitlab to version 19. The exact date for this will be announced later.

Alternatives

Since Mattermost is also used centrally by the university and will also be affected by this change, Department 8 is currently evaluating the next steps. There is a Mattermost channel where alternatives are being discussed.

The recommendation is to migrate to the central university solution as soon as it becomes available.

Exporting data

Unfortunately, the Mattermost plugin for exporting chat data is not available in the free version. The Mattermost Web API can be used to export channels and private chats instead.

E.g. the following Python script can be adapted for this purpose:

https://gitlab.irf.se/irf/mattermost_utils

Access token for the API

Mattermost has the option to create Personal Access Tokens for API access, but unfortunately this must be activated individually for each account.

Instead, session tokens can be used, which can be retrieved from the web browser as follows. It should be noted that these tokens have a limited lifespan.

  1. Login to Mattermost in a browser.
  2. Press F12 to open the development tools.
  3. Switch to the Network tab.
  4. Press F5 to reload the page.
  5. In the list of web requests in the Network tab, click on one with the value view in the File column.
  6. On the right side, switch to the Cookies tab.
  7. The value of MMAUTHTOKEN can be used to access the API.