From ef68f17a968a85686b3f5c9e2916612f760a4b06 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Mon, 14 Nov 2022 14:10:26 +0000 Subject: [PATCH] Return the correct error on cache miss --- oidc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oidc.go b/oidc.go index 4438279..ee9511d 100644 --- a/oidc.go +++ b/oidc.go @@ -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