This feature is available in Lucy 4.6 or newer version.
Lucy allows you to set the SSO authentication by using the Lightweight Directory Access Protocol (LDAP) to access Admin console and EndUser portal. This also allows you to use a non-unique link for the awareness website within a campaign.
In general terms, SSO in Lucy can be used for:
To use SSO in Lucy you should have installed Active Directory Federation Services (AD FS) on your Windows server. Lucy uses Security Assertion Markup Language 2.0 (SAML 2.0) for exchanging authentication and authorization data, which supports the following versions of AD FS:
The connection to the AD FS can be configured within the Settings / SSO Configuration:
For example, your Federation Service is located at https://fs.domain.tld/, then the link to download the FederationMetadata.xml file looks like: https://fs.domain.tld/FederationMetadata/2007-06/FederationMetadata.xml
The URL of Identity Provider Endpoint can be taken from the FederationMetadata.xml file we downloaded earlier:
The Certificate Thumbprint can be taken from the AD FS server. Open Server Manager > click Tools > click AD FS Management > expand Service and select the Certificates node > open the certificate from the "Token-signing" section:
In the end, the SSO Configuration page will look like this:
Attention If the Lucy Admin Console is configured on a non-standard port (for example, port 8443, see more here), then you will need to add two separate entry of Relying Party Trust with the identical parameters, but different Federation metadata address (URL):
The first will be: https://lucydomain.com/service-provider/endpoint/metadata/lucy-sp
In case access to the Lucy Admin Console is limited to a range of IP addresses, you must include an ADFS server in this range.
Now that we have configured Lucy as the service provider, ADFS as the identity provider (IdP), exchanged metadata between the two and configured some basic claims rules. We are now able to test authentication.
Note User ID may differ from the E-mail address specified in the Active Directory attributes. If this is the case, you can enabled Alternate Login ID. Microsoft strongly recommend using the mail attribute for sign in.
This option allows you to obtain a static link of the awareness website. This can be useful in the case when you do not need to send e-mail messages to each user, and to distribute only one link through other sources. The link is unique in the context of a specific awareness scenario and campaign.
The list of possible domains for the awareness web site is limited to those domains that you added to the Relying Party Trust in AD FS. You can add as many domains as you need by simply replacing the domain name in the Lucy Metadata Endpoint link.
The option SSO for Awareness Websites is available in the Base Settings section of campaign:
The option can be used in conjunction with the option "Do not send emails" (Awareness Settings) that blocking the sending of e-mail messages to users:
The global link that can be used by users to access awareness website is placed under the Website section of the Awareness Settings:
Note In order this feature to work you should also enable SSL for the domain used in the awareness scenario:
How to update or replace SSL certificate used for SSO authentication?
You should first update your SSL certificate within the SSL Settings. Refer to this page for detailed instructions.
Once the SSL certificate is updated, go to the SSO Settings page, upload XML metadata file and click Save button. To verify whether the certificate is applied, click "Download Certificate" link, open the file and check certificate details.
Issue: An error occurs when importing a data about the relying party (Lucy Metadata Endpoint URL):
Solution: Copy the URL of Lucy Metadata Endpoint from the SSO Configuration page and paste into the address bar in your browser. Rename the downloaded file to "lucy-sp.xml". Use the file to import the data about relying party:
Issue: A blank page is opened after successful login with a single sign-on.
Solution: The time difference between AD FS and Lucy servers can cause an authentication problem. Make sure that the time zone setting is correct on the Advanced Settings page in Lucy.
Issue: (AD FS) Login with a single sign-on sometimes does not work (it redirects to the Lucy's login page after successful login at AD FS website) .
Solution: Disable the revocation check on your AD FS server by the PowerShell command (see details here):
Set-AdfsRelyingPartyTrust -TargetName "Your RelyingParty Name" -SigningCertificateRevocationCheck None
Issue: (AD FS) Login with a single sign-on stopped working after update to Lucy 4.7 (it redirects to the Lucy's login page after successful login at AD FS website) .
Solution: Update the Relying Party Trust on your Windows Server by clicking "Update from Federation Metadata…" link in AD FS Management console or through the PowerShell.
Issue: A blank window appears after successful authentication at SSO provider website and there an error in the web server logs (Apache): "Uncaught exception 'SimpleSAML\\Error\\Error' with message 'ACSPARAMS'".
Solution: Verify your SSO provider settings, make sure that all required attributes are passed to Lucy during Single sign-on authentication.