Browse Source

Merge pull request 'Add "AUTH_TYPE" environment variable when client cert is present' (#14) from khuxkm/molly-brown:master into master

Reviewed-on: https://tildegit.org/solderpunk/molly-brown/pulls/14
pull/21/head
Solderpunk 10 months ago
parent
commit
3d4d830e98
  1. 2
      dynamic.go

2
dynamic.go

@ -191,6 +191,8 @@ func prepareGatewayVariables(config Config, URL *url.URL, conn net.Conn) map[str
vars["TLS_CLIENT_ISSUER_CN"] = cert.Issuer.CommonName
vars["TLS_CLIENT_SUBJECT"] = cert.Subject.String()
vars["TLS_CLIENT_SUBJECT_CN"] = cert.Subject.CommonName
// To make it easier to detect when a cert is present
vars["AUTH_TYPE"] = "Certificate"
}
return vars
}

Loading…
Cancel
Save