nixos/kanidm: accept originUrls following rfc8252 (#428204)

(cherry picked from commit 0d25584641)
This commit is contained in:
Marc Plano-Lesay
2025-07-25 22:41:26 +10:00
parent 67a2f9968f
commit 4fd3a59d8a

View File

@@ -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";