From 613d29478db2d146e320bc56a2092b3e5cf68fd6 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 44382796..ee9511d0 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