Http authentication via users service

Update:

Since I could not find an answer, I wrote a separate app, which would handle the authentication for the users and ran into an issue with the multiple factor authentication. As I found out, if you enable the 2 step verification, then you can not authenticate the users via api request, since you can not handle the mfa key part of the authentication ( or I do not know about it ).

Is there a way to authenticate users without 2 step verification, if it is enabled? Or is there a better way to solve this?

Thanks in advance,
Arpad