Welcome! Log In Create A New Profile

Advanced

Re: Global basic auth for multiple servers

Maxim Dounin
April 12, 2020 10:56AM
Hello!

On Sat, Apr 11, 2020 at 11:21:19PM +0000, Stefan Christ wrote:

> today I tried to install and setup nginx and it worked great so
> far. I was able to add some servers (server sections) for each
> of my subdomains and forward them to the specific web interface
> in my network (reverse proxy).
>
> I wanted to add some extra security so I used basic auth in the
> http section and turned it off for one single subdomain. Now I
> get asked to auth for each subdomain. Is it possible to
> configure nginx so that I only have to auth on one subdomain and
> have access to all others subdomains without being forced to
> auth again?

No. Unfortunately, Basic HTTP authentication only provides
implicit authentication scope, and automatic reuse of credentials
is not possible across different [sub]domains. Further details
can be found in RFC 7617, "2.2. Reusing Credentials", here:

https://tools.ietf.org/html/rfc7617#section-2.2

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Global basic auth for multiple servers

Stefan Christ April 11, 2020 07:22PM

Re: Global basic auth for multiple servers

Maxim Dounin April 12, 2020 10:56AM

AW: Global basic auth for multiple servers

Anonymous User April 12, 2020 11:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 227
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready