Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during the login #99

Open
NathanRDN opened this issue Aug 25, 2021 · 2 comments
Open

Error during the login #99

NathanRDN opened this issue Aug 25, 2021 · 2 comments

Comments

@NathanRDN
Copy link

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
Copy link
Owner

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
Copy link
Contributor

epenet commented Aug 26, 2021

Check out these bits when you request the token:

pyze/src/pyze/api/gigya.py

Lines 104 to 112 in 103a142

response = self._session.post(
self._root_url + '/accounts.getJWT',
{
'ApiKey': self._credentials['gigya-api-key'],
'login_token': self._credentials['gigya'],
'fields': 'data.personId,data.gigyaDataCenter',
'expiration': 900
}
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants