Skip to content

Commit 34b39bc

Browse files
committed
Explicitly set OAuth2 AuthStyle to InParams
Using `AuthStyleInParams` ensures that the client_id is sent in the POST body and not in a Basic Authorization header
1 parent 4125874 commit 34b39bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tado.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var Endpoint = oauth2.Endpoint{
1010
AuthURL: "https://login.tado.com/oauth2/authorize",
1111
TokenURL: "https://login.tado.com/oauth2/token",
1212
DeviceAuthURL: "https://login.tado.com/oauth2/device_authorize",
13+
AuthStyle: oauth2.AuthStyleInParams,
1314
}
1415

1516
type Tado struct {

0 commit comments

Comments
 (0)