Allow different id/name
This commit is contained in:
parent
4b4586439d
commit
6b03b4a545
|
@ -11,7 +11,7 @@ let
|
||||||
openIdConfig = pkgs.writeText "matrix-openid.yaml" (builtins.toJSON {
|
openIdConfig = pkgs.writeText "matrix-openid.yaml" (builtins.toJSON {
|
||||||
oidc_providers = [{
|
oidc_providers = [{
|
||||||
idp_id = cfg.openid.provider;
|
idp_id = cfg.openid.provider;
|
||||||
idp_name = cfg.openid.provider;
|
idp_name = cfg.openid.provider-name;
|
||||||
discover = true;
|
discover = true;
|
||||||
issuer = cfg.openid.issuer;
|
issuer = cfg.openid.issuer;
|
||||||
client_id = cfg.openid.client-id;
|
client_id = cfg.openid.client-id;
|
||||||
|
@ -60,6 +60,11 @@ in {
|
||||||
|
|
||||||
openid = {
|
openid = {
|
||||||
provider = mkOption {
|
provider = mkOption {
|
||||||
|
type = str;
|
||||||
|
description = "Name/ID of the authentication provider.";
|
||||||
|
};
|
||||||
|
|
||||||
|
provider-name = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
description = "Name of the authentication provider.";
|
description = "Name of the authentication provider.";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue