Re: NGINX multiple authentication methods (one or the other) AND an IP check seems impossible

2024-05-27 Thread Gergő Vári
That works wonderfully, thank you! On May 27, 2024 6:48:40 AM UTC, J Carter wrote: >Hello, > >[...] > >> ``` >> The goal is to bypass SSO if a correct HTTP Basic Auth header is present >> while making sure connections are only from said IPs. >> >> When I disable the IP check it works

Re: NGINX multiple authentication methods (one or the other) AND an IP check seems impossible

2024-05-27 Thread J Carter
Hello, [...] > ``` > The goal is to bypass SSO if a correct HTTP Basic Auth header is present > while making sure connections are only from said IPs. > > When I disable the IP check it works flawlessly. How could I separate these > requirements? > > So (SSO or Basic Auth) and Correct IP

NGINX multiple authentication methods (one or the other) AND an IP check seems impossible

2024-05-26 Thread Gergő Vári
``` location / { proxy_pass $forward_auth_target; allow x/24; deny all; satisfy any; # This gets satisfied by the IP check, and auth is completely bypassed auth_basic ""; auth_basic_user_file "/etc/nginx/basic_auth/$forward_auth_bypass";