Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 2.27 KB

active-directory-federation-services.md

File metadata and controls

37 lines (25 loc) · 2.27 KB
description
Authenticating Rocket.Chat and Microsoft ADFS via SAML

Active Directory Federation Services

It is possible to set up the authentication between Rocket.Chat and Active Directory Federation Services by setting up SAML authentication scenario.

Microsoft ADFS provides an IdP service that can be consumed by Rocket.Chat for authentication.

{% hint style="info" %} If you are using Active Directory without Federation Services, you should perform the user synchronization via LDAP only. {% endhint %}

{% hint style="warning" %} This document considers that your ADFS environment is deployed and running. For further info, please refer to this guide. {% endhint %}

The Rocket.Chat configuration should be done as follows:

  • Navigate to Administration > Workspace > Settings > SAML and configure the entry points and the IdP path.
  • Add the private key certificate related to the ADFS server.

{% hint style="info" %} ADFS uses .pfx certificate extensions (widely used on Windows landscapes) and Rocket.Chat uses .pem files. So, before setting the certificate here, it must be converted. {% endhint %}

  • Set the Custom Authn Context and User Data Field Map according to the scenario you have on your Active Directory Federation Services.

{% hint style="info" %} The Custom Authorization context fields must match the authentication methods selected on ADFS. Microsoft Federation Services provides two authentication methods: Forms authentication and Windows Authentication. {% endhint %}

  • Forms authentication: If this option is selected as 'primary', a login form provided by ADFS will be called by the SAML assertion to perform the login operation. For this method, the recommended "Custom Authn Context" in Rocket.Chat should be urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
  • Windows authentication: if this option is selected as 'primary', ADFS will expect the login assertions on the Windows Domain level. To set a full SSO scenario between Rocket.Chat and ADFS, the recommended "Custom Authn Context" should be _urn:federation:authentication:windows_