82 lines
2.0 KiB
JSON
82 lines
2.0 KiB
JSON
{
|
|
"realm": "mccn",
|
|
"enabled": true,
|
|
"sslRequired": "external",
|
|
"registrationAllowed": false,
|
|
"loginWithEmailAllowed": true,
|
|
"duplicateEmailsAllowed": false,
|
|
"resetPasswordAllowed": true,
|
|
"editUsernameAllowed": false,
|
|
"bruteForceProtected": true,
|
|
"permanentLockout": false,
|
|
"maxFailureWaitSeconds": 900,
|
|
"minimumQuickLoginWaitSeconds": 60,
|
|
"waitIncrementSeconds": 60,
|
|
"quickLoginCheckMilliSeconds": 1000,
|
|
"maxDeltaTimeSeconds": 43200,
|
|
"failureFactor": 30,
|
|
"accessTokenLifespan": 1800,
|
|
"accessTokenLifespanForImplicitFlow": 900,
|
|
"ssoSessionIdleTimeout": 1800,
|
|
"ssoSessionMaxLifespan": 36000,
|
|
"offlineSessionIdleTimeout": 2592000,
|
|
"clients": [
|
|
{
|
|
"clientId": "mccn-api",
|
|
"name": "Mccn API",
|
|
"enabled": true,
|
|
"clientAuthenticatorType": "client-secret",
|
|
"secret": "change-this-secret",
|
|
"serviceAccountsEnabled": true,
|
|
"authorizationServicesEnabled": false,
|
|
"publicClient": false,
|
|
"protocol": "openid-connect",
|
|
"standardFlowEnabled": false,
|
|
"implicitFlowEnabled": false,
|
|
"directAccessGrantsEnabled": false
|
|
},
|
|
{
|
|
"clientId": "mccn-swagger",
|
|
"name": "Mccn Swagger UI",
|
|
"enabled": true,
|
|
"publicClient": true,
|
|
"protocol": "openid-connect",
|
|
"standardFlowEnabled": true,
|
|
"directAccessGrantsEnabled": true,
|
|
"redirectUris": [
|
|
"http://localhost:5000/*",
|
|
"http://localhost:5001/*"
|
|
],
|
|
"webOrigins": [
|
|
"http://localhost:5000",
|
|
"http://localhost:5001"
|
|
]
|
|
}
|
|
],
|
|
"roles": {
|
|
"realm": [
|
|
{
|
|
"name": "user",
|
|
"description": "Regular user"
|
|
},
|
|
{
|
|
"name": "admin",
|
|
"description": "Administrator"
|
|
}
|
|
]
|
|
},
|
|
"users": [
|
|
{
|
|
"username": "service-account-mccn-api",
|
|
"enabled": true,
|
|
"serviceAccountClientId": "mccn-api",
|
|
"clientRoleMappings": {
|
|
"realm-management": [
|
|
{ "name": "manage-users" },
|
|
{ "name": "view-users" }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|