plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[nginx] Set proper Basic Auth realm with Advanced ACLs

Open StephanTexxpro opened this issue 4 months ago • 0 comments

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

  • [X] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
  • [X] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
  • [X] When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe. When I enable the Advanced ACLs, the Realm for the Basic Auth is always set to the hardcoded string 'OPNsense Protected Area - Authentication Required'. As the Basic Auth Realm defines (according to my understanding of RFC 7235) a protection space, sharing the same realm for many (proxied) websites seems to be problematic.

Describe the solution you'd like Take the value of the already available field 'Basic Authentication' within the 'Location' form, pass it to ngx_auth.php and change the hardcoded string dynamicly to the value passed.

Describe alternatives you've considered N/A

Additional context N/A

StephanTexxpro avatar Oct 02 '24 10:10 StephanTexxpro