From 0d25584641be0de922df034fc12c045ea6b90393 Mon Sep 17 00:00:00 2001 From: Marc Plano-Lesay Date: Fri, 25 Jul 2025 22:41:26 +1000 Subject: [PATCH] nixos/kanidm: accept originUrls following rfc8252 (#428204) --- nixos/modules/services/security/kanidm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/security/kanidm.nix b/nixos/modules/services/security/kanidm.nix index 02774fe114da..77aa6bafebab 100644 --- a/nixos/modules/services/security/kanidm.nix +++ b/nixos/modules/services/security/kanidm.nix @@ -548,7 +548,7 @@ in description = "The redirect URL of the service. These need to exactly match the OAuth2 redirect target"; type = let - originStrType = types.strMatching ".*://.*$"; + originStrType = types.strMatching ".*://?.*$"; in types.either originStrType (types.nonEmptyListOf originStrType); example = "https://someservice.example.com/auth/login";