Unverified Commit 5f2fd25d authored by Pierre Bourdon's avatar Pierre Bourdon Committed by GitHub
Browse files

Merge pull request #223030 from IndeedNotJames/nginx-sso

nginx-sso: 0.25.0 -> 0.26.0
parents bab0c658 ec49c987
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -6,18 +6,16 @@

buildGoModule rec {
  pname = "nginx-sso";
  version = "0.25.0";
  version = "0.26.0";

  src = fetchFromGitHub {
    owner = "Luzifer";
    repo = "nginx-sso";
    rev = "v${version}";
    sha256 = "sha256-uYl6J2auAkboPpT6lRZzI70bCU9LvxfCdCyHfLNIsHw=";
    hash = "sha256-vtbomeezW8PMv2lCR6PJqYw+PCFJ3M1SAQPGaIWouXY=";
  };

  vendorSha256 = null;

  patches = [ ./rune.patch ];
  vendorHash = "sha256-THTQhUgIfDDTgnR4qZxWFoGQzvqr3xrrz5ZxnV9ipBM=";

  postInstall = ''
    mkdir -p $out/share

pkgs/servers/nginx-sso/rune.patch

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
diff --git i/main.go w/main.go
index bf80f3d..632f7d6 100644
--- i/main.go
+++ w/main.go
@@ -174,7 +174,7 @@ func handleAuthRequest(res http.ResponseWriter, r *http.Request) {
 	case plugins.ErrNoValidUserFound:
 		// No valid user found, check whether special anonymous "user" has access
 		// Username is set to 0x0 character to prevent accidental whitelist-match
-		if mainCfg.ACL.HasAccess(string(0x0), nil, r) {
+		if mainCfg.ACL.HasAccess(string(rune(0x0)), nil, r) {
 			mainCfg.AuditLog.Log(auditEventValidate, r, map[string]string{"result": "anonymous access granted"}) // #nosec G104 - This is only logging
 			res.WriteHeader(http.StatusOK)
 			return