2020-10-28 20:42:30 +00:00
|
|
|
{
|
|
|
|
"realm": "photoz",
|
|
|
|
"auth-server-url": "http://localhost:8180/auth",
|
|
|
|
"ssl-required": "external",
|
|
|
|
"resource": "photoz-restful-api",
|
|
|
|
"bearer-only" : true,
|
|
|
|
"credentials": {
|
|
|
|
"jwt": {
|
|
|
|
"client-key-password": "password",
|
|
|
|
"client-keystore-file": "classpath:keystore.jks",
|
|
|
|
"client-keystore-password": "password",
|
|
|
|
"client-key-alias": "secure-portal",
|
|
|
|
"token-timeout": 10,
|
|
|
|
"client-keystore-type": "jks"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"policy-enforcer": {
|
|
|
|
"enforcement-mode": "PERMISSIVE",
|
|
|
|
"user-managed-access": {},
|
|
|
|
"path-cache": {
|
2021-05-31 12:54:32 +00:00
|
|
|
"lifespan": 25000
|
2020-10-28 20:42:30 +00:00
|
|
|
},
|
|
|
|
"paths": [
|
|
|
|
{
|
|
|
|
"name" : "Album Resource",
|
|
|
|
"path" : "/album",
|
|
|
|
"methods" : [
|
|
|
|
{
|
|
|
|
"method": "GET",
|
|
|
|
"scopes-enforcement-mode" : "DISABLED"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name" : "Album Resource",
|
|
|
|
"path" : "/album/{id}/",
|
|
|
|
"methods" : [
|
|
|
|
{
|
|
|
|
"method": "DELETE",
|
|
|
|
"scopes" : ["album:delete"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"method": "GET",
|
|
|
|
"scopes" : ["album:view"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path" : "/profile"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name" : "Admin Resources",
|
|
|
|
"path" : "/admin/*"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name" : "Scope Protected Resource",
|
|
|
|
"path" : "/scope-any",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"method": "GET",
|
|
|
|
"scopes": ["scope-a", "scope-b"],
|
|
|
|
"scopes-enforcement-mode": "ANY"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name" : "Scope Protected Resource",
|
|
|
|
"path" : "/scope-all",
|
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"method": "GET",
|
|
|
|
"scopes": ["scope-a", "scope-b"],
|
|
|
|
"scopes-enforcement-mode": "ALL"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|