proxyauth: show intermediate login button page

This commit is contained in:
Johannes Zellner
2024-04-16 12:45:23 +02:00
parent c3be0018fe
commit 255fb0cac0
4 changed files with 121 additions and 11 deletions

View File

@@ -303,7 +303,7 @@ server {
proxy_set_header Content-Length "";
}
location ~ ^/(logout|callback)$ {
location ~ ^/(login|logout|callback)$ {
proxy_pass http://127.0.0.1:3001;
}
@@ -314,7 +314,7 @@ server {
if ($http_user_agent ~* "container") {
return 401;
}
return 302 "https://<%= proxyAuth.oidcEndpoint %>/openid/auth?client_id=<%= proxyAuth.oidcClientId %>&scope=openid profile email&response_type=code&redirect_uri=https://<%= vhost %>/callback";
return 302 "/login";
}
location <%= proxyAuth.location %> {
@@ -370,7 +370,7 @@ server {
proxy_set_header Content-Length "";
}
location ~ ^/(logout|callback)$ {
location ~ ^/(login|logout|callback)$ {
proxy_pass http://127.0.0.1:3001;
}
@@ -382,7 +382,7 @@ server {
return 401;
}
return 302 "https://<%= proxyAuth.oidcEndpoint %>/openid/auth?client_id=<%= proxyAuth.oidcClientId %>&scope=openid profile email&response_type=code&redirect_uri=https://<%= vhost %>/callback";
return 302 "/login";
}
location / {