docs/main/administration-guide/onboard/sso-saml-onelogin.mdx
import Inc0_sso_saml_before_you_begin from './sso-saml-before-you-begin.mdx'; import Inc1_sso_saml_ldapsync from './sso-saml-ldapsync.mdx'; import Inc2_sso_saml_faq from './sso-saml-faq.mdx';
<PlanAvailability slug="all-commercial" />The following process provides steps to configure SAML 2.0 with OneLogin for Mattermost.
See the encryption options documentation for details on what encryption methods Mattermost supports for SAML.
<Inc0_sso_saml_before_you_begin />
- Log in to OneLogin as an administrator.
- Go to Apps > Add Apps.
- Search for "SAML Test Connector", then select SAML Test Connector (Advanced).
- In the Display Name field, enter a name for the application, then optionally upload an app icon. You can use the Mattermost logo for the icon, which you can download from Branding Guidelines page.
- Make sure that the Visible in portal option is enabled.
- Select Save.
Select the Configuration tab, then enter the following values:
- RelayState: leave blank
- Audience: leave blank
- Recipient:
https://<your-mattermost-url>/login/sso/samlwherehttps://<your-mattermost-url>should typically match the Mattermost Site URL.- ACS (Consumer) URL Validator:
https:\/\/<your-mattermost-url>\/login\/sso\/saml- ACS (Consumer) URL:
https://<your-mattermost-url>/login/sso/saml
- In System Console, enable encryption, then select Save. You're redirected to the Info tab. From there, select the Configuration tab to access the SAML Encryption field.
- Paste the Public Key that you generated earlier into the SAML Encryption field at the bottom of the page. This field displays in OneLogin only when encryption is enabled in Mattermost.
- Select Save.
Attribute parameters map attributes between OneLogin and Mattermost. For more information on which attributes are configurable, see our documentation on SAML configuration settings.
Email attributes are required.
- Select the Parameters tab.
- Select Add Parameter.
- In the Field name field, enter an attribute parameter such as
- Select the Include in SAML assertion checkbox.
- Select Save.
- Select Edit.
- In the Value field, select the OneLogin value that corresponds to the attribute parameter.
Repeat the steps above to add any other attributes that you need. After you've added all the attributes you want to use, the parameter list should look similar to the following image:
- Select the SSO tab.
- Copy the values in the Issuer URL and SAML 2.0 Endpoint (HTTP) fields, then save them for later use.
- Select View Details to view the X.509 certificate.
- Make sure that the X.509 PEM option is selected in the drop-down.
- Select DOWNLOAD, then save the file in a convenient location for later use.
- Enter the OneLogin Issuer URL into the Identity Provider Metadata URL field.
- Select Get SAML Metadata from IdP to download the metadata.
- In the Verify Signature field, select True.
- In the Service Provider Login URL, enter
https//<your-mattermost-url>/login/sso/saml.
- In the Enable Encryption field, select True.
- In the Service Provider Private Key field, upload the private key that you generated earlier.
- In the Service Provider Public Certificate field, upload the public key that you generated earlier.
The Email Atttribute field and the Username Attribute field are required, and should match the values that you entered earlier when you configured the SAML Test Connector on OneLogin.
First Name Attribute and Last Name Attribute, go to System Console > Site Configuration > Users and Teams, then set Teammate Name Display to Show first and last name. This is recommended for a better user experience.To confirm that SAML SSO is successfully enabled, switch your system admin account from email to SAML-based authentication from your profile picture via Profile > Security > Sign-in Method > Switch to SAML SSO, then log in with your SAML credentials to complete the switch.
We also recommend that you post an announcement to your users detailing how the migration will work.
You can also configure SAML for OneLogin by editing the config.json file to enable SAML based on SAML configuration settings. You must restart the Mattermost server for the changes to take effect.
<Inc1_sso_saml_ldapsync />
<Inc2_sso_saml_faq />