public function getSession(\common_http_Request $request)
    {
        $authAdapter = new \tao_models_classes_HttpBasicAuthAdapter($request);
        $user = $authAdapter->authenticate();
        return new \common_session_RestSession($user);
    }
public function getSession(\common_http_Request $request)
    {
        $authAdapter = new \tao_models_classes_HttpBasicAuthAdapter($request);
        $user = $authAdapter->authenticate();
        return new \common_session_RestSession($user);
    }
public function getSession ( \ common_http_Request $ request ) { $ authAdapter = new \ tao_models_classes_HttpBasicAuthAdapter ( $ request ) ; $ user = $ authAdapter -> authenticate ( ) ; return new \ common_session_RestSession ( $ user ) ; }
Create a rest session based on request credentials

@param \common_http_Request $request
@return \common_session_RestSession|\common_session_Session
@throws LoginFailedException
Create a rest session based on request credentials