From 663e8c86ee41eea2278bbc23ff1687d586bb725e Mon Sep 17 00:00:00 2001 From: Anand Vasudevan Date: Tue, 1 Sep 2020 16:44:27 +0530 Subject: [PATCH] Implement SSO login initial changes Fixed linting Signed-off-by: Anand Vasudevan --- clientapi/routing/sso.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/clientapi/routing/sso.go b/clientapi/routing/sso.go index 0c451e3504..6aafc8eeaf 100644 --- a/clientapi/routing/sso.go +++ b/clientapi/routing/sso.go @@ -109,7 +109,7 @@ func SSOTicket( ssoURL.RawQuery = ssoQueries.Encode() // validate the ticket - casUsername, err := validateTicket(ticket, cfg) + casUsername, err := validateTicket(ticket) if err != nil { // TODO: should I be logging these? What else should I log? util.GetLogger(req.Context()).WithError(err).Error("CAS SSO ticket validation failed") @@ -132,10 +132,7 @@ func SSOTicket( // pass the ticket to the sso server to get it validated // the CAS server responds with an xml which contains the username -func validateTicket( - ssoURL string, - cfg *config.ClientAPI, -) (string, error) { +func validateTicket(ssoURL string) (string, error) { // make the call to the sso server to validate response, err := http.Get(ssoURL) if err != nil {