From 41f0137e941e395d7347dd78552e6c2d2caf342e Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sat, 17 Aug 2019 17:31:22 +0100
Subject: [PATCH] Fix the /login/ URL to have a slash, to limit SSO to it

---
 saml/saml.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/saml/saml.go b/saml/saml.go
index 6fab1a8..43317e4 100644
--- a/saml/saml.go
+++ b/saml/saml.go
@@ -233,7 +233,7 @@ func NewSAMLIDP(config *Config) (http.Handler, error) {
 		return nil, err
 	}
 	ssoURL := *baseURL
-	ssoURL.Path += "/login"
+	ssoURL.Path += "/login/"
 	metadataURL := *baseURL
 	metadataURL.Path += "/metadata"
 	svc := fmt.Sprintf("%s%s", baseURL.Host, baseURL.Path)
-- 
GitLab