Unverified Commit bfd2ff33 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

headscale: support PKCE verifier (#427132)

parents 510968b2 13a041b1
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -406,6 +406,31 @@ in
                '';
                example = [ "alice@example.com" ];
              };

              pkce = {
                enabled = lib.mkOption {
                  type = lib.types.bool;
                  default = false;
                  description = ''
                    Enable or disable PKCE (Proof Key for Code Exchange) support.
                    PKCE adds an additional layer of security to the OAuth 2.0
                    authorization code flow by preventing authorization code
                    interception attacks
                    See https://datatracker.ietf.org/doc/html/rfc7636
                  '';
                  example = true;
                };

                method = lib.mkOption {
                  type = lib.types.str;
                  default = "S256";
                  description = ''
                    PKCE method to use:
                      - plain: Use plain code verifier
                      - S256: Use SHA256 hashed code verifier (default, recommended)
                  '';
                };
              };
            };

            tls_letsencrypt_hostname = lib.mkOption {