Documentation DigaSystem

Configure IdentityServer Clients

OIDC clients can be configured in an optional file Clients.json (located in your application folder near to web.config). The basic structure of the file is

JavaScript
[
	{
		...Client #1 Config ...
	},
	...
	{
		...Client #N Config...
	}
]


Example:

JavaScript
 [
 	{
    	"Enabled": true,
    	"ClientId": "jsDPE",
    	"ProtocolType": "oidc",
    	"ClientSecrets": [],
    	"RequireClientSecret": true,
		"RequireConsent": false,
    	"ClientName": "JavaScript DPE Client",
    	"AllowRememberConsent": true,
    	"AllowedGrantTypes": [
      		"implicit"
    	],
    	"AllowAccessTokensViaBrowser": true,
    	"RedirectUris": [
      		"any"
    	],
    	"PostLogoutRedirectUris": [],
    	"FrontChannelLogoutSessionRequired": true,
    	"BackChannelLogoutSessionRequired": true,
    	"AllowedScopes": [
      		"openid",
      		"profile",
      		"dpeservices"
    	],
    	"IdentityTokenLifetime": 3600,
    	"AccessTokenLifetime": 3600,
    	"AuthorizationCodeLifetime": 300,
    	"AbsoluteRefreshTokenLifetime": 2592000,
    	"SlidingRefreshTokenLifetime": 1296000,
    	"RefreshTokenUsage": 1,
    	"RefreshTokenExpiration": 1,
    	"EnableLocalLogin": true,
    	"IdentityProviderRestrictions": [],
    	"Claims": [],
    	"ClientClaimsPrefix": "client_",
    	"DeviceCodeLifetime": 300,
    	"AllowedCorsOrigins": [],
    	"Properties": {}
  	}
]