diff --git a/vehicle/jlr.go b/vehicle/jlr.go index 7731f745c..6566913ed 100644 --- a/vehicle/jlr.go +++ b/vehicle/jlr.go @@ -106,6 +106,8 @@ func (v *JLR) RegisterDevice(log *util.Logger, user, device string, t jlr.Token) "Accept": "application/json", "X-Device-Id": device, "x-telematicsprogramtype": "jlrpy", + "x-App-Id": "ICR_JAGUAR", + "x-App-Secret": "018dd168-6271-707f-9fd4-aed2bf76905e", }) if err == nil { _, err = c.DoBody(req) diff --git a/vehicle/jlr/api.go b/vehicle/jlr/api.go index c5260b1e9..9e66cce5a 100644 --- a/vehicle/jlr/api.go +++ b/vehicle/jlr/api.go @@ -36,6 +36,8 @@ func NewAPI(log *util.Logger, device string, ts oauth2.TokenSource) *API { "Authorization": fmt.Sprintf("Bearer %s", token.AccessToken), "X-Device-Id": device, "x-telematicsprogramtype": "jlrpy", + "x-App-Id": "ICR_JAGUAR", + "x-App-Secret": "018dd168-6271-707f-9fd4-aed2bf76905e", } { req.Header.Set(k, v) } diff --git a/vehicle/jlr/identity.go b/vehicle/jlr/identity.go index c04c68523..56f82bb88 100644 --- a/vehicle/jlr/identity.go +++ b/vehicle/jlr/identity.go @@ -38,6 +38,8 @@ func (v *Identity) login(data map[string]string) (Token, error) { "Authorization": "Basic YXM6YXNwYXNz", "Content-type": request.JSONContent, "X-Device-Id": v.device, + "x-App-Id": "ICR_JAGUAR", + "x-App-Secret": "018dd168-6271-707f-9fd4-aed2bf76905e", }) var token Token