Klevr Product Documentation logo

SSO Azure AD

Klevr Portal Supports single sign-on via Azure AD in both the user-facing front end and the Umbraco back office.

Feature Overview

Klevr Portal Supports single sign-on via Azure AD in both the user-facing front end and the Umbraco back office. This feature provides all of the security benefits provided by leveraging single sign-on:

  • Centralised Authentication and Identity Management
  • Strong Authentication Options
  • Conditional Access Policies
  • Integration with Security tools
  • Auditing and Reporting
  • Password Management
  • Secure Application Integration

By leveraging SSO via Azure AD, organizations can enhance their security posture by implementing centralized authentication, strong access controls, advanced threat detection, and robust identity management capabilities.

In order to utilise Azure AD the following steps need to be followed.

App Registration

An App registration should already be set up to allow the klevr portal application to interact with the dynamics environment.

1
Open App Registrations in the Azure Portal

Enter the Azure portal and navigate to the App Registrations

Azure Portal Home Page

Azure Portal Home Page
2
Open the Authentication section

Select the App registration being used by your portal. Select the Authentication section in the left navbar.

App Registration Authentication Blade

App Registration Authentication Blade
3
Add the redirect URIs

Add the necessary Redirect URIs (examples above).

  • In order to allow Azure AD Login to work in the portal, add the URI of the site with the following path: https://<your site>/klevr/externalauth/site
  • Make sure to add all other common URIs
    • With and Without www
    • Any custom domains
4
Enable ID tokens

Within the Authentication blade, scroll down to the Implicit grant and hybrid flows section. Make sure that ID tokens (used for implicit and hybrid flows) is selected.

Authentication Blade with Implicit flows

Authentication Blade with Implicit flows

The same app service can be used for multiple environments, just continue to add redirect URIs to it,

5
Update the pipeline library variable group

In addition to this - you will need to update the pipeline library variable group to include the following:

  • Klevr.AllowBackofficeADLogin = true - If you want to allow SSO login to the Umbraco Back office
  • Klevr.AllowFrontendADLogin = true - If you want to allow SSO login to the frontend
  • Klevr.AllowFrontendB2CLogin = true - If you want to allow B2C
  • Klevr.ClientId = <The client ID of your app registration>
  • Klevr.ClientSecret = <The secret value set up in your app registration>
6
Run the pipeline

Once these changes have been made, run the pipeline (this may need to be done twice to ensure the production URL is pointing back toward the correct app service with the custom templates.

7
Run the model generator

After deploying twice, run the model generator from the umbraco back office.

  • Settings > Configuration > Models Builder (Should say models are out of date).
8
Restart the website

Restart the website (restart the frontend web app where the site is deployed). This is done from the app service resource in the Azure portal.

9
Log in with SSO

You can now login with SSO from Azure AD

  • In order to login, make sure the account you are logging in with is a guest user in the organisation's AD.

  • If the contact already exists in the Dynamics CRM then you must use the invitation process to merge the contacts on initial sign-in. If the user logs in without using the invitation process, and self-registration is allowed, a new CRM contact will automatically be created and linked with the user. This can be switched to the original contact by updating the Dynamics GUID for the newly created member in the Umbraco back office.

  • If self-registration is turned off, users will not be able to login with Azure AD on their FIRST attempt without the invitation code. Once they have accepted the invitation code, they will be able to login normally each time.

  • If you want to enforce the capture of certain information but do not want to use the invitation process, you can also use the profile completion tool. In this instance, you will need to allow self-registration.

Last updated on