Skip to content

Commit

Permalink
Return the correct error on cache miss
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Font committed Nov 14, 2022
1 parent b87e1ef commit 632e9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 632e9b3

Please sign in to comment.