proxyauth: show intermediate login button page
This commit is contained in:
@@ -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 / {
|
||||
|
||||
Reference in New Issue
Block a user