From 0f1579a0da0e459f6cd9b37037b7d6daf661e5e7 Mon Sep 17 00:00:00 2001 From: premultiply Date: Wed, 19 Aug 2020 11:40:54 +0200 Subject: [PATCH] Gigya authentication changes ref https://github.com/jamesremuscat/pyze/pull/79/commits/c200f70699116b97bd40e2e9f791aeef2c61e489 --- vehicle/renault.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vehicle/renault.go b/vehicle/renault.go index 2588f5c5e..bb7113332 100644 --- a/vehicle/renault.go +++ b/vehicle/renault.go @@ -220,7 +220,8 @@ func (v *Renault) personID(sessionCookie string) (string, error) { uri := fmt.Sprintf("%s/accounts.getAccountInfo", v.gigya.Target) data := url.Values{ - "oauth_token": []string{sessionCookie}, + "apiKey": []string{v.gigya.APIKey}, + "login_token": []string{sessionCookie}, } req, err := v.request(uri, data) @@ -237,7 +238,8 @@ func (v *Renault) jwtToken(sessionCookie string) (string, error) { uri := fmt.Sprintf("%s/accounts.getJWT", v.gigya.Target) data := url.Values{ - "oauth_token": []string{sessionCookie}, + "apiKey": []string{v.gigya.APIKey}, + "login_token": []string{sessionCookie}, "fields": []string{"data.personId,data.gigyaDataCenter"}, "expiration": []string{"900"}, }