mirror of
https://github.com/openziti/ziti.git
synced 2026-09-22 18:44:09 +00:00
fixed #224 extra log output during invalid cert auth
This commit is contained in:
@@ -161,6 +161,10 @@ func (handler AuthenticatorHandler) ReadByFingerprint(fingerprint string) (*Auth
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if entity == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
authenticator, ok := entity.(*Authenticator)
|
||||
|
||||
if !ok {
|
||||
|
||||
@@ -60,13 +60,13 @@ func (module *AuthModuleCert) Process(context AuthContext) (string, error) {
|
||||
|
||||
for fingerprint := range fingerprints {
|
||||
authenticator, err := module.env.GetHandlers().Authenticator.ReadByFingerprint(fingerprint)
|
||||
curCert := fingerprints[fingerprint]
|
||||
|
||||
if err != nil {
|
||||
pfxlog.Logger().WithError(err).Errorf("error during cert auth read by fingerprint %s", fingerprint)
|
||||
}
|
||||
|
||||
if authenticator != nil {
|
||||
curCert := fingerprints[fingerprint]
|
||||
if authCert, ok := authenticator.SubType.(*AuthenticatorCert); ok {
|
||||
if authCert.Pem == "" {
|
||||
certPem := pem.EncodeToMemory(&pem.Block{
|
||||
|
||||
Reference in New Issue
Block a user