service/components/clients/app/Client.php
/**
     * Sends authentication request to auth server
     *
     * @param  string $username
     * @param  string $password
     * @return service\components\clients\app\Response
     */
Sends authentication request to auth server
@param  string $username
@param  string $password
@return service\components\clients\app\Response
Sends authentication request to auth server @param string $username @param string $password @return service \ components \ clients \ app \ Response
public function authenticate($username, $password = null)
    {
        if ($password != null) {
            $params = ['username' => $username, 'password' => $password];
        } else {
            $params = ['username' => $username];
        }
        $request = new Request('POST',
            $this->baseUrl.'/user/auth/',
            $params,
            $this->options
        );
        return $request->send();
    }
public function authenticate ( $ username , $ password = null ) { if ( $ password != null ) { $ params = [ 'username' => $ username , 'password' => $ password ] ; } else { $ params = [ 'username' => $ username ] ; } $ request = new Request ( 'POST' , $ this -> baseUrl . '/user/auth/' , $ params , $ this -> options ) ; return $ request -> send ( ) ; }
Sends authentication request to auth server
 @param  string $username
 @param  string $password
 @return service\components\clients\app\Response
Sends authentication request to auth server @param string $username @param string $password @return service \ components \ clients \ app \ Response
//Username and password provided //No password given treat username as authKey