Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f01a89

Browse files
committed
add oauth token to proxy req
1 parent47c1d67 commit0f01a89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎vehicle/tesla.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ func NewTeslaFromConfig(other map[string]interface{}) (api.Vehicle, error) {
101101
Decorator:transport.DecorateHeaders(map[string]string{
102102
"X-Authorization":"Bearer "+cc.ProxyToken,
103103
}),
104-
Base:baseTransport,
104+
Base:&oauth2.Transport{
105+
Source:identity,
106+
Base:baseTransport,
107+
},
105108
}
106109

107110
tcc,err:=teslaclient.NewClient(context.Background(),teslaclient.WithClient(pc))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp