how to connect esp8266 to enternet via mikrotik

I am facing a problem connecting my esp8266ex to the mikrotik network … and making the esp8266ex connect to the Internet via the mikrotik network … The problem here is that the connection is not like regular networks … the router does not ask you for a password to enter the network so all you need is the ssid But you cannot access the Internet until entering the login data (username , password) on the network’s login page … It does not seem that there are any articles on Google about this … Any help would be appreciated.