2014-02-04 15:09:09 +00:00
|
|
|
{
|
|
|
|
"id": "Test",
|
|
|
|
"realm": "Test",
|
|
|
|
"enabled": true,
|
2014-02-21 17:12:54 +00:00
|
|
|
"accessTokenLifespan": 600,
|
2014-02-04 15:09:09 +00:00
|
|
|
"accessCodeLifespan": 600,
|
|
|
|
"accessCodeLifespanUserAction": 600,
|
2014-08-01 10:20:23 +00:00
|
|
|
"sslRequired": "external",
|
2014-02-04 15:09:09 +00:00
|
|
|
"registrationAllowed": true,
|
|
|
|
"resetPasswordAllowed": true,
|
|
|
|
"requiredCredentials": [ "password" ],
|
|
|
|
"smtpServer": {
|
|
|
|
"from": "auto@keycloak.org",
|
|
|
|
"host": "localhost",
|
|
|
|
"port":"3025"
|
|
|
|
},
|
|
|
|
"users" : [
|
|
|
|
{
|
|
|
|
"username" : "REALM_COMPOSITE_1_USER",
|
|
|
|
"enabled": true,
|
2014-04-29 16:15:28 +00:00
|
|
|
"email" : "test-user1@localhost",
|
2014-02-04 15:09:09 +00:00
|
|
|
"credentials" : [
|
|
|
|
{ "type" : "password",
|
|
|
|
"value" : "password" }
|
2014-07-07 18:24:59 +00:00
|
|
|
],
|
|
|
|
"realmRoles": [ "REALM_COMPOSITE_1" ]
|
2014-02-04 15:09:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"username" : "REALM_ROLE_1_USER",
|
|
|
|
"enabled": true,
|
2014-04-29 16:15:28 +00:00
|
|
|
"email" : "test-user2@localhost",
|
2014-02-04 15:09:09 +00:00
|
|
|
"credentials" : [
|
|
|
|
{ "type" : "password",
|
|
|
|
"value" : "password" }
|
2014-07-07 18:24:59 +00:00
|
|
|
],
|
|
|
|
"realmRoles": ["REALM_ROLE_1"]
|
2014-02-04 15:09:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"username" : "REALM_APP_COMPOSITE_USER",
|
|
|
|
"enabled": true,
|
2014-04-29 16:15:28 +00:00
|
|
|
"email" : "test-user3@localhost",
|
2014-02-04 15:09:09 +00:00
|
|
|
"credentials" : [
|
|
|
|
{ "type" : "password",
|
|
|
|
"value" : "password" }
|
2014-07-07 18:24:59 +00:00
|
|
|
],
|
|
|
|
"realmRoles": ["REALM_APP_COMPOSITE_ROLE"]
|
2014-02-04 15:09:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"username" : "REALM_APP_ROLE_USER",
|
|
|
|
"enabled": true,
|
2014-04-29 16:15:28 +00:00
|
|
|
"email" : "test-user4@localhost",
|
2014-02-04 15:09:09 +00:00
|
|
|
"credentials" : [
|
|
|
|
{ "type" : "password",
|
|
|
|
"value" : "password" }
|
2014-07-07 18:24:59 +00:00
|
|
|
],
|
|
|
|
"applicationRoles": {
|
|
|
|
"APP_ROLE_APPLICATION": [ "APP_ROLE_2" ]
|
|
|
|
}
|
2014-02-04 15:09:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"username" : "APP_COMPOSITE_USER",
|
|
|
|
"enabled": true,
|
2014-04-29 16:15:28 +00:00
|
|
|
"email" : "test-user5@localhost",
|
2014-02-04 15:09:09 +00:00
|
|
|
"credentials" : [
|
|
|
|
{ "type" : "password",
|
|
|
|
"value" : "password" }
|
2014-07-07 18:24:59 +00:00
|
|
|
],
|
|
|
|
"realmRoles": ["REALM_APP_COMPOSITE_ROLE", "REALM_COMPOSITE_1"]
|
2014-02-04 15:09:09 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"oauthClients" : [
|
|
|
|
{
|
|
|
|
"name" : "third-party",
|
|
|
|
"enabled": true,
|
2014-02-27 15:59:47 +00:00
|
|
|
"secret": "password"
|
2014-02-04 15:09:09 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"scopeMappings": [
|
|
|
|
{
|
2014-02-27 03:23:04 +00:00
|
|
|
"client": "REALM_COMPOSITE_1_APPLICATION",
|
2014-02-04 15:09:09 +00:00
|
|
|
"roles": ["REALM_COMPOSITE_1"]
|
|
|
|
},
|
|
|
|
{
|
2014-02-27 03:23:04 +00:00
|
|
|
"client": "REALM_ROLE_1_APPLICATION",
|
2014-02-04 15:09:09 +00:00
|
|
|
"roles": ["REALM_ROLE_1"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"applications": [
|
|
|
|
{
|
|
|
|
"name": "REALM_COMPOSITE_1_APPLICATION",
|
|
|
|
"enabled": true,
|
2014-08-04 20:04:10 +00:00
|
|
|
"fullScopeAllowed": false,
|
2014-02-04 15:09:09 +00:00
|
|
|
"baseUrl": "http://localhost:8081/app",
|
|
|
|
"adminUrl": "http://localhost:8081/app/logout",
|
2014-05-20 15:38:35 +00:00
|
|
|
"redirectUris": [
|
|
|
|
"http://localhost:8081/app/*"
|
|
|
|
],
|
2014-02-27 15:59:47 +00:00
|
|
|
"secret": "password"
|
2014-02-04 15:09:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "REALM_ROLE_1_APPLICATION",
|
2014-08-04 20:04:10 +00:00
|
|
|
"fullScopeAllowed": false,
|
2014-02-04 15:09:09 +00:00
|
|
|
"enabled": true,
|
|
|
|
"baseUrl": "http://localhost:8081/app",
|
|
|
|
"adminUrl": "http://localhost:8081/app/logout",
|
2014-05-20 15:38:35 +00:00
|
|
|
"redirectUris": [
|
|
|
|
"http://localhost:8081/app/*"
|
|
|
|
],
|
2014-02-27 15:59:47 +00:00
|
|
|
"secret": "password"
|
2014-02-04 15:09:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "APP_ROLE_APPLICATION",
|
2014-08-04 20:04:10 +00:00
|
|
|
"fullScopeAllowed": false,
|
2014-02-04 15:09:09 +00:00
|
|
|
"enabled": true,
|
|
|
|
"baseUrl": "http://localhost:8081/app",
|
|
|
|
"adminUrl": "http://localhost:8081/app/logout",
|
2014-05-20 15:38:35 +00:00
|
|
|
"redirectUris": [
|
|
|
|
"http://localhost:8081/app/*"
|
|
|
|
],
|
2014-02-27 15:59:47 +00:00
|
|
|
"secret": "password"
|
2014-02-04 15:09:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "APP_COMPOSITE_APPLICATION",
|
2014-08-04 20:04:10 +00:00
|
|
|
"fullScopeAllowed": false,
|
2014-02-04 15:09:09 +00:00
|
|
|
"enabled": true,
|
|
|
|
"baseUrl": "http://localhost:8081/app",
|
|
|
|
"adminUrl": "http://localhost:8081/app/logout",
|
2014-05-20 15:38:35 +00:00
|
|
|
"redirectUris": [
|
|
|
|
"http://localhost:8081/app/*"
|
|
|
|
],
|
2014-02-27 15:59:47 +00:00
|
|
|
"secret": "password"
|
2014-02-04 15:09:09 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"roles" : {
|
|
|
|
"realm" : [
|
|
|
|
{
|
|
|
|
"name": "REALM_ROLE_1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "REALM_ROLE_2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "REALM_ROLE_3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "REALM_COMPOSITE_1",
|
|
|
|
"composites": {
|
|
|
|
"realm": ["REALM_ROLE_1"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "REALM_APP_COMPOSITE_ROLE",
|
|
|
|
"composites": {
|
|
|
|
"application": {
|
|
|
|
"APP_ROLE_APPLICATION" :[
|
|
|
|
"APP_ROLE_1"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"application" : {
|
|
|
|
"APP_ROLE_APPLICATION" : [
|
|
|
|
{
|
|
|
|
"name": "APP_ROLE_1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "APP_ROLE_2"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"APP_COMPOSITE_APPLICATION" : [
|
|
|
|
{
|
|
|
|
"name": "APP_COMPOSITE_ROLE",
|
|
|
|
"composites": {
|
|
|
|
"realm" : [
|
|
|
|
"REALM_ROLE_1",
|
|
|
|
"REALM_ROLE_2",
|
|
|
|
"REALM_ROLE_3"
|
|
|
|
],
|
|
|
|
"application": {
|
|
|
|
"APP_ROLE_APPLICATION" :[
|
|
|
|
"APP_ROLE_1"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "APP_ROLE_2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"applicationScopeMappings": {
|
|
|
|
"APP_ROLE_APPLICATION": [
|
|
|
|
{
|
2014-02-27 03:23:04 +00:00
|
|
|
"client": "APP_COMPOSITE_APPLICATION",
|
2014-02-04 15:09:09 +00:00
|
|
|
"roles": ["APP_ROLE_2"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2014-08-01 10:20:23 +00:00
|
|
|
}
|