Damstra Safety provides integration with Microsoft’s Active Directory Federation Services (AD FS) to enable your users to have a Single Sign On experience when they access your organisation’s Web-based Damstra Safety application.
As well as giving users a single sign on capability, AD FS also gives you the security control and management of the access credentials of your users without having to share these with a third party.
In its simplest form, AD FS operates in the following manner
- Your user attempts to log into Damstra Safety
- Damstra Safety refers the request to your Single Sign On server
- Your Single Sign On servers verify the user against your Active Directory credentials
- The verified details are passed back to Damstra Safety for authorisation
- If the user exists in Damstra Safety, the user is presented with the Damstra Safety home page
Damstra are responsible for;
- Providing the SAML interface in Damstra Safety
- Configuring the Damstra Safety interface with details supplied by you
You are responsible for;
- Provision and configuration of all AD FS components
- Provision of appropriately skilled resources for the above
- Maintaining a valid token signing certificate and notifying Damstra of any changes to the certificate used prior to rollover
Damstra will assist with integration of your AD FS services with Damstra Safety, however the skills and resources to configure ADFS / SAML are your responsibility.
Configuring Damstra Safety As a Trusted Relying Party
Linking Damstra Safety with your Active directory using ADFS requires the setup of a two-way trust using SAML. ADFS has to be configured to trust Damstra as a relying party and Damstra needs to trust the ADFS as an identity provider.
ADFS 2.0 (3.o) installed. Setup of the ADFS infrastructure is outside the scope of the document.
Note: Windows 2008 R2 ADFS role installs ADFS version 1.0. You will need to download and install ADFS 2.0 (3.0) from Microsoft.
Initial Damstra Information
Damstra requires the following information before it can setup the relaying trust.
ADFS Domain: e.g. adfs.ngbigroup.com
ADFS Token Signing Thumbprint e.g. 9d4e231cbb110d41181a25612191e73baf2087ac
Send this information to email@example.com
To get the Token signing thumbprint perform the following
- Open the ADFS 2.0 (3.0) Management Screen and click on the Service -> Certificates.
- Click on the Token-signing certificate and then click on View Certificate on the right
- Click on the Details tab then go to the last item which is the Thumbprint. In the text box below select the text and press Ctrl + C to copy the value
Setup Damstra Relying Party Trust
After Damstra has the previous information continue below
- From the ADFS Management Console, right-click ADFS 2.0 (3.0) and select Add Relying Party Trust.
- In the Add Relying Party Trust Wizard, click Start.
- Check Import data about the relying party published online or on a local network, Use the provided Federation metadata. It will have the following format
Then click Next. The metadata XML file is a standard SAML metadata document that describes Damstra as a relying party.
- Click OK on the notice message
- Set the display name for the relying party and then click Next.
- Choose your authorization rules. For my scenario, I chose Permit all users to access this relying party. When you're done, click Next.
- Review your settings and then click Next.
- Check Open the Edit Claim Rules dialog for this relying part trust when the wizard closes and then click Close.
You’re done configuring Damstra as a relying party.
Configuring Claim Rules for the Damstra Relying Party
In these steps we’re going to add the claim rules so that the elements Damstra requires and ADFS doesn't provide by default (Name Id, principal) are added to the SAML authentication response. If you forgot to check the box to launch the claim rule dialog, right-click on the relying party (in this case Damstra) and then click Edit Claim Rules.
Click on Add Rule...
Select Send LDAP Attributes as Claims (Default) and press Next
Add a Rule Name and Select Active Directory as the Attribute Store.
In the grid add the items below. Note: principal is not in the drop down list and must be added manually.
'User-Principal-Name', 'Employee Number' or 'SAM Account Name' can be used
SAM Account Name
SAM Account Name
Click on Finish.
Now click on the Properties
Select the Advanced tab and change the hash algorithm to SHA-1
Test with the link provided. It will have the following format.
If successful you will get to the following page.
If you get any other page then recheck the settings and contact Damstra support with the error message.
Token Signing Certificate Rollover
ADFS Default Behaviour
ADFS automatically creates a new Token Signing Certificate 20 days before the current token signing certificate expires. ADFS will automatically switch to use the new signing certificate as the primary signing certificate after 5 more days (15 days until the expiry of old signing certificate).
If a new certificate is used as primary without notifying Damstra, all attempts to login will fail with message in the stack trace:
Unable to find a certificate matching the configured fingerprint.
New Token Signing Key Procedure
Once the new key is generated (automatically or manually) the new certificate thumbprint is required to be sent to Damstra (firstname.lastname@example.org) for addition to the allowed list of thumbprints. At this stage, both thumbprints will be valid. Once the rollover is complete and the old certificate is removed from ADFS contact support to remove the old thumbprint.
By following this method users should not experience any downtime logging into Damstra Safety.
Click below for a downloadable PDF:
Article is closed for comments.