In #17 this was already in the works but was closed. Exactly the same issue. Connecting via Username and password, in the settings the connect appears to work.
Hello @KanenasPL @BKapelari
Please post the version of the Nextcloud server, the Mattermost integration and the Mattermost instance that you're using.
It seems you're using an older version of the Mattermost instance that does not support API v4. Please use version >= 5.0
Client error: `GET $MATTERMOSTDOMAIN/api/v4/users/$CRYPTICSTRING/channels` resulted in a `401 Unauthorized` response:{"id":"api.context.session_expired.app_error","message":"Ungültige oder abgelaufene Sitzung. Melde dich erneut an.","de (truncated...)
on a side note, if I activate Enable navigation link (link to Mattermost with a top menu item) the link is broken and leads to https://$NEXTCLOUDDOMAIN/settings/user/$MATTERMOSTDOMAIN (whereas these uppercases are the correct domain names)
I had the same issue and solved it by reconnecting to my mattermost instance in the nextcloud profile setting (I think it's called "shared accounts" in English)
In #17 this was already in the works but was closed. Exactly the same issue. Connecting via Username and password, in the settings the connect appears to work.
mattermost server
nextcloud server
integration_mattermost
I get the error (from console logs)
on a side note, if I activate
Enable navigation link (link to Mattermost with a top menu item)
the link is broken and leads tohttps://$NEXTCLOUDDOMAIN/settings/user/$MATTERMOSTDOMAIN
(whereas these uppercases are the correct domain names)