External Portal Authentication
Good afternoon
I'm trying to do an external portal authentication on an Omada Controller version 5.3.1.
I made an API in NET Core and based it on this documentation:
https://www.tp-link.com/br/support/faq/3231/
It worked until steps 10 and 11. I manage to generate the token.
According to the documentation, in steps 12 and 13 I make a request: POST api/v2/hotspot/extPortal/auth, passing the token in the header.
The strange thing is that in the example PHP code, there is another URL:
// API Call
curl_setopt($ch, CURLOPT_URL, "https://" . CONTROLLER . ":" . PORT . "/" . CONTROLLER_ID . "/api/v2/hotspot/login");
Using the first URL (steps 12 and 13), I have an error HTML to return. Trying the second URL (PHP code), authentication is performed again and a new token is generated.
Checking the documentation, it talks about saving cookie on controller request. Is this mandatory?
I don't know if I'm doing something wrong or need some Omada configuration.