nixos/kanidm: allow origin url ending without slash
This commit is contained in:
parent
ae725bafb3
commit
6728211ec8
@ -502,13 +502,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
originUrl = mkOption {
|
originUrl = mkOption {
|
||||||
description = "The origin URL of the service. OAuth2 redirects will only be allowed to sites under this origin. Must end with a slash.";
|
description = "The redirect URL of the service. These need to exactly match the OAuth2 redirect target";
|
||||||
type =
|
type =
|
||||||
let
|
let
|
||||||
originStrType = types.strMatching ".*://.*/$";
|
originStrType = types.strMatching ".*://.*$";
|
||||||
in
|
in
|
||||||
types.either originStrType (types.nonEmptyListOf originStrType);
|
types.either originStrType (types.nonEmptyListOf originStrType);
|
||||||
example = "https://someservice.example.com/";
|
example = "https://someservice.example.com/auth/login";
|
||||||
};
|
};
|
||||||
|
|
||||||
originLanding = mkOption {
|
originLanding = mkOption {
|
||||||
|
Loading…
Reference in New Issue
Block a user