jamesremuscat / pyze

Unofficial Python client and API for Renault ZE
MIT License
111 stars 29 forks source link

Error during the login #99

Open NathanRDN opened 3 years ago

NathanRDN commented 3 years ago

Hello, I'm trying to recompose the Renault API process in Postman but I'm still facing an issue that I don't understand when I'm trying to find my accountID in Kameron.

image

jamesremuscat commented 3 years ago

When requesting your Gigya token, did you make sure to include the appropriate value for the fields param (i.e. data.personId,data.gigyaDataCenter)? Without that, the token issued by Gigya won't have sufficient information for Kamereon to authenticate you.

I'm also assuming that your x-gigya-id_token is truncated in the screenshot, because it ought to be quite a bit longer than that!

epenet commented 3 years ago

Check out these bits when you request the token: https://github.com/jamesremuscat/pyze/blob/103a14222b2a8596c333fd09244fe74e24003c84/src/pyze/api/gigya.py#L104-L112