Solved OpenConnect and 2FA

Hello,
I'm confused...
So far, reading Google has not helped me.
So I turn to the community for help.
We have VPN through the CISCO firewall and MFA (Multi-Factor Authentication) with Azure.

When I run vpn client from CISCO AnyConnect a Internet browser window opens where I can enter my username and password:
Screenshot from 2023-01-19 17-45-52.png


And then a window appears where I have to enter a 6-digit key.
This key generates for me Windows Authenticator on my Android Phone or ga-cmd

1674146872010.png


And if everything is correct, then the VPN tunnel opens.
The problem is that I can't figure out how to do this with security/openconnect

Does anyone know how to do the same with security/openconnect in CLI ?

Best regards,

PS
I found this link:
But I still could not pass the password to openconnect stdin, i have error:
Code:
fgets (stdin): Inappropriate ioctl for device
 
Back
Top