-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from gematik/new_permission_config
added new permissionConfig and examples
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"defaultSetting": "allow all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"defaultSetting": "block all", | ||
"domainExceptions": { | ||
"hassel.hoff": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"defaultSetting": "block all", | ||
"userExceptions": { | ||
"@david:hassel.hoff": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"$id": "https://gematik.de/ti-m/permissionConfig.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Permission Configuration", | ||
"type": "object", | ||
"properties": { | ||
"defaultSetting": { | ||
"type": "string", | ||
"enum": [ | ||
"allow all", | ||
"block all" | ||
] | ||
}, | ||
"domainExceptions": { | ||
"type": "object", | ||
"description": "The map of servers to in-/exclude. This is a mapping of Matrix server name (https://spec.matrix.org/v1.3/appendices/#server-name) to empty object.", | ||
"patternProperties": { | ||
"^.*$": { | ||
"type": "object", | ||
"description": "An empty object for future enhancement" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"userExceptions": { | ||
"type": "object", | ||
"description": "The map of users to in-/exclude. This is a mapping of Matrix user ID (https://spec.matrix.org/v1.3/appendices/#user-identifiers) to empty object.", | ||
"patternProperties": { | ||
"^@.*$": { | ||
"type": "object", | ||
"description": "An empty object for future enhancement" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": [ | ||
"defaultSetting" | ||
] | ||
} |