Gigya authentication changes
ref https://github.com/jamesremuscat/pyze/pull/79/commits/c200f70699116b97bd40e2e9f791aeef2c61e489
This commit is contained in:
parent
b034fc072b
commit
0f1579a0da
1 changed files with 4 additions and 2 deletions
|
|
@ -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"},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue