How to configure Microsoft authentication

To configure Microsoft authentication and SSO, you will need an authority URL & a client ID.

To generate these;

  1. Sign into Azure Portal

  2. Navigate to App registrations → New registration

  3. Give this registration a name, and pick the account type option

  4. Once registered, you will be able to obtain your client ID (Application ID)

  5. On the app overview, select Add a certificate or secret & then New client secret
    image

  1. On the overview page, select Add a Redirect URI → Add a platform → Single-page application
  2. specify http://localhost & http://localhost/assets/renew.html as the redirect URIs, and ensure you allow Access tokens and ID tokens and then select the configure button

  1. Copy your Directory ID. You can find this from the Portal settings → Directories page.

Finally, create a config.json file inside the install directory (typically C:\Program Files\Cristie\ProcessGuard) with the following info

{
“authority”: “https://login.microsoftonline.com/<-directory ID->”,
“clientId”: “<-client ID->”,
“scope”: “openid profile email”,
“responseType”: “code”,
“silentRenew”: true,
“useRefreshToken”: true,
“renewTimeBeforeTokenExpiresInSeconds”: 30
}