| ... | @@ -1,10 +1,18 @@ | ... | @@ -1,10 +1,18 @@ |
| 1 | amends "../../config/Service.pkl" | 1 | amends "../../config/Service.pkl" |
| 2 | | 2 | |
| 3 | import "pkl:json" | 3 | import "pkl:json" |
| | 4 | import "../../config/OpenID.pkl" as sso |
| 4 | | 5 | |
| 5 | local bundle = (new json.Parser {}).parse(read("bundle.json")) | 6 | local bundle = (new json.Parser {}).parse(read("bundle.json")) |
| 6 | | 7 | |
| 7 | meta { name = "The Knife"; access = "infra-admin" } | 8 | meta { name = "The Knife"; access = "infra-admin" } |
| | 9 | requirements { |
| | 10 | new sso.Client { |
| | 11 | clientId = module.id |
| | 12 | name = module.meta.name |
| | 13 | redirectUris { "https://\(module.container.http.hostname)/api/auth/oidc/callback" } |
| | 14 | } |
| | 15 | } |
| 8 | stageIsolation = "fresh" | 16 | stageIsolation = "fresh" |
| 9 | prepare = "prepare.py" | 17 | prepare = "prepare.py" |
| 10 | setup = "setup.py" | 18 | setup = "setup.py" |