#46 How to authenticate when OTP is enabled in FAS
Closed: Fixed by imabug. Opened by imabug.

I have OTP enabled on my FAS account and was noticing that submitting kernel-tests logs fails authentication

Traceback (most recent call last):
File "/home/eugenem/workspace/kernel-tests/./fedora_submit.py", line 43, in <module> submitclient.login(
File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 303, in login response = openid_login(
File "/usr/lib/python3.10/site-packages/fedora/client/openidproxyclient.py", line 138, in openid_login raise AuthError(output['message'])
fedora.client.AuthError: Authentication failed

Is there a way to add OTP or include some kind of authentication token so that submitting kernel-tests logs works?


Are you submitting as password + token all as one string? That works fine for me with OTP authentication. The things which ask for password and token separately just cat them together before submitting them on the back end.

Oh, well that was simple. Password + OTP worked perfectly, thanks!

Metadata Update from @imabug:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata