-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix degiro keys setup and improve 2FA authentication #2234
Conversation
It doesn't matter for me:
Even after a completely fresh installation of the terminal. |
Can you try leaving and reentering the terminal after setting the keys and then login on degiro menu pls? Just to understand if it's a similar issue I run into today. |
Unfortunately doesn't change a thing. I still receive the same error. Could it be my password? It contains all types of symbols (e.g. #!@) |
If don't mind temporarily changing your password just to rule that out... I actually did tests with a password with special character so should not be an issue. Any ideas on what could be the problem @Chavithra ? |
I tried and it doesn't change a thing unfortunately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
We need to check @JerBouma issue in another PR
Found the issue, I input my email instead of username. However, there needs to be a test that checks if it actually works. This can simply be calling
|
Nice!! I can look into that, but if user has 2FA it will need to input it to test the keys on Meanwhile this #2143 is already testable with your own ETFs then. |
I am still not able to login to Degiro. I have 2FA set up. Perhaps it is because originally I used |
Hi @xapel, API keys are stored in a .env file in your installation folder. E.g. "C:\Users\username\OpenBB.env". We recently uploaded instructions on Degiro login with 2FA here: https://openbb-finance.github.io/OpenBBTerminal/terminal/portfolio/bro/degiro/ |
Do you know where I find this file on macOS? |
I managed to find the file at
|
I can reproduce your error on 1.8. installer, but seems to work fine in the main branch for next release. If this issue still persists we get back to it. |
I have upgraded to v1.9 now, but the issue is still the same for me. I cannot login to Degiro.
|
I have the same issue, entered
Then went into
Could you look into this @montezdesousa? |
@hjoaquim is fixing some stuff here #2747, we can try to reproduce |
I don't know how to test from main. Is there instructions for how to do this? |
To update your main branch:
After: Just try the instructions you described above 😊 |
I have the code checked out in a folder on my machine now. How do I proceed? Do I need to build it first? Or can I just run something from the terminal? |
@xapel in the meantime |
Description
This PR fixes the issue with setting up username and password for Degiro api in
keys
raised in #2143 by @JerBouma. It also adds a new way to login for users with 2FA authentication enabled on Degiro throughlogin
command indegiro
sub-menu.How has this been tested?
keys
and type credentialsdegiro -u USERNAME -p PASSWORD
/portfolio/bro/degiro
and typelogin
if no 2FA/portfolio/bro/degiro
and typelogin -otp ONETIMEPASSWORD
if 2FA enabledOthers
pre-commit install
.pytest tests/...
.