Single Sign On (SSO) Integration

Single Sign On (SSO) Integration

Veracity can integrate with your single sign on provider using OpenID Connect or Security Assertion Markup Language (SAML).  This integration allows your enterprise users to log into the LRS user interface without providing a password. Integrating a single sign on provider does not automatically disable local accounts.

SSO integration is an Enterprise feature. 
For SaaS customers, Veracity will manage your SSO integrations. Contact support to schedule your SSO configuration.

Installing and Configuring SSO


Both SAML and OIDC integrations are system level plugins, and must be enabled in the plugin admin area.  



Choose "Activate a Plugin"



Find OpenID Connect or SAML. Click Activate. 



You will be presented with a configuration dialog.  Below is a description of the configuration prompts.

OIDC configuration values

  1. Display Name - a name for the plugin. Users will see this name on the login page
  2. Active - whether or not the plugin is activated. Setting this to false will disable the plugin without forgetting its settings.
  3. Override Auth - Use this plugin to replace the normal login flow. Rather than being presented the login page, users will automatically be redirected to the SSO provider. This setting may make it impossible to access the system, if the SSO configuration is incorrect! In this case, you'll need to restart the server with the flag --disablePlugins=true.
  4. Client ID - this value will be provided by your SSO vendor
  5. Client Secret - this value will be provided by your SSO vendor
  6. Issuer - this value will be provided by your SSO vendor
  7. Scope - this value will be provided by your SSO vendor. Generally, you'll include both "email" and "openid"
  8. Response Type [code, ID Token, Token] - this value will be provided by your SSO vendor
  9. Redirect Override URI - override the callback URI supplied by the server to the SSO provider. This is only necessary in configurations where the LRS is behind a proxy and cannot properly construct it's own callback URI.
  10. Login Success Redirect - The page to redirect the user to on successful authentication
  11. Create Users - whether a new user should be created in the LRS for successful logins that do not currently have LRS accounts.

SAML configuration values

The SAML plugin is not bundled into the software build. Contact Veracity for a copy of the plugin code.
  1. Display Name - a name for the plugin. Users will see this name on the login page
  2. Active - whether or not the plugin is activated. Setting this to false will disable the plugin without forgetting its settings.
  3. Issuer - this value will be provided by your SSO vendor
  4. Entry Point - this value will be provided by your SSO vendor
  5. Certificate - this value will be provided by your SSO vendor
  6. Username Attribute ID - This is the ID of the SAML attribute that should be mapped to the users username
  7. Email Attribute ID - This is the ID of the SAML attribute that should be mapped to the users email address
  8. Signature Algorithm - this value will be provided by your SSO vendor
  9. identifierFormat (Name ID Policy) - this value will be provided by your SSO vendor
  10. metadataSignatureCert - This value should be the public key certificate that matches with the private key supplied in the privateKey setting
  11. privateKey - an RSA private key. This should be the private key paired with the public certificate in metadataSignatureCert 
  12. Want Assertions Signed 
  13. Create Users - whether a new user should be created in the LRS for successful logins that do not currently have LRS accounts.

Example Certificates

The certificates below illustrate the expected formats for the various certificate settings. Don't use these exact certificates, they are for reference only! Generate new ones using OpenSSL. 

