Don't hardcode issuer...

This commit is contained in:
niten 2023-09-13 10:54:24 -07:00
parent 87d72f6d15
commit 4b4586439d
1 changed files with 7 additions and 2 deletions

View File

@ -13,7 +13,7 @@ let
idp_id = cfg.openid.provider;
idp_name = cfg.openid.provider;
discover = true;
issuer = "https://authentik.fudo.org/application/o/matrix/";
issuer = cfg.openid.issuer;
client_id = cfg.openid.client-id;
client_secret = cfg.openid.client-secret;
scopes = [ "openid" "profile" "email" ];
@ -73,6 +73,11 @@ in {
type = str;
description = "OpenID Client Secret.";
};
issuer = mkOption {
type = str;
description = "OpenID issuer URL.";
};
};
};