To configure Microsoft authentication and SSO, you will need an authority URL & a client ID.
To generate these;
-
Sign into Azure Portal
-
Navigate to App registrations → New registration
-
Give this registration a name, and pick the account type option
-
Once registered, you will be able to obtain your client ID (Application ID)
-
On the app overview, select Add a certificate or secret & then New client secret
- On the overview page, select Add a Redirect URI → Add a platform → Single-page application
- 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
- 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
}