From 68f6a6253eb1dda3a45ccd5cb29795ab65a76174 Mon Sep 17 00:00:00 2001 From: Andrew Swistak Date: Thu, 28 Sep 2017 11:28:10 -0500 Subject: [PATCH 1/2] Use proxyValidate for ticket validation --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 7a550d1..7a95dea 100644 --- a/client.go +++ b/client.go @@ -132,9 +132,9 @@ func (c *Client) LogoutUrlForRequest(r *http.Request) (string, error) { return u.String(), nil } -// ServiceValidateUrlForRequest determines the CAS serviceValidate URL for the ticket and http.Request. +// ServiceValidateUrlForRequest determines the CAS proxyValidate URL for the ticket and http.Request. func (c *Client) ServiceValidateUrlForRequest(ticket string, r *http.Request) (string, error) { - u, err := c.url.Parse(path.Join(c.url.Path, "serviceValidate")) + u, err := c.url.Parse(path.Join(c.url.Path, "proxyValidate")) if err != nil { return "", err } From f38a007966520376c3fb7c0f260872d1f44c8b4b Mon Sep 17 00:00:00 2001 From: Andrew Swistak Date: Thu, 28 Sep 2017 12:28:16 -0500 Subject: [PATCH 2/2] Update TestServer to check proxyValidate --- cas_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_test.go b/cas_test.go index 6eac0a2..073f85f 100644 --- a/cas_test.go +++ b/cas_test.go @@ -82,7 +82,7 @@ func (ts *TestServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { } return - case "/serviceValidate": + case "/proxyValidate": ticket := query.Get("ticket") service := query.Get("service")