diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2021-10-18 14:15:54 +0200 |
---|---|---|
committer | Maciej Krüger <mkg20001@gmail.com> | 2021-10-18 14:20:51 +0200 |
commit | cb7459c286489c4811d376bbeb3cc59e9a1c0175 (patch) | |
tree | 0aae06e5e6b6f1aa529137b39d5259303a9c2156 /nixos/modules/services/web-apps/hedgedoc.nix | |
parent | eaad3c36f2360b91361327332dd6f9c78522f8af (diff) | |
download | nixpkgs-cb7459c286489c4811d376bbeb3cc59e9a1c0175.tar nixpkgs-cb7459c286489c4811d376bbeb3cc59e9a1c0175.tar.gz nixpkgs-cb7459c286489c4811d376bbeb3cc59e9a1c0175.tar.bz2 nixpkgs-cb7459c286489c4811d376bbeb3cc59e9a1c0175.tar.lz nixpkgs-cb7459c286489c4811d376bbeb3cc59e9a1c0175.tar.xz nixpkgs-cb7459c286489c4811d376bbeb3cc59e9a1c0175.tar.zst nixpkgs-cb7459c286489c4811d376bbeb3cc59e9a1c0175.zip |
nixos/hedgedoc: add more options for oauth2
Diffstat (limited to 'nixos/modules/services/web-apps/hedgedoc.nix')
-rw-r--r-- | nixos/modules/services/web-apps/hedgedoc.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/hedgedoc.nix b/nixos/modules/services/web-apps/hedgedoc.nix index b434f16e9bd..e0c00fe67ea 100644 --- a/nixos/modules/services/web-apps/hedgedoc.nix +++ b/nixos/modules/services/web-apps/hedgedoc.nix @@ -539,6 +539,69 @@ in Specify the OAuth token URL. ''; }; + baseURL = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify the OAuth base URL. + ''; + }; + userProfileURL = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify the OAuth userprofile URL. + ''; + }; + userProfileUsernameAttr = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify the name of the attribute for the username from the claim. + ''; + }; + userProfileDisplayNameAttr = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify the name of the attribute for the display name from the claim. + ''; + }; + userProfileEmailAttr = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify the name of the attribute for the email from the claim. + ''; + }; + scope = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify the OAuth scope. + ''; + }; + providerName = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify the name to be displayed for this strategy. + ''; + }; + rolesClaim = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify the role claim name. + ''; + }; + accessRole = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Specify role which should be included in the ID token roles claim to grant access + ''; + }; clientID = mkOption { type = types.str; description = '' |