Skip to content

Commit

Permalink
use machine key in auth url
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Nov 17, 2023
1 parent 09954c1 commit 9fdd234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hscontrol/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,12 @@ func (h *Headscale) handleNewNode(
resp.AuthURL = fmt.Sprintf(
"%s/oidc/register/%s",
strings.TrimSuffix(h.cfg.ServerURL, "/"),
registerRequest.NodeKey,
machineKey.String(),
)
} else {
resp.AuthURL = fmt.Sprintf("%s/register/%s",
strings.TrimSuffix(h.cfg.ServerURL, "/"),
registerRequest.NodeKey)
machineKey.String())
}

respBody, err := mapper.MarshalResponse(resp, isNoise, h.privateKey2019, machineKey)
Expand Down

0 comments on commit 9fdd234

Please sign in to comment.