Configure ADFS as a SAML source
Create the SAML 2.0 application in ADFS
- In your AD FS directory view, expand the Trust Relationships folder, and click Relying Party Trusts.
- Under Actions, click Add Relying Party Trust.
- Click Start.
- Select Data Source.
- Select Enter data about the relying party manually.
- Click Next.
- Specify Display Name.
- Provide the Relying Party Trust with a display name. We recommend
Rapid7 InsightVM Console
. - Click Next.
- Provide the Relying Party Trust with a display name. We recommend
- Choose Profile.
- Select AD FS profile. This option will explicitly list the SAML 2.0 protocol in its description.
- Click Next.
- In the Configure Certificate section, click Next.
- Configure the ACS URL.
- Select Enable support for the SAML 2.0 WebSSO protocol.
- In the Relying party SAML 2.0 SSO service URL field, paste the template SSO URL that you copied from the Security Console, for example:
https://<console-hostname>:<console-port>/saml/SSO
- Click Next.
- If ACS URL contains hostname/FQDN, you must set a Base Entity URL in the InsightVM Security Console.
Configure Identifiers
- In the Relying party trust identifier field, paste the entity ID that you copied from the Security Console, for example
http://rapid7.com/nsc/console/…
- Click Add, and then click Next.
- Do not enable the configure Multi-factor Authentication Now? option, instead click Next.
- In the Issuance Authorization Rules section, select Permit all users to access this relying party.
- Click Next.
Review Configuration
You can review all your configuration steps at this point in the wizard. After reviewing the configuration and ensuring the Edit Claim Rules option is selected, click Next, Finish, and Close.
Configure Claim Rules in ADFS
You need to create two Claim Rules to properly configure your Relying Party Trust.
After finishing the Relying Party Trust process, the Edit Claim Rules configuration window should display automatically. If it doesn’t display, select (or right-click) your new Relying Party Trust and click Edit Claim Rules.
Configure the LDAP Claims rule
- On the Issuance Transform Rules tab, click Add Rule.
- Choose the Rule Type.
- Select Send LDAP Attributes as Claims.
- Click Next.
- Configure the Claim Rule and add a name.
- Set the Attribute store to Active Directory.
- Set the LDAP Attribute to E-Mail-Addresses.
- Set the Outgoing Claim Type to E-Mail Address.
- Click Finish.
Configure the Email to Name rule
- On the Issuance Transform Rules tab, click Add Rule.
- Choose the Rule Type.
- Select Transform an Incoming Claim, then click Next.
- Configure the Claim Rule and add a name.
- Set the Incoming claim type to E-Mail Address.
- Set the Outgoing claim type to Name ID.
- Set the Outgoing name ID format to Email.
- Ensure Pass through all claim values is selected.
- Click Finish.
- Click Apply.
Download and upload SAML metadata
Metadata for Active Directory Federation Services must be downloaded in an XML file from a direct link. Use the following template: https://<adfs-hostname>/FederationMetadata/2007-06/FederationMetadata.xml
- Open a new browser window and search the complete metadata link. A successful connection will automatically trigger a metadata XML file download.
- In the Security Console, go the Administration page.
- In the Console section, click Authentication: 2FA and SSO.
- Click Configure SAML Source.
- Click Choose File and select the Azure metadata XML file.
- Click Save.
- Restart the console services.
Create a user in the Security Console
- On the Administration page, under User Management, click Add User.
- Complete the required User Information fields. The E-mail address field is case sensitive, and must exactly match the existing IdP user account email value.
- Select SAML Authorization Method > SAML.
- Select the User Role.
- Assign Site and Asset Group Permissions.
- Click Save.
Authenticate to InsightVM using SAML
- Generate an ADFS IDP Login URL using a tool, such as https://jackstromberg.com/adfs-relay-state-generator/
- Get the IDP URL string, which will be your ADFS .aspx URL, for example:
https://adfs.domain.com/adfs/ls/idpinitiatedsignon.aspx
- Open the Windows PowerShell command prompt window on the ADFS server.
- Select Run as administrator.
- Run the following command:
Get-ADFSEndpoint
- Get the full URL from Protocol SAML 2.0/WS-Federation, then append idpinitiatedsignon.aspx
- The Relying Party Identifier is your InsightVM Security Console Entity id URL, for example:
http://rapid7.com/nsc/console/…
- The Relay State/Target App is your InsightVM Console ACS URL, for example:
https://<console-hostname>:<console-port>/saml/SSO
- Click Generate URL for a Login URL.
- Share the Login URL with your users.
Did this page help you?