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

This commit is contained in:
Marc Plano-Lesay
2025-07-25 22:41:26 +10:00
committed by GitHub
parent 892b920a25
commit 0d25584641

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