mhoppa commented on a change in pull request #3932: Rewrote /user/login/token 
to Go
URL: https://github.com/apache/trafficcontrol/pull/3932#discussion_r328834071
 
 

 ##########
 File path: traffic_ops/client/session.go
 ##########
 @@ -207,6 +244,36 @@ func LoginWithAgent(toURL string, toUser string, toPasswd 
string, insecure bool,
        return to, remoteAddr, nil
 }
 
+func LoginWithToken(toURL string, token string, insecure bool, userAgent 
string, useCache bool, requestTimeout time.Duration) (*Session, net.Addr, 
error) {
+       options := cookiejar.Options {
+               PublicSuffixList: publicsuffix.List,
+       }
+
+       jar, err := cookiejar.New(&options)
 
 Review comment:
   The build is failing because the jar variable is unused 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to