eduhub-org / eduhub

A comprehensive education platform focusing on course applications, event registrations, learning communities, and more.
https://edu.opencampus.sh
GNU Affero General Public License v3.0
11 stars 7 forks source link

SSO for Mattermost #778

Open steffen74 opened 10 months ago

steffen74 commented 10 months ago

Write a customer announcement
You can now login to Mattermost using your EduHub account.

Is your feature request related to a problem? Please describe. Currently users need two accounts one for EduHub and one for Mattermost

Describe the solution you'd like
The following blog describes a workaround using the GitLab SSO that is included in the teams license: https://medium.com/@mrtcve/mattermost-teams-edition-replacing-gitlab-sso-with-keycloak-dabf13ebb99e

The user id needs to integer. Therefore a "second" user id (additional to the UUID)) has to be included in the User table that includes a unique identifier that is only integer. The column name should "idInteger". The comment field should include: "Needed to allow SSO with mattermost which needs an integer id to use the workaround via GitLab.

steffen74 commented 10 months ago

Here another page describing the solution via GitLab: https://devopstales.github.io/home/mattermost-keycloak-sso/

ericstumper commented 1 month ago

One important note to add: Mattermost does not unify email and SSO accounts! If login works after the mattermost modifications, we will still have to port all user accounts from email login to sso via SQL directly in the database.