summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2021-10-18 14:15:54 +0200
committerMaciej Krüger <mkg20001@gmail.com>2021-10-18 14:20:51 +0200
commitcb7459c286489c4811d376bbeb3cc59e9a1c0175 (patch)
tree0aae06e5e6b6f1aa529137b39d5259303a9c2156
parenteaad3c36f2360b91361327332dd6f9c78522f8af (diff)
downloadnixpkgs-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
-rw-r--r--nixos/modules/services/web-apps/hedgedoc.nix63
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 = ''