Credentials for ESP8266

Hi group.
I am programming in an ESP8266 module but in the network I am working on it is a network that occupies:
-SSID network name
-Username
-Password

But in ALL the examples I see, it only gives
-SSID network name
-Password

Has anyone investigated and managed to obtain it with a user?

I think the way these work is the access point is actually open, but then it has a captive portal with the username and password. So you need to connect to the SSID with no password, then send the username and password in a HTTP request after connecting to actually get access to the network.