Klevr Product Documentation logo

Portal Library Variables Guide

When releasing the portal code for a Klevr Portal Instance, a library variable group MUST be set up.

When releasing the portal code for a Klevr Portal Instance, a library variable group MUST be set up. If this guide is not followed correctly, then it is possible that the Klevr portal will not be able to start at all, or, it will not function properly. Proceed with caution.

Library Variable Group

Variable NamedValueRequired?
Dynamics.Urlhttps://orgxxx.crm6.dynamics.com/YES
Dynamics.AppIdApp ID for app registration in Azure that has access to Dynamics. Leave blank to use the website's managed identity for authentication. Be sure to add the managed identity as a sys admin to the dynamics environmentNo
Dynamics.SecretSecret key for the App Registration above Leave blank to use the website's managed identity for authentication.No
ConnectionStrings.umbracoDbDSNFull Connection string to SQL DB. Typically this is automatically managed by the infra/deployment pipelineYes
Umbraco.CMS.WebRouting. UmbracoApplicationUrlhttps://{{frontend url for web app}}Yes (will cause issues if incorrect)
Umbraco.Storage.AzureBlob.Media. ConnectionStringConnection String for the Storage account that contains the media folder.Yes (unless you set Klevr.UseLocalStorage = true)
Klevr.CustomerCode3-4 letter customer code. This value MUST match the customer code within WS internal dynamics for billing purposes.Yes
Serilog.MinimumLevel.Override. KlevrPortalThis value will default to Warning if the variable is not added. However, changing this to "Debug" (case sensitive!) will make it much easier to develop in the portal.No
ApplicationInsights.ConnectionStringFull Connection string from application insightsYes, if you want app insights logging
Klevr.AllowBackofficeADLoginBoolean. If set to "true" then make sure to follow the rest of the required setup steps in the appropriate guide.Default= false
Klevr.AllowFrontendADLoginBoolean.If set to "true" then make sure to follow the rest of the required setup steps in the appropriate guide.Default= False
Klevr.AllowFrontendB2CLoginBoolean. If set to "true" then make sure to follow the rest of the required setup steps in the appropriate guide.Default= False
Klevr.Authorityhttps://login.microsoftonline.com/{{Your tenant ID}}/v2.0/If AD Login Required
KlevrArtifactVersionSpecific Version of Portal Code to be released to the web app. * by default will release the most recent version.Yes
Umbraco.CMS.Global.Smtp .From .Host .Username .Password .Port (default 587) .SecureSocetOptions (default auto)The Sendgrid account has been configured for the customer. If the customer does not have a Sendgrid account, then this variable can be removed from the grid. However, this will result in a default email account being used. This email account has been blocked by Sendgrid. This will mean that users will not receive password reset or verification emails. DO NOT leave this variable blank, your portal will not work if this variable is blank.Yes, if you want emails to be sent
Umbraco.CMS.Content.Notifications. EmailThe Sendgrid email address that has been configured for the customer. If the customer does not have a Sendgrid account, then this variable can be removed from the grid. However, this will result in a default email account being used. This email account has been blocked by Sendgrid. This will mean that users will not receive password reset or verification emails. DO NOT leave this variable blank, your portal will not work if this variable is blank.Yes
Klevr.MemberSessionTimeoutTimeout in minutes for members (external users) of the portal. This will be the time since the last interaction when they are automatically timed out, and will need to log in again to continue. Default is blank, meaning they won't be forcibly logged out, even if they close the browser. They are logged out whenever the portal is restarted.blank for infinite (default), or number of minutes
Klevr.HTMLProcessingInLists"PlainText" (default) or "RichText". Controls whether lists will show field contents containing rich text in a formatted manner (e.g. bold italic) or just plain text.Default Plaintext
Klevr.DisableLocalLogin"true" or "false". Toggles the option to use local logins. If switched off and you have one External Auth option, it will automatically redirect, otherwise if you have multiple, the butoons for each will be rendered and the user can click a specific one to redirect to.Default false
Klevr.IgnoreNuCache"true" or "false". Toggles the option to enable or disable NuCache used by Umbraco for loading published content and media when available. Setting this to false will ignore the cache and the data is always fetched from the database.Default true
Klevr.PwdMixCaseForce the use of upper and lower case letters in passwordsdefault false
Klevr.PwdIncludeNumbersForce the use of numbers in passwordsdefault false
Klevr.PwdIncludeSpecialCharactersForce the use of Special Characters in passwords Note that recent studies and recommendations found that simply using long passwords are better as users don't write them down, but if they are forced to use weird passwords, they tend to write them down.default false
Klevr.PwdMinLengthSpecify the minimum length for passwordsdefault 10
Klevr.SurveyJSLicenseKeySet it to the SurveyJS license key. Can be found by logging into surveyjs.io.For
Klevr.BusinessNumberAPIKeyAUSet this to the AUBN license key found at https://abr.business.gov.au/For use of AUBN control
Klevr.BusinessNumberAPIKeyNZSet this to the NZBN license key found at https://www.nzbn.govt.nz/For use of NZBN control
Klevr.AddressFinderAPIKeySet this to the license key found on the AddressFinder dashboard. https://addressfinder.com/For use of the AddressFinder control
Klevr.MatchRegristrationOnExistingEmailAddressSet this to true to enable logic for duplicate registering email addresses.default false
Klevr.IgnoreStripeApiVersionMismatchSet to ignore strict version checking on Stripe. DO NOT ENABLE ON PRODUCTION, but use for demo and non-prod environments. Ensure the word in the version matches (e.g. acacia) as Stripe changes the word when there are breaking changes.False (default) - Strict Check. True to allow a mismatch.

Application Insights Connection String

Application Insights Connection String (1)

Application Insights Connection String (1)

Database Connection String

Database Connection String (2)

Database Connection String (2)

Azure Entra ID (Tenant)

Azure Entra ID (Tenant) (3)

Azure Entra ID (Tenant) (3)

Web App URL

Web App URL (4)

Web App URL (4)

Storage Account Connection String

Storage Account Connection String (5)

Storage Account Connection String (5)

💡 See Also

  • Other variables will need to be added for specific functionality (Stripe integration, azure blob attachments, etc...). However, those variables are detailed in the guides for those functionalities. The variables mentioned in this guideline are the baseline variables required for all portal deployments.

Last updated on