Keycloak
/
hello-world-authz-realm.json
49 строк · 1.3 Кб
1{
2"realm" : "hello-world-authz",
3"enabled" : true,
4"requiredCredentials" : [ "password" ],
5"users" :
6[
7{
8"username" : "alice",
9"enabled" : true,
10"credentials" : [ {
11"type" : "password",
12"value" : "alice"
13} ],
14"realmRoles" : ["uma_authorization"]
15},
16{
17"username" : "jdoe",
18"enabled" : true,
19"credentials" : [ {
20"type" : "password",
21"value" : "jdoe"
22} ],
23"realmRoles" : ["uma_authorization"]
24},
25{
26"username" : "service-account-hello-world-authz-service",
27"enabled" : true,
28"serviceAccountClientId" : "hello-world-authz-service",
29"clientRoles": {
30"hello-world-authz-service" : ["uma_protection"]
31}
32}
33],
34"clients" : [
35{
36"clientId" : "hello-world-authz-service",
37"secret" : "secret",
38"authorizationServicesEnabled" : true,
39"enabled" : true,
40"redirectUris" : [ "http://localhost:8080/hello-world-authz-service/*" ],
41"baseUrl": "http://localhost:8080/hello-world-authz-service",
42"adminUrl": "http://localhost:8080/hello-world-authz-service",
43"directAccessGrantsEnabled" : true,
44"attributes" : {
45"exclude.issuer.from.auth.response": "true"
46}
47}
48]
49}