Return the correct error on cache miss

This commit is contained in:
Juan Font 2022-11-14 14:10:26 +00:00 committed by Juan Font
parent f74266f8f8
commit ef68f17a96

View file

@ -451,7 +451,7 @@ func (h *Headscale) validateMachineForOIDCCallback(
Msg("Failed to write response")
}
return nil, false, errOIDCInvalidMachineState
return nil, false, errOIDCNodeKeyMissing
}
var nodeKey key.NodePublic