Skip to content

Commit

Permalink
tailscale: pass base URL to OAuthConfig (#439)
Browse files Browse the repository at this point in the history
Pass the `parsedBaseURL` to `tsclient.OAuthConfig`. The base URL the
OAuth client used for attempting to generate tokens was always the
default URL previously which causes issues if the base URL for the
provider and the rest of the tailscale client is set to something else.

Fixes #438

Signed-off-by: Mario Minardi <mario@tailscale.com>
  • Loading branch information
mpminardi authored Sep 25, 2024
1 parent 527b66c commit 5257dc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tailscale/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func providerConfigure(_ context.Context, provider *schema.Provider, d *schema.R
UserAgent: userAgent,
Tailnet: tailnet,
HTTP: tsclient.OAuthConfig{
BaseURL: parsedBaseURL.String(),
ClientID: oauthClientID,
ClientSecret: oauthClientSecret,
Scopes: oauthScopes,
Expand Down

0 comments on commit 5257dc3

Please sign in to comment.