I was wondering if there's a way to create a web form on the Captive Portal so that a user could create their own account and have it added to the PAN Local DB via an API?
Solved! Go to Solution.
Of course you'll notice that the above command contains a phash, which we can also generate via the API
Note that both of the above api calls work as-is if you are currently logged in to the firewall as a superuser. For a js form you wouldn't be, so you would need to generate an API key and use it in your calls.
As always, even with obfuscation the API key is potentially extractable and could be used for other purposes, so it's best to ensure that this is only used in a trusted environment.
Thank you very much! Tried it from my browser and it worked great! Now just need to test it out with a CP Response Page.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!
The Live Community thanks you for your participation!