Skip to content

Commit aec895f

Browse files
committed
Adding test resources for KeycloakClient
Signed-off-by: Laurent Broudoux <[email protected]>
1 parent 50c0a27 commit aec895f

File tree

1 file changed

+168
-0
lines changed

1 file changed

+168
-0
lines changed
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
{
2+
"id": "myrealm",
3+
"realm": "myrealm",
4+
"displayName": "My Realm",
5+
"enabled": true,
6+
"sslRequired": "none",
7+
"registrationAllowed": false,
8+
"users" : [
9+
{
10+
"username" : "admin",
11+
"enabled": true,
12+
"credentials" : [
13+
{ "type" : "password",
14+
"value" : "myrealm123" }
15+
],
16+
"realmRoles": [],
17+
"applicationRoles": {
18+
"realm-management": [ "manage-users", "manage-clients" ],
19+
"account": [ "manage-account" ],
20+
"myrealm-app": [ "user", "manager", "admin"]
21+
}
22+
}
23+
],
24+
"roles": {
25+
"realm": [],
26+
"client": {
27+
"myrealm-app": [
28+
{
29+
"name": "user",
30+
"composite": false,
31+
"clientRole": true,
32+
"containerId": "myrealm"
33+
},
34+
{
35+
"name": "admin",
36+
"composite": false,
37+
"clientRole": true,
38+
"containerId": "myrealm"
39+
},
40+
{
41+
"name": "manager",
42+
"composite": false,
43+
"clientRole": true,
44+
"containerId": "myrealm"
45+
}
46+
]
47+
}
48+
},
49+
"groups": [
50+
{
51+
"name": "myrealm",
52+
"path": "/myrealm",
53+
"attributes": {},
54+
"realmRoles": [],
55+
"clientRoles": {},
56+
"subGroups": [
57+
{
58+
"name": "manager",
59+
"path": "/myrealm/manager",
60+
"attributes": {},
61+
"realmRoles": [],
62+
"clientRoles": {},
63+
"subGroups": []
64+
}
65+
]
66+
}
67+
],
68+
"defaultRoles": [],
69+
"requiredCredentials": [ "password" ],
70+
"scopeMappings": [],
71+
"clientScopeMappings": {
72+
"myrealm-app": [
73+
{
74+
"client": "myrealm-app-js",
75+
"roles": [
76+
"manager",
77+
"admin",
78+
"user"
79+
]
80+
}
81+
],
82+
"realm-management": [
83+
{
84+
"client": "myrealm-app-js",
85+
"roles": [
86+
"manage-users",
87+
"manage-clients"
88+
]
89+
}
90+
]
91+
},
92+
"clients": [
93+
{
94+
"clientId": "myrealm-app-js",
95+
"enabled": true,
96+
"publicClient": true,
97+
"redirectUris": [
98+
"http://localhost:8080/*"
99+
],
100+
"webOrigins": [
101+
"+"
102+
],
103+
"fullScopeAllowed": false,
104+
"protocolMappers": [
105+
{
106+
"name": "myrealm-group-mapper",
107+
"protocol": "openid-connect",
108+
"protocolMapper": "oidc-group-membership-mapper",
109+
"consentRequired": false,
110+
"config": {
111+
"full.path": "true",
112+
"id.token.claim": "true",
113+
"access.token.claim": "true",
114+
"claim.name": "myrealm-groups",
115+
"userinfo.token.claim": "true"
116+
}
117+
}
118+
]
119+
},
120+
{
121+
"clientId": "myrealm-test",
122+
"enabled": true,
123+
"clientAuthenticatorType": "client-secret",
124+
"secret": "QAzrPEJJeDkjKtePKoXyzkqY6exkBauh",
125+
"publicClient": false,
126+
"protocol": "openid-connect",
127+
"bearerOnly": false,
128+
"consentRequired": false,
129+
"standardFlowEnabled": true,
130+
"implicitFlowEnabled": false,
131+
"directAccessGrantsEnabled": true,
132+
"serviceAccountsEnabled": false
133+
}
134+
],
135+
"applications": [
136+
{
137+
"name": "myrealm-app",
138+
"enabled": true,
139+
"bearerOnly": true,
140+
"defaultRoles": [
141+
"user"
142+
]
143+
},
144+
{
145+
"name": "myrealm-serviceaccount",
146+
"secret": "ab54d329-e435-41ae-a900-ec6b3fe15c54",
147+
"enabled": true,
148+
"bearerOnly": false,
149+
"publicClient": false,
150+
"standardFlowEnabled": false,
151+
"directAccessGrantsEnabled": true,
152+
"serviceAccountsEnabled": true,
153+
"clientAuthenticatorType": "client-secret"
154+
}
155+
],
156+
"requiredActions": [
157+
{
158+
"alias": "VERIFY_PROFILE",
159+
"name": "Verify Profile",
160+
"providerId": "VERIFY_PROFILE",
161+
"enabled": false,
162+
"defaultAction": false,
163+
"priority": 90,
164+
"config": {}
165+
}
166+
],
167+
"keycloakVersion": "10.0.1"
168+
}

0 commit comments

Comments
 (0)