copy azure-config.example and rename file to azure-config.js.
const config = { path: '/login', clientID: '87f210d2-d3af-43dd-ba98-07adaff3e791', resource: '00000002-0000-0000-c000-000000000000', clientSecret: 'xxxx?=xxxxxx_xxxxxx?EQphp_e0[=5', identityMetadata: 'https://login.microsoftonline.com/24981a26-eb7a-4f13-95d4-66827d36dec8/.well-known/openid-configuration', responseType: 'code', responseMode: 'form_post', redirectUrl: 'https://login.akiomacloud.de/auth/openid/return', allowHttpForRedirectUrl: false, validateIssuer: false, issuer: null, passReqToCallback: false, loggingLevel: 'error', nonceLifetime: null, nonceMaxAmount: 5, clockSkew: null }; module.exports = config; |
In order to setup your own Azure installation you need to setup the following settings in the azure-config.js file:
1. Login to azure under
https://portal.azure.com/
2. Under App Registrations, register your new application.
It will ask you for name, supported accounts and redirect uri
Name and supported accounts please setup as per your preferences.
Redirect url required is https://login.akiomacloud.de/auth/azure/openid/return
where https://login.akiomacloud.de would be the domain running the Node.js server
2. Update the metadata link in azure-config.js with the new tenant information
identityMetadata: 'https://login.microsoftonline.com/24981a26-eb7a-4f13-95d4-66827d36dec8/.well-known/openid-configuration'
Where '24981a26-eb7a-4f13-95d4-66827d36dec8' is the tenant id (see screenshot)
3. Update the new clientID in the azure-config.js file to match your application clientID.
clientID: '87f210d2-d3af-43dd-ba98-07adaff3e791',
(see screenshot)
4. Go to the newly registered application settings and generate a new secret key. Use this key in the config file for azure(azure-config.js)
clientSecret: 'xxxxx?=xxxxxx_xxxxxx?EQphp_e0[=5'
This can be found in the application settings, App Registrations -> select application -> under Certificates & secrets
(see screenshot)
5. After setting up all the required configuration, restart your Node.js server and you are good to go!
In the PASOE config file, the configuration required for setting the generic login screen and azure authentication
eg.
<LoginScreen>loginGenericW</LoginScreen> |
For the Authentication in Node.js we also need to provide the URL:
eg.
<ssoAuthenticationURI>https://login.akiomacloud.de/auth</ssoAuthenticationURI> |
The allowed authentication for Azure is called AzureActiveDirectory. You can specify one authentication or multiple authentication strategies via a comma delimited list.
eg.
<AllowedAuthentication>AzureActiveDirectory,AkiomaUser</AllowedAuthentication> |