metadataSignatureCert 
-----BEGIN CERTIFICATE-----
MIIF2zCCA8OgAwIBAgIUE7eOoztHY7Gs6HakivGc4gepXfMwDQYJKoZIhvcNAQEL
BQAwfTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk1EMRIwEAYDVQQHDAlSb2Nrdmls
bGUxDDAKBgNVBAoMA1ZUQzEfMB0GA1UEAwwWYmV0YS5lbnRlcnByaXNlLmxycy5p
bzEeMBwGCSqGSIb3DQEJARYPcm9iQHZlcmFjaXR5Lml0MB4XDTIzMTIwODE5NTQz
MloXDTI0MTIwNzE5NTQzMlowfTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk1EMRIw
EAYDVQQHDAlSb2NrdmlsbGUxDDAKBgNVBAoMA1ZUQzEfMB0GA1UEAwwWYmV0YS5l
bnRlcnByaXNlLmxycy5pbzEeMBwGCSqGSIb3DQEJARYPcm9iQHZlcmFjaXR5Lml0
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA1rxs4q/UFwhzQX2La6wJ
mT0xsauubWbjV+gK6opS0h1Si47YeEJ0JrXOCtoU/+SHNTQqZrszqIWhWcn9uBi7
ILGhx5sAQmL1Sfi/rRg4Qpk8tyE2lEr2MW3I31u+q6noWEfeGvd0a8laVEcuYpwo
EtUwZ6yPjDc0Jv8CP5Q6kh/eCkjRISPuv7o55uxzLg22E+JclMxG5ZG+SmGHhbWm
91rnpiegx8wP7arO/WtE22+cgXk6Z1BTp0Q88ID0/xLXX7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7
/Nz4M7oBm8hp+S6ZYoqd9xF/GGP97O1Di1/JebL8sWRAQKAr5kCcuIGiGMaNF9ie
xYDJUP8kUFke1wXP20TPU9niIMKTF9WGWh0XZ8ZiRIQ3kB6CqBUpsZ69Tr2CoY+V
/SKpMpZT4Gb0pfoFSue0HX2VyvV7FwnVPi6Jp1Poz31yQ9xaplOaR7obq3I1uA==
-----END RSA PRIVATE KEY-----

User matching

The SSO plugins will attempt to match a user from the SSO provider to a local account by email address. For OIDC, the email address should be present in the ID token returned by the SSO provider. The email claim is generally accessed by supplying the email scope in the scope list. For SAML, provide a value for the Email Attribute ID that returns the user's email address from the list of SAML attributes. 

When a user is not found with a matching email address, login to the LRS will fail, even after successful SSO authentication. You can check the "Create Users" checkbox to have a user created automatically to match the information from the SSO provider. 

Users created automatically from and SSO provider can ONLY log in via that provider. They cannot log in with a regular email address and password, even if you configure a password for them. You can modify this behavior by changing the user "source" property to "local" in your database.

Intersection with user controls

Some user management controls intersect with the SSO provider logins. The inactiveAccountDisable setting will still apply as normal to the user.  Users that are disabled or locked may successfully authenticate with the SSO provider, but cannot log into the LRS. For users that have both a local login and an SSO integration, logging in via SSO will reset the incorrect login counter. It will also clear any password reset key, as would a regular successful login. If a user has local 2FA enabled, on SSO authentication, the user will be redirected to the LRS 2FA page.

When using SSO, it is best to use 2FA at the SSO provider level, rather than the LRS level.  


    • Related Articles

    • LMS Integration

      The Veracity Learning offers seamless integration with your LMS to allow instructors and students to access the services of the LRS without leaving their LMS environment. This is accomplished via LTI (Learning Tools Interoperability), a standard from ...
    • SQL Integration

      SQL Integration is an Enterprise only feature Veracity LRS can synchronize your xAPI statements into an SQL database in real time. The LRS will open a connection to your SQL server, and flush out statements every 300 milliseconds. Statements are not ...
    • Elasticsearch Integration

      Overview The LRS can accelerate its dashboard and statement viewer by leveraging Elasticsearch in addition to MongoDB. When configured with the optional Elasticsearch connection, the LRS will synchronize xAPI statements in real time between these two ...
    • Versions of Veracity Learning

      Veracity Learning LRS comes in a few versions. The main version, and the one you're most likely looking at right now, is LRS.io. LRS.io This is our cloud hosted SaaS service, where anyone can create an LRS. You can use the free version, which is ...
    • Configuration

      Setting Configuration Values It's typical to use the .env file to store configuration settings. These settings only apply to on site installations. When using a hosted SaaS plan, Veracity will manage the settings for your deployment. Contact support ...