Skip to content

Commit 87639ef

Browse files
committed
feat: add SAML2 login endpoint to front-end configuration
1 parent 8530f95 commit 87639ef

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

installer/templates/front-end.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,19 @@ const FrontEnd string = `server {
1515
set $utmstack_agent_manager http://agentmanager:8080;
1616
set $utmstack_backend_auth http://backend:8080/api/authenticate;
1717
set $utmstack_ws http://backend:8080/ws;
18+
set $utmstack_saml2 http://backend:8080/login/saml2/;
1819
set $shared_key {{.SharedKey}};
1920
set $shared_key_header $http_x_shared_key;
2021
22+
location /login/saml2/ {
23+
proxy_pass $utmstack_saml2
24+
proxy_http_version 1.1;
25+
proxy_set_header Host $host;
26+
proxy_set_header X-Real-IP $remote_addr;
27+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
28+
proxy_set_header X-Forwarded-Proto $scheme;
29+
}
30+
2131
location /api {
2232
proxy_pass $utmstack_backend;
2333
proxy_set_header Host $host;

0 commit comments

Comments
 (0)