mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
[25.05] Backport nixos/kanidm: accept originUrls following rfc8252 (#429527)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user