[25.05] Backport nixos/kanidm: accept originUrls following rfc8252 (#429527)

This commit is contained in:
Aleksana
2025-08-02 22:14:05 +08:00
committed by GitHub

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