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

Unable to login to account with two-factor authentication (OTP) #239

Open
wna-se opened this issue Aug 21, 2024 · 1 comment
Open

Unable to login to account with two-factor authentication (OTP) #239

wna-se opened this issue Aug 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wna-se
Copy link

wna-se commented Aug 21, 2024

**Unable to login to account with two-factor authentication (OTP) **

When running pyega3 datasets and providing valid EGA credentials I get the following error message:

Used versions

  • Operating System version: Ubuntu 22.04.4 LTS (containerized)
  • Python version: Python 3.11.9
  • PyEGA3 version: pyEGA3 - EGA python client version 5.2.0

To Reproduce

Activate two-factor authentication on the account and try to use the client.

Observed behaviour

Asked for username and password followed by an error about Invalid username, password or secret key

Expected behaviour

Being asked to provide OTP code in addition to password.

Screenshots and error messages

Invalid username, password or secret key - please check and retry. If problem persists contact helpdesk on [email protected]
Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/site-packages/pyega3/libs/auth_client.py", line 39, in token
    r.raise_for_status()
  File "/opt/conda/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error:  for url: https://ega.ebi.ac.uk:8443/ega-openid-connect-server/token

Additional context

Looking at auth_client.py#L28 the required otp field seems to be missing. E.g., the function has not been implemented.

Edit: I can run pyega3 -t datasets and successfully list the test user’s ([email protected]) datasets.

@wna-se wna-se added the bug Something isn't working label Aug 21, 2024
@DexinYang1998
Copy link

We have encountered the same issue since last month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants