Authentication: SSO with Azure
Linkurious Enterprise supports SSO authentication via Microsoft Entra ID (formerly known as "Azure Active Directory" or "Azure AD").
Configuration
To set up Linkurious Enterprise authentication with Microsoft Entra ID, follow these steps:
- On the Azure Portal, in the "Microsoft Entra ID" section,
under
Add > App Registration, create a new App calledLinkurious - Assign the
Directory.Read.Allaccess right to the new app (notice: an Azure admin's approval is needed) - From the Azure Portal, find the following parameters:
authorizationURL, e.g.https://login.microsoftonline.com/60d78xxx-xxxx-xxxx-xxxx-xxxxxx9ca39b/oauth2/v2.0/authorizetokenURL, e.g.https://login.microsoftonline.com/60d78xxx-xxxx-xxxx-xxxx-xxxxxx9ca39b/oauth2/v2.0/tokenclientID, e.g.91d426e2-xxx-xxxx-xxxx-989f89b6b2a2clientSecret, e.g.gt7BHSnoIffbxxxxxxxxxxxxxxxxxxtyAG5xDotC8I=
- Add or edit the existing
oauth2section inside theaccesssection inlinkurious/data/config/production.json
Example access.oauth2 configuration with Microsoft Azure Active Directory:
"access": {
// [...]
"oauth2": {
"enabled": true,
"provider": "azure",
"authorizationURL": "https://login.microsoftonline.com/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/oauth2/v2.0/authorize",
"tokenURL": "https://login.microsoftonline.com/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/oauth2/v2.0/token",
"clientID": "XXXXXXXX-XXX-XXXX-XXXX-XXXXXXXXXXXX",
"clientSecret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
Note: Starting from version 4.2.1, Linkurious Enterprise automatically updates the OAuth2 token and authorization URLs to use the v2.0 endpoints:
https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/tokenhttps://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/authorizeIf your configuration uses the previous URLs (
/oauth2/tokenor/oauth2/authorize), they will be automatically updated at launch.
OAuth2 redirect URL
The OAuth2 redirect URL of Linkurious Enterprise is the following:
http(s)://HOST:PORT/api/auth/sso/return.
When setting the redirect URL, you need to choose a platform inside the application in Azure Active Directory.
The right platform to choose is Web (and not Single Page application).