- Getting Started
- Requirements
- Best Practices
- Installation
- Updating
- Identity Server
- High Availability Add-on
Identity Server AppSettings.json
appsettings.json
file (C:\Program Files (x86)\UiPath\Orchestrator\Identity
) contains the out-of-the-box configuration settings for Identity Server. A second, identical file, appsettings.Production.json
, is the one that contains your specific Identity Server settings.
appsettings.Production.json
file. This file overrides any pre-existent settings within appsettings.json
after each installation process.
It is recommended that only administrators change the values of these parameters.
appsettings.Production.json
settings under any circumstances.
Parameters that are not documented in this page should not be changed.
All parameters are case sensitive.
Settings can be configured in multiple places. Here are the priorities used by Identity Server when determining the value of a setting, listed from high (1) to low (3):
- Value within the
appsettings.Production.json
file - Value within the
appsettings.json
file - Default value set in the code. Used only if a specific setting can't be found within
appsettings.Production.json
orappsettings.json
.
appsettings.json
file has an internal structure composed of multiple JSON sections separated by a comma.
ConnectionStrings
section is used to store the Identity Server database connection string. This value is populated by the installer.
appsettings.Production.json
and appsettings.json
.
"ConnectionStrings": { "DefaultConnection": "Server=.\\sqlexpress;Database=IdentityServer;User ID=<username>;Password=<password>;" }
"ConnectionStrings": { "DefaultConnection": "Server=.\\sqlexpress;Database=IdentityServer;User ID=<username>;Password=<password>;" }
EncryptionSettings
section is used to store tenant encryption keys. The values are automatically migrated from Orchestrator's UiPath.Orchestrator.dll.config
during installation.
appsettings.Production.json
and appsettings.json
.
"EncryptionSettings": {
"EncryptionKey": "3wkO1hkaXLwR9LZoRZIueIxG3GIEB/YMDZUWhD9AR8g="
}
"EncryptionSettings": {
"EncryptionKey": "3wkO1hkaXLwR9LZoRZIueIxG3GIEB/YMDZUWhD9AR8g="
}
Identity Server can be configured to use a local key (see above) or an Azure Key Vault (see below), just like Orchestrator.
"EncryptionSettings": {
"MultiTenantEncryptionKeyProvider": "AzureKeyVault",
"EncryptionKeyPerTenant": true,
"AzureKeyVaultAddress": "keyVaultAddress",
"AzureKeyVaultCertificateThumbprint": "keyvaultCertificateThumbprint",
"AzureKeyVaultClientId" : "azureClientId"
},
"EncryptionSettings": {
"MultiTenantEncryptionKeyProvider": "AzureKeyVault",
"EncryptionKeyPerTenant": true,
"AzureKeyVaultAddress": "keyVaultAddress",
"AzureKeyVaultCertificateThumbprint": "keyvaultCertificateThumbprint",
"AzureKeyVaultClientId" : "azureClientId"
},
MultiTenantEncryptionKeyProvider
- Indicates in which key management application to store the encryption keys generated per tenant from Orchestrator. By default, the setting hasConfigFileKey
value within the code. The accepted values areAzureKeyVault
andConfigFileKey
. During Identity Server installation, the value is copied from UiPath.Orchestrator.dll.configEncryptionKeyPerTenant.KeyProvider
setting.
UiPath.Orchestrator.dll.config
's SecureAppSettings section:
Identity Server Key |
Orchestrator Key |
---|---|
|
|
|
|
|
|
|
|
|
|
UiPath.Orchestrator.dll.config
is set to LocalMachine
, make sure that AzureKeyVaultCertificateStoreLocation
in appsettings.Production.json
has the same value.
UiPath.Orchestrator.dll.config
, you must also update Identity Server's appsettings.Production.json
with the same values.
Logging
section configures the log level for each component used by Identity Server. This is a generic logging configuration. Find
more information here.
appsettings.json
.
"Logging": {
"LogLevel": {
"Default": "Trace",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
"Logging": {
"LogLevel": {
"Default": "Trace",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
Microsoft
and Microsoft.Hosting.Lifetime
.
NLog
section is used to define how information is logged in Identity Server via NLog targets, just like in Orchestrator.
appsettings.json
.
json
"NLog": {
"IncludeScopes": true,
"throwConfigExceptions": false,
"targets": {
"EventLog": {
"type": "EventLog",
"source": "IdentityService",
"layout": "${longdate} ${logger} ${message}${onexception:${newline}${exception:maxInnerExceptionLevel=10:format=shortType,message,stacktrace:separator=*:innerExceptionSeparator=
	}}"
}
},
"rules": [
{
"logger": "*",
"minLevel": "Info",
"writeTo": "EventLog"
}
]
},
json
"NLog": {
"IncludeScopes": true,
"throwConfigExceptions": false,
"targets": {
"EventLog": {
"type": "EventLog",
"source": "IdentityService",
"layout": "${longdate} ${logger} ${message}${onexception:${newline}${exception:maxInnerExceptionLevel=10:format=shortType,message,stacktrace:separator=*:innerExceptionSeparator=
	}}"
}
},
"rules": [
{
"logger": "*",
"minLevel": "Info",
"writeTo": "EventLog"
}
]
},
By default, NLog is configured to write logs to ApplicationEvents. Read here more information about how to configure NLog using a JSON section.
AppSettings
section is Identity Server's main configuration section. This section has values within appsettings.Production.json
and appsettings.json
.
-
IdentityServerAddress
- Represents the audience that Identity Server checks when validating the token used to call Identity Server API. During installation, this field is automatically populated inside theappsettings.Production.json
with Identity Server's address. Do not modify this value because it will break Orchestrator data propagation.This setting has values withinappsettings.Production.json
andappsettings.json
.Note: Make sure to provide a lowercase URL as a value forIdentityServerAddress
; otherwise, an error occurs. -
Saml2ValidCertificateOnly
- If set totrue
, it doesn't allow the use of invalid certificates when configuring SAML2.By default, the setting hastrue
value within the code. -
EnablePII
- When set totrue
, the exceptions contain sensitive information (for example, the URL address of the external identity provider, or the address of Identity Server, etc.)By default, the setting hasfalse
value withinappsettings.json
and the code. HideErrorCodesInUi
- Control whether or not login error codes are displayed in the UI. This parameter is not displayed by default. The default value isfalse
. Set it totrue
to hide login error codes from the UI. For example,"HideErrorCodesInUi": true
.-
CookieValidationInterval
- Represents the time interval (in seconds) after which the cookie is checked to see if the user and the tenant are still active, and if the user has not logged in another browser. The value withinappsetttings.Production.json
is automatically migrated from Orchestrator, which has the same setting.By default, the value is set to60
seconds withinappsettings.Production.json
and the code. -
CookieExpireMinutes
- Represents the time interval (in minutes) after which the Identity Server cookie expires. The value withinappsetttings.Production.json
is automatically migrated from Orchestrator, which has the same setting.By default, the value is set to60
minutes withinappsettings.Production.json
and the code. -
OrchestratorUrl
- Represents the URL of the Orchestrator. This is where Identity Server redirects you when you click the Orchestrator icon within Identity Management Portal's Hub menu.The value is set during installation withinappsettings.Production.json
.Note: Make sure to provide a lowercase URL as a value forOrchestratorUrl
; otherwise, an error occurs."AppSettings": { "IdentityServerAddress": "https://myIdentity.domain.local/identity", "EnablePII": false, "HideErrorCodesInUi": true, "CookieExpireMinutes": 30, "OrchestratorUrl": "https://myOrchestratorURL.domain.local" } }
"AppSettings": { "IdentityServerAddress": "https://myIdentity.domain.local/identity", "EnablePII": false, "HideErrorCodesInUi": true, "CookieExpireMinutes": 30, "OrchestratorUrl": "https://myOrchestratorURL.domain.local" } }
LocalizationSettings
section has the following default values within the code:
"LocalizationSettings": {
"EnabledLanguages": "en,ja,de,es,es-MX,fr,ko,pt,pt-BR,ru,tr,zh-CN"
}
"LocalizationSettings": {
"EnabledLanguages": "en,ja,de,es,es-MX,fr,ko,pt,pt-BR,ru,tr,zh-CN"
}
EnabledLanguages
- Lists the languages available in Identity Server. It is used to limit the number of available languages.
LoadBalancerSettings
section has the following default values within appsettings.Production.json
and the code:
"LoadBalancerSettings": {
"UseRedis": false,
"RedisConnectionString": "",
"SlidingExpirationTimeInSeconds": 600
}
"LoadBalancerSettings": {
"UseRedis": false,
"RedisConnectionString": "",
"SlidingExpirationTimeInSeconds": 600
}
appsetttings.Production.json
are automatically migrated from Orchestrator's UiPath.Orchestrator.dll.config
in case of a multi-node upgrade. If Redis is not configured inside Orchestrator, then appsettings.Production.json
will contain this setting.
UseRedis
- Use Redis as a database to distribute messages and cache to and from all the machines connected through your load balancer. This is mandatory for multi-node.-
RedisConnectionString
- Can only be used ifLoadBalancer.UseRedis
is set totrue
. A connection string that enables you to set up your Redis server, which contains the URL of the server, the password, and port used with Redis. It is also possible to enable SSL encrypted connections between the Orchestrator nodes and the Redis service. For more information, please click here. Examples:- with SSL enabled -
"RedisConnectionString": "DOCWREDIS02:6379,password=12345678,ssl=true"
- without SSL enabled -
"RedisConnectionString": "DOCWREDIS02:6379,password=12345678"
- with SSL enabled -
SlidingExpirationTimeInSeconds
- Controls the sliding expiration time of an item inside the cache. This expiration time applies for both Redis Cache and InMemory Cache (this is the default when Redis is not available).
SigningCredentialSettings
section describes the location of the certificate used to sign the tokens generated by the Identity Server. The values of
the settings in this section are populated by the installer based on your input. The settings can be configured to allow the
reading of the certificate from a certificate store or from Azure Key Vault.
Certificate Rotation Settings
SigningCredential
- Use to specify your default certificate'sName
,Location
, andNameType
.-
ValidationKeys
- Use to indicate your second certificate'sName
,Location
, andNameType
. This is required for certificate rotation.Note:For security reasons, the signing certificate must have a 2048-bit public key. Make sure the certificate is valid, unexpired, and Identity Server has access to the private key.
Refer to Certificate Rotation for more on the adjustments you need to make to theSigningCredentialSettings
section to ensure that you always use a certificate within its validity period.
Example of Certificate Store Location Settings
Here's a classic configuration for finding a certificate inside the certificate store:
"SigningCredentialSettings": {
"StoreLocation": {
"Name": "30f3c11e676fc8eb1f9dd4e330f3ce668d796796",
"Location": "LocalMachine",
"NameType": "Thumbprint"
}
"SigningCredentialSettings": {
"StoreLocation": {
"Name": "30f3c11e676fc8eb1f9dd4e330f3ce668d796796",
"Location": "LocalMachine",
"NameType": "Thumbprint"
}
Name
represents a Thumbprint value.
Location
and NameType
.
Example of Azure Key Vault Location Settings
"SigningCredentialSettings": {
"AzureKeyVaultLocation": {
"KeyName": "key_name_534553553"
}
"SigningCredentialSettings": {
"AzureKeyVaultLocation": {
"KeyName": "key_name_534553553"
}
KeyName
represents the key to search for inside Azure Key Vault.
-
RestrictBasicAuthentication
- Enables you to control if users can log in to an Orchestrator instance using basic authentication credentials. This setting is not displayed by default inappsettings.Production.json
. The following values are available:true
- Users cannot log in using basic authentication credentials.false
- Users can log in using basic authentication credentials. This is the default value.
-
EnableBasicAuthenticationForHostTenant
- Enables you to control if a host admin can log in to the host tenant of an Orchestrator instance using basic authentication credentials. This setting is not displayed by default in theappsettings.Production.json
file. The following values are available:true
- The host admin can log in using basic authentication credentials. This is the default value.false
- The host admin cannot log in using basic authentication credentials.
RestrictBasicAuthentication
parameter, meaning that if you set EnableBasicAuthenticationForHostTenant
to true
and RestrictBasicAuthentication
to true
, you can only log in with basic authentication credentials at the host level.