Mattermost SSO Configuration
Prerequisites
- Ensure the Global SSO Settings have already been configured for this cluster.
- Access to Keycloak Master Realm
Create Keycloak Client
- While you are in the
smoothglue
realm, click onClients
underManage
in the left pane. - Click
Create client
. - Enter client name
mattermost
forClient ID
. - Click on the
Next
button. - Toggle on
Client authentication
. - Click on the
Next
button. Note: The application's FQDN name may be obtained by runningkubectl get virtualservice -A
- Enter
https://{{ application_fqdn }}/signup/gitlab/complete
forValid Redirect URIs
. - Click on the
Save
button. - Click on
Client scopes
tab. - Click on
mattermost-dedicated
. - Click on
Add predefined mappers
. - Enable
username
andemail
predefined mappers (some may be on the next page). - Click
Add
.
SSO Configuration
Retrieve the client_secret
from the Keycloak client:
- As a Keycloak Admin and within the
smoothglue
realm, clickClients
on the left-hand panel. - Click on the
mattermost
client. - Click on the
Credentials
tab. - Copy the value from the
Client Secret
field.
Add the following values to bigbang-secrets.yaml
to configure SSO:
# SSO Additions
addons:
mattermost:
sso:
enabled: true
client_id: mattermost # should match the client name in keycloakS
client_secret: "" # Change to your Keycloak client secret
tip
The first user that logs in via SSO will become the default admin account for Mattermost.
It is recommended to use the console-initial-admin
for this admin account when using SmoothGlue Console.
info
See How to Configure Big Bang Values for more information on configuring Big Bang applications.