testrealm.json

159 lines | 4.027 kB Blame History Raw Download
{
    "realm": "test-realm",
    "enabled": true,
    "accessTokenLifespan": 6000,
    "accessCodeLifespan": 30,
    "accessCodeLifespanUserAction": 600,
    "requiredCredentials": [ "password" ],
    "defaultRoles": [ "foo", "bar" ],
    "verifyEmail" : "true",
    "smtpServer": {
        "from": "auto@keycloak.org",
        "host": "localhost",
        "port":"3025"
    },
    "socialProviders": {
        "google.key": "abc",
        "google.secret": "def"
    },
    "userFederationProviders": [
        {
            "displayName": "MyLDAPProvider",
            "providerName": "dummy",
            "priority": 1,
            "config": {
                "important.config": "ldap://foo"
            }
        }
    ],
    "users": [
        {
            "username": "wburke",
            "enabled": true,
            "attributes": {
                "email": "bburke@redhat.com"
            },
            "credentials": [
                {
                    "type": "password",
                    "value": "userpassword"
                }
            ],
            "applicationRoles": {
                "Application": [ "app-user" ],
                "OtherApp": [  "otherapp-user" ]
            }
        },
        {
            "username": "loginclient",
            "enabled": true,
            "credentials": [
                {
                    "type": "password",
                    "value": "clientpassword"
                }
            ]
        },
        {
            "username": "admin",
            "enabled": true,
            "credentials": [
                {
                    "type": "password",
                    "value": "adminpassword"
                }
            ],
            "realmRoles": [ "admin" ],
            "applicationRoles": {
                "Application": [ "app-admin" ],
                "OtherApp": [  "otherapp-admin" ]
            }
        },
        {
            "username": "mySocialUser",
            "enabled": true,
            "socialLinks": [
                {
                    "socialProvider": "facebook",
                    "socialUserId": "facebook1",
                    "socialUsername": "fbuser1"
                },
                {
                    "socialProvider": "twitter",
                    "socialUserId": "twitter1",
                    "socialUsername": "twuser1"
                },
                {
                    "socialProvider": "google",
                    "socialUserId": "google1",
                    "socialUsername": "mySocialUser@gmail.com"
                }
            ]
        }
    ],
    "applications": [
        {
            "name": "Application",
            "enabled": true,
            "nodeReRegistrationTimeout": 50,
            "registeredNodes": {
                "node1": 10,
                "172.10.15.20": 20
            }
        },
        {
            "name": "OtherApp",
            "enabled": true
        }

    ],
    "oauthClients" : [
        {
            "name" : "oauthclient",
            "enabled": true,
            "secret": "clientpassword"
        }
    ],
    "roles" : {
        "realm" : [
            {
                "name": "admin"
            }
        ],
        "application" : {
            "Application" : [
                {
                    "name": "app-admin"
                },
                {
                    "name": "app-user"
                }
            ],
            "OtherApp" : [
                {
                    "name": "otherapp-admin"
                },
                {
                    "name": "otherapp-user"
                }
            ]
        }
    },
    "scopeMappings": [
        {
            "client": "oauthclient",
            "roles": ["admin"]
        }
    ],
    "applicationScopeMappings": {
        "Application": [
            {
                "client": "oauthclient",
                "roles": ["app-user"]
            }
        ]

    }


}