Get session login action URL in my custom Authenticator

Hi everyone!

I am implementing Authenticator. How get I get or construct login action URL for current session in method authenticate(AuthenticationFlowContext context)?

This URL is used in UI form action <form action="${url.loginAction}" method="post"> to call method action for certain session, if I understand it correctly.

This URL looks like this http://localhost:8001/realms/master/login-actions/authenticate?session_code=UCV8FLAiv30aa9Bja3erWEb6wyrNL2_jPTnoCPUkhVg&execution=8dbcb38d-16f3-47b4-84a4-7cf76d51fc7d&client_id=myclient&tab_id=Ug8DtA2fVEU