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

Encrypt Password not working #348

Open
gonza1207 opened this issue Mar 7, 2025 · 0 comments
Open

Encrypt Password not working #348

gonza1207 opened this issue Mar 7, 2025 · 0 comments

Comments

@gonza1207
Copy link

I'm authenticating with my demo account. If I choose to not encrypt password, the login works and can use the API. If I just change the value of encrypt password to True, then I get authentication error.
I have tried using the API Companion from IG on web, and Im able to authenticate encrypting the password and the same credentials.

Everything indicates that the password encryption using the encryption key is wrong, but I don't understand how anyone else doesn't have this problem.

ig_service = IGService(config.username, config.password, config.api_key, acc_number=config.acc_number)
ig = ig_service.create_session(version='3', encryption=False)

That works.

ig_service = IGService(config.username, config.password, config.api_key, acc_number=config.acc_number)
ig = ig_service.create_session(version='3', encryption=True)

That fails with:

{"errorCode":"error.security.invalid-details"}
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

1 participant