opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.07k stars 700 forks source link

Custom authentication #7520

Closed maoudia-via closed 2 weeks ago

maoudia-via commented 2 weeks ago

Important notices

Our forum is located at https://forum.opnsense.org , please consider joining discussions there in stead of using GitHub for these matters.

Before you ask a new question, we ask you kindly to acknowledge the following:

I am try to understand the feasibility of using a custom authentication mechanism for Captive Portal. My goal is to :

I would like to know:

fichtner commented 2 weeks ago

You can build pluggable authentication method easily:

https://docs.opnsense.org/development/components/authentication.html

Cheers, Franco

maoudia-via commented 2 weeks ago

Thank you for the quick response. So in the Captive Portal configuration, this would appear as another authentication method . Correct ?

AdSchellevis commented 2 weeks ago

When configured… same as any other type

maoudia-via commented 2 weeks ago

Thank you !

maoudia-via commented 2 weeks ago

One follow up question as I am new to development in OpnSense : I see the existing authentication classes are under src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php in Core. Is it necessary to build a new image with the addition of the new Authentication class or can the authentication class be added as a plugin ?

fichtner commented 2 weeks ago

Plugin makes more sense, but for custom deployments just dropping the file in the target system is more than enough.