Skip to content

Commit

Permalink
Trim client secret after reading from file (juanfont#1697)
Browse files Browse the repository at this point in the history
Reading from file will include a line break, which results in a mismatching client secret
compared to reading directly from the config.
  • Loading branch information
danielalvsaaker authored Jan 25, 2024
1 parent a369d57 commit b4210e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hscontrol/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ func GetHeadscaleConfig() (*Config, error) {
if err != nil {
return nil, err
}
oidcClientSecret = string(secretBytes)
oidcClientSecret = strings.TrimSpace(string(secretBytes))
}

return &Config{
Expand Down

0 comments on commit b4210e2

Please sign in to comment.