| author | |
| committer | |
| log | 072baa047d461286cc5cba586cbf6dbdbde85a5e |
| tree | b891ab5f3a78f7724fb1e9204c275abc97d66c31 |
| parent | 622ab80aceb431e315bbd18fd708f47e993250c9 |
| signature | Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU |
Declare the exact Knife callback through the existing Snowglobe OIDC provider.
Allocate client knife with its secret owned by the service Nomad input, without
restarting the running application or enabling unfinished SSO integration.
Verified live registration, confidential client authentication, acceptance of
an S256 authorization request, unregistered callback rejection, and both token
grant handlers rejecting deliberately nonexistent grants after client auth.
Assisted-by: gpt-6.1-sol1 files changed, 8 insertions(+), 0 deletions(-)
service/knife/service.pkl+8| ... | ... | @@ -1,10 +1,18 @@ |
| 1 | 1 | amends "../../config/Service.pkl" |
| 2 | 2 | |
| 3 | 3 | import "pkl:json" |
| 4 | import "../../config/OpenID.pkl" as sso | |
| 4 | 5 | |
| 5 | 6 | local bundle = (new json.Parser {}).parse(read("bundle.json")) |
| 6 | 7 | |
| 7 | 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 | 16 | stageIsolation = "fresh" |
| 9 | 17 | prepare = "prepare.py" |
| 10 | 18 | setup = "setup.py" |