327 lines
9.6 KiB
JSON
327 lines
9.6 KiB
JSON
{
|
|
"realm": "callcenter",
|
|
"displayName": "Аймак Колл-центр",
|
|
"enabled": true,
|
|
"sslRequired": "external",
|
|
"registrationAllowed": false,
|
|
"loginWithEmailAllowed": false,
|
|
"duplicateEmailsAllowed": true,
|
|
"resetPasswordAllowed": false,
|
|
"editUsernameAllowed": false,
|
|
"rememberMe": true,
|
|
"bruteForceProtected": true,
|
|
"permanentLockout": false,
|
|
"failureFactor": 10,
|
|
"waitIncrementSeconds": 60,
|
|
"maxFailureWaitSeconds": 900,
|
|
"internationalizationEnabled": true,
|
|
"supportedLocales": [
|
|
"ru",
|
|
"kk",
|
|
"en"
|
|
],
|
|
"defaultLocale": "ru",
|
|
"accessTokenLifespan": 900,
|
|
"ssoSessionIdleTimeout": 43200,
|
|
"ssoSessionMaxLifespan": 86400,
|
|
"passwordPolicy": "length(12) and notUsername",
|
|
"roles": {
|
|
"realm": [
|
|
{
|
|
"name": "admin",
|
|
"description": "Администратор"
|
|
},
|
|
{
|
|
"name": "supervisor",
|
|
"description": "Супервизор"
|
|
},
|
|
{
|
|
"name": "operator",
|
|
"description": "Оператор"
|
|
},
|
|
{
|
|
"name": "analyst",
|
|
"description": "Аналитик"
|
|
}
|
|
]
|
|
},
|
|
"clients": [
|
|
{
|
|
"clientId": "callcenter-platform",
|
|
"name": "Contact-center platform API",
|
|
"enabled": true,
|
|
"bearerOnly": true,
|
|
"publicClient": false,
|
|
"standardFlowEnabled": false,
|
|
"directAccessGrantsEnabled": false
|
|
},
|
|
{
|
|
"clientId": "callcenter-auth",
|
|
"name": "Contact-center login bridge",
|
|
"enabled": true,
|
|
"publicClient": false,
|
|
"clientAuthenticatorType": "client-secret",
|
|
"secret": "${AUTH_CLIENT_SECRET}",
|
|
"standardFlowEnabled": true,
|
|
"directAccessGrantsEnabled": false,
|
|
"implicitFlowEnabled": false,
|
|
"serviceAccountsEnabled": false,
|
|
"rootUrl": "https://aimaq.konturai.kz",
|
|
"redirectUris": [
|
|
"https://aimaq.konturai.kz/proxy/auth/auth/oidc/callback"
|
|
],
|
|
"webOrigins": [
|
|
"https://aimaq.konturai.kz"
|
|
],
|
|
"attributes": {
|
|
"pkce.code.challenge.method": "S256",
|
|
"post.logout.redirect.uris": "https://aimaq.konturai.kz/*"
|
|
},
|
|
"defaultClientScopes": [
|
|
"basic",
|
|
"profile",
|
|
"email",
|
|
"roles",
|
|
"web-origins",
|
|
"acr"
|
|
],
|
|
"optionalClientScopes": [],
|
|
"protocolMappers": [
|
|
{
|
|
"name": "tenant_id",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
|
"config": {
|
|
"user.attribute": "tenant_id",
|
|
"claim.name": "tenant_id",
|
|
"jsonType.label": "String",
|
|
"access.token.claim": "true",
|
|
"id.token.claim": "true",
|
|
"userinfo.token.claim": "true"
|
|
}
|
|
},
|
|
{
|
|
"name": "roles",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-usermodel-realm-role-mapper",
|
|
"config": {
|
|
"claim.name": "roles",
|
|
"multivalued": "true",
|
|
"jsonType.label": "String",
|
|
"access.token.claim": "true",
|
|
"id.token.claim": "true",
|
|
"userinfo.token.claim": "true"
|
|
}
|
|
},
|
|
{
|
|
"name": "platform-audience",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-audience-mapper",
|
|
"config": {
|
|
"included.client.audience": "callcenter-platform",
|
|
"access.token.claim": "true",
|
|
"id.token.claim": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"clientId": "callcenter-web",
|
|
"name": "Contact-center web",
|
|
"enabled": true,
|
|
"publicClient": true,
|
|
"standardFlowEnabled": true,
|
|
"directAccessGrantsEnabled": false,
|
|
"implicitFlowEnabled": false,
|
|
"rootUrl": "https://aimaq.konturai.kz",
|
|
"redirectUris": [
|
|
"https://aimaq.konturai.kz/*"
|
|
],
|
|
"webOrigins": [
|
|
"https://aimaq.konturai.kz"
|
|
],
|
|
"attributes": {
|
|
"pkce.code.challenge.method": "S256",
|
|
"post.logout.redirect.uris": "https://aimaq.konturai.kz/*"
|
|
},
|
|
"defaultClientScopes": [
|
|
"basic",
|
|
"profile",
|
|
"email",
|
|
"roles",
|
|
"web-origins",
|
|
"acr"
|
|
],
|
|
"optionalClientScopes": [],
|
|
"protocolMappers": [
|
|
{
|
|
"name": "tenant_id",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
|
"config": {
|
|
"user.attribute": "tenant_id",
|
|
"claim.name": "tenant_id",
|
|
"jsonType.label": "String",
|
|
"access.token.claim": "true",
|
|
"id.token.claim": "true",
|
|
"userinfo.token.claim": "true"
|
|
}
|
|
},
|
|
{
|
|
"name": "roles",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-usermodel-realm-role-mapper",
|
|
"config": {
|
|
"claim.name": "roles",
|
|
"multivalued": "true",
|
|
"jsonType.label": "String",
|
|
"access.token.claim": "true",
|
|
"id.token.claim": "true",
|
|
"userinfo.token.claim": "true"
|
|
}
|
|
},
|
|
{
|
|
"name": "platform-audience",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-audience-mapper",
|
|
"config": {
|
|
"included.client.audience": "callcenter-platform",
|
|
"access.token.claim": "true",
|
|
"id.token.claim": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"clientId": "callcenter-voice",
|
|
"name": "Voice engine service account",
|
|
"enabled": true,
|
|
"publicClient": false,
|
|
"clientAuthenticatorType": "client-secret",
|
|
"secret": "${VOICE_CLIENT_SECRET}",
|
|
"standardFlowEnabled": false,
|
|
"directAccessGrantsEnabled": false,
|
|
"serviceAccountsEnabled": true,
|
|
"defaultClientScopes": [
|
|
"basic",
|
|
"roles"
|
|
],
|
|
"protocolMappers": [
|
|
{
|
|
"name": "platform-audience",
|
|
"protocol": "openid-connect",
|
|
"protocolMapper": "oidc-audience-mapper",
|
|
"config": {
|
|
"included.client.audience": "callcenter-platform",
|
|
"access.token.claim": "true",
|
|
"id.token.claim": "false"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"id": "usr_bdcbef7c68",
|
|
"username": "admin",
|
|
"firstName": "System",
|
|
"lastName": "Admin",
|
|
"enabled": true,
|
|
"attributes": {
|
|
"tenant_id": [
|
|
"dev-aimaq"
|
|
]
|
|
},
|
|
"realmRoles": [
|
|
"admin"
|
|
],
|
|
"credentials": [
|
|
{
|
|
"type": "password",
|
|
"value": "${KC_PASSWORD_ADMIN}",
|
|
"temporary": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "usr_8164b6518f",
|
|
"username": "supervisor",
|
|
"firstName": "Shift",
|
|
"lastName": "Supervisor",
|
|
"enabled": true,
|
|
"attributes": {
|
|
"tenant_id": [
|
|
"dev-aimaq"
|
|
]
|
|
},
|
|
"realmRoles": [
|
|
"supervisor"
|
|
],
|
|
"credentials": [
|
|
{
|
|
"type": "password",
|
|
"value": "${KC_PASSWORD_SUPERVISOR}",
|
|
"temporary": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "usr_add9799554",
|
|
"username": "operator",
|
|
"firstName": "Call",
|
|
"lastName": "Operator",
|
|
"enabled": true,
|
|
"attributes": {
|
|
"tenant_id": [
|
|
"dev-aimaq"
|
|
]
|
|
},
|
|
"realmRoles": [
|
|
"operator"
|
|
],
|
|
"credentials": [
|
|
{
|
|
"type": "password",
|
|
"value": "${KC_PASSWORD_OPERATOR}",
|
|
"temporary": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "usr_f342af6751",
|
|
"username": "analyst",
|
|
"firstName": "Business",
|
|
"lastName": "Analyst",
|
|
"enabled": true,
|
|
"attributes": {
|
|
"tenant_id": [
|
|
"dev-aimaq"
|
|
]
|
|
},
|
|
"realmRoles": [
|
|
"analyst"
|
|
],
|
|
"credentials": [
|
|
{
|
|
"type": "password",
|
|
"value": "${KC_PASSWORD_ANALYST}",
|
|
"temporary": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"components": {
|
|
"org.keycloak.userprofile.UserProfileProvider": [
|
|
{
|
|
"providerId": "declarative-user-profile",
|
|
"subComponents": {},
|
|
"config": {
|
|
"kc.user.profile.config": [
|
|
"{\"attributes\": [{\"name\": \"username\", \"displayName\": \"Логин\", \"validations\": {\"length\": {\"min\": 3, \"max\": 255}, \"username-prohibited-characters\": {}, \"up-username-not-idn-homograph\": {}}, \"permissions\": {\"view\": [\"admin\", \"user\"], \"edit\": [\"admin\", \"user\"]}, \"multivalued\": false}, {\"name\": \"email\", \"displayName\": \"Email\", \"validations\": {\"email\": {}, \"length\": {\"max\": 255}}, \"permissions\": {\"view\": [\"admin\", \"user\"], \"edit\": [\"admin\", \"user\"]}, \"multivalued\": false}, {\"name\": \"firstName\", \"displayName\": \"Имя\", \"validations\": {\"length\": {\"max\": 255}, \"person-name-prohibited-characters\": {}}, \"permissions\": {\"view\": [\"admin\", \"user\"], \"edit\": [\"admin\", \"user\"]}, \"multivalued\": false}, {\"name\": \"lastName\", \"displayName\": \"Фамилия\", \"validations\": {\"length\": {\"max\": 255}, \"person-name-prohibited-characters\": {}}, \"permissions\": {\"view\": [\"admin\", \"user\"], \"edit\": [\"admin\", \"user\"]}, \"multivalued\": false}, {\"name\": \"tenant_id\", \"displayName\": \"Арендатор\", \"validations\": {\"length\": {\"min\": 1, \"max\": 64}}, \"permissions\": {\"view\": [\"admin\", \"user\"], \"edit\": [\"admin\"]}, \"multivalued\": false}], \"groups\": [{\"name\": \"user-metadata\", \"displayHeader\": \"User metadata\", \"displayDescription\": \"Attributes, which refer to user metadata\"}]}"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|