Skip to content

Single Sign-On using Active Directory with ADFS and SAML

Deskradar supports single sign-on (SSO) logins through SAML 2.0. A SAML 2.0 identity provider (IDP) can take many forms, one of which is a self-hosted Active Directory Federation Services (ADFS) server. This guide demonstrates how to configure single sign-on using Active Directory with ADFS and SAML.

Active Directory with ADFS configuration

Configuring and installing ADFS is beyond the scope of this guide, but is detailed in a Microsoft KB article.

Add a relying party trust

In AD FS management sidebar, go to AD FS > Trust Relationships > Relying Party Trusts and click Add Relying Party Trust.

Add Relying Party Trust

A configuration wizard for adding a new relying party trust opens. In the Welcome screen, click Start.

Add Relying Party Trust Wizard - Welcome

In the Select Data Source screen, select the option Enter data about the relying party manually.

Add Relying Party Trust Wizard - Select Data Source

In the Specify Display Name screen, enter a Display Name to recognize the trust, such as Deskradar, and add any notes you want to make.

Add Relying Party Trust Wizard - Specify Display Name

In the Choose Profile screen, select the option AD FS profile (selected by default).

Add Relying Party Trust Wizard - Choose Profile

In the Configure Certificate screen, leave the certificate settings at their default values.

Add Relying Party Trust Wizard - Configure Certificate

In the Configure URL screen, select Enable Support for the SAML 2.0 WebSSO protocol and enter the Relying party SAML 2.0 SSO service URL, similar to https://<your-domain>.deskradar.cloud/auth/sso/saml/consume.

Add Relying Party Trust Wizard - Configure URL

In the Configure Identifiers screen, enter the Relying party trust identifier similar to https://<your-domain>.deskradar.cloud and click Add.

Add Relying Party Trust Wizard - Configure Identifiers

In the Configure Multi-factor Authentication Now screen, you may enable multi-factor authentication, but this is beyond the scope of this guide.

Add Relying Party Trust Wizard - Multi-factor Authentication

In the Choose Issuance Authorization Rules screen, select the option Permit all users to access this relying party (selected by default).

Add Relying Party Trust Wizard - Authorization

In the Ready to Add Trust screen, you can review your settings.

Add Relying Party Trust Wizard - Ready

In the Finish screen, select the option Open the Edit Claim Rules dialog for this relying party trust when the wizard closes, and click Close. You will now exit configuration wizard and a Claim Rules editor will open.

Add Relying Party Trust Wizard - Finish

Create claim rules

In the Issuance Transform Rules of the Claim Rules editor, click the Add Rule… button. This action opens an Add Transform Claim Rule Wizard.

Edit Claim Rules

In the Choose Rule Type screen, select Send LDAP Attributes as Claims from the drop-down menu, then click Next.

Edit Claim Rules - Choose Rule Type

In the Configure Claim Rule screen, enter a Claim Rule Name of your choice, select Active Directory as the Attribute Store and configure following LDAP attributes and Outgoing Claim Types:

LDAP attributesOutgoing Claim Type
User-Principal-NameEmail
Given-NameFirstName
SurnameLastName

Then, click Finish to add the rule.

Edit Claim Rules - Configure Claim Rule

Click OK in the Claim Rules editor.

Edit Claim Rules - Finish

Export identity provider public certificate

In AD FS management sidebar, go to AD FS > Service > Certificates and double click on the certificate under Token-signing. You may alternatively right-click the field, then click View Certificate.

Certificates

In the Certificate screen, go to the Details tab and click Copy to File, then OK. This opens a Certificate Export Wizard.

Certificate Details

In the Certificate Export Wizard screen, click Next.

Certificate Details

Then, select the option Base-64 encoded X.509 (.CER) and click Next again.

Certificate Details

In the Certificate Export Wizard screen, click Browse to specify the location to which you want the Identity Provider Certificate to be exported, and specify the file name. Click Save. In the Certificate Export Wizard screen, verify the file path is correct, and click Next.

Certificate Details

In the Completing the Certificate Export Wizard, click Finish, then OK to confirm the export was successful.

Certificate Details

Deskradar Configuration

  1. Open Team panel by clicking the icon in the Sidebar.
  2. Switch to Single Sign-On tab.
  3. Enable SAML authentication method.
  4. In the fields enter the information about Identity Provider:
    • SAML SSO URL: Use SSO URL of your ADFS endpoint e.g. https://fs.contoso.com/adfs/ls.
    • Identity Provider Issuer: Use Issuer ID e.g. http://fs.contoso.com/adfs/services/trust.
    • Public Certificate: Use the contents of the exported public certificate.

Sign In to Deskradar with SSO

After configuration is complete users can sign in to Deskradar.

  1. Launch your Deskradar instance by opening URL in your browser: https://<your-domain>.deskradar.cloud. Replace <your-domain> with your Deskradar instance domain.
  2. Click on Enterprise Single Sign-On button on the login view.
  3. Sign in with your Active Directory credentials. You will be taken back to Deskradar and signed in to Deskradar.