geomacy commented on a change in pull request #77: Allow sent user defined 
headers and omit credentials if not needed
URL: https://github.com/apache/brooklyn-client/pull/77#discussion_r289194130
 
 

 ##########
 File path: cli/commands/login.go
 ##########
 @@ -168,3 +206,13 @@ func (cmd *Login) Run(scope scope.Scope, c *cli.Context) {
        }
        fmt.Printf("Connected to Brooklyn version %s at %s\n", 
loginVersion.Version, cmd.network.BrooklynUrl)
 }
+
+func (cmd *Login) isBasicAuth() bool {
+       return strings.EqualFold(cmd.network.AuthorizationType,BASIC_AUTH)
+}
+
+func (cmd *Login) parseAuthorizationParam(authParam string) []string {
+       return strings.SplitN(authParam, ":", 2)
 
 Review comment:
   see comments above about parsing the auth flag

----------------------------------------------------------------
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