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") 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 }