Active Directory Federation Services (AD FS) is a technology that extends your Active Directory configuration to services outside of your infrastructure. With AD FS, you can give users access to PagerDuty without them having to manage another set of credentials.
This guide was written and tested on Windows Server 2012 R2, however earlier versions of Windows Server provide AD FS as well.
On Your AD FS Server
- Open the AD FS Management console, click Add Relying Party Trust… in the Actions pane and click Start on the wizard introduction page.
- Select Enter data about the relying party manually and click Next.
- Enter a Display name, such as PagerDuty, and click Next.
- Select AD FS profile and click Next.
- You will not need a token encryption certificate, so click Next to continue.
- Log in to your PagerDuty account, go to the Configuration menu and select Settings. When you get to the Account Details page, click Single Sign-on on the sidebar to the right.
- Click the SAML radio button to configure Single Sign On in PagerDuty and copy the SAML Endpoint URL to paste into the wizard.
- Back on your AD FS server, check the box to Enable support for the SAML 2.0 WebSSO protocol, then paste the URL you copied in the Relying party SAML 2.0 SSO service URL box and click Next.
- Enter your PagerDuty subdomain in the Relying party trust identifier field – including
https:// and with no trailing slash and click Next.Note: It is very important to enter your PagerDuty subdomain exactly as described. The integration will not work if you do not include
https:// here, nor if you include a slash at the end of the URL.
- Select your desired multi-factor authentication option for users and click Next.Note: Enabling multi-factor authentication will require additional steps that are outside the scope of this guide and will not be covered.
- Select Permit all users to access this relying party and click Next.Note: You may change this setting to deny by default and grant only specific users access to PagerDuty, however this process is outside the scope of this guide and will not be covered.
- Review your settings and click Next.
- Click Close to finish the wizard.
- Click Add Rule… on the Issuance Transform Rules tab.
- Select Send LDAP Attributes as Claims and click Next.
- Enter a Claim rule name, such as Get Attributes, then set the Attribute store to Active Directory, type in
E-Mail-Addresses for the first LDAP attribute and set its outgoing type to
E-Mail Address, and type in
Display-Name for the second LDAP attribute and set its outgoing type to
Name. Click Finish when you are done.Note: Is it very important to select the options with the exact same dashes and spaces documented after you begin typing in the specified value. The integration may not work if you select a variant which does not match exactly.
- Click Add Rule… on the Issuance Transform Rules tab again.
- Select Transform an Incoming Claim and click Next.
- Enter a Claim rule name, such as Name ID Transform, set Incoming claim type to
E-Mail Address, set Outgoing claim type to
Name ID, and set Outgoing name ID format to
Email. Select Pass through all claim values and click Finish.Note: Is it very important to select the options with the exact same dashes and spaces documented after you begin typing in the specified value. The integration may not work if you select a variant which does not match exactly. For example, setting Outgoing claim type to
NameID instead of
Name ID will not allow you to set Outgoing name ID format to
Email, and the integration will not work.
- Click Add Rule… on the Issuance Transform Rules tab again.
- Select Send Claims Using a Custom Rule and click Next.
- Enter a Claim rule name, such as ‘Name’ Attribute Name Transform, then set Custom rule to the following:
c:[Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]
=> issue(Type = "Name", Issuer = c.Issuer, OriginalIssuer = c.OriginalIssuer, Value = c.Value, ValueType = c.ValueType);
Click Finish when you are done.
- Click OK on the Edit Claim Rules dialog.
- Go to Service > Certificates, select your Token-signing certificate and click View Certificate… in the Actions pane.
- Go to the Details tab and click Copy to File… and click Next on the Certificate Export Wizard introduction.
- Select Base-64 encoded X.509 (.CER) and click Next.
- Choose a location to save the certificate file, click Next and click Finish, OK, and OK again.
- Go to Authentication Policies and click Edit under Primary Authentication Global Settings.
- Under Intranet, check Forms Authentication and click OK.Note: This is required for Windows Server 2012 R2. Previous versions of Windows already have Forms Authentication enabled by default. Also note that enabling Forms Authentication will apply to all sites configured, not just PagerDuty.An alternative option is to set forms as a fall back authentication method for intranet using the following PowerShell command:
Set-AdfsGlobalAuthenticationPolicy –PrimaryIntranetAuthenticationProvider @('WindowsAuthentication','FormsAuthentication')
- Open the certificate file you exported in Notepad (or another plain text editor) and copy the contents.Note: You must include the
-----BEGIN CERTIFICATE----- and
-----END CERTIFICATE----- headers when copying the certificate file contents. You should use Notepad or another plain text editor to open the certificate file; WordPad, Word, etc. are not plain text editors and may prevent you from copying the certificate correctly.
- In PagerDuty, paste the certificate in the X.509 Certificate field, then enter the Login URL for your AD FS service. The Login URL is usually the FQDN or IP or your server with
/adfs/ls appended (i.e.
https://login.company.com/adfs/ls).When you complete the steps in this guide and are done testing, you can return to this page to disable user logins via username and password.With auto provisioning enabled, you can allow SSO users to create a PagerDuty account without manual intervention, however please keep in mind that adding additional users will affect your billing if you go over the number of users included in your pricing plan.Click Save Changes when you are done on this page.
- Congratulations! You should now be able to login to PagerDuty using AD FS.
Can the account owner log in without SSO if username and password authentication is disabled?
Even with this username and password authentication disabled for users, the Account Owner will always be able to login with their username and password as a backup option should you need to change the SSO configuration or disable it completely.
Why don’t I see the Single Sign-on option when I go to Account Settings?
SSO is only available in accounts on our current Standard or Enterprise plans. Please contact our sales team if you are interested in upgrading your plan.
How do I create a Custom Claim Rule to include user roles/job titles in my configuration?
Follow the steps you used to create a Custom Claim Rule for ‘Name’ Attribute Name Transform, but set Claim Rule to the following:
c:[Type == "jobresponsibilities"]
=> issue(Type = "Role", Issuer = c.Issuer, OriginalIssuer = c.OriginalIssuer, Value = c.Value, ValueType = c.ValueType);