OPNsense Forum

English Forums => Development and Code Review => Topic started by: andrelfc on April 17, 2020, 03:32:19 PM

Title: Captive portal - New authentication functionality
Post by: andrelfc on April 17, 2020, 03:32:19 PM
Hello, I wanted to add a new authentication functionality in the captive portal, where should I start?
Title: Re: Captive portal - New authentication functionality
Post by: franco on April 20, 2020, 10:40:33 AM
Hi there,

Authentication is fully pluggable. Take a look at:

https://github.com/opnsense/core/tree/master/src/opnsense/mvc/app/library/OPNsense/Auth

Voucher.php is a good example that is commonly used with captive portal. The development manual is also of interest in general terms.

https://docs.opnsense.org/develop.html


Cheers,
Franco