def authenticated_query(<EOL>self,<EOL>with_message=None,<EOL>username=None,<EOL>password=None<EOL>):
u = username or self.institution.username<EOL>p = password or self.institution.password<EOL>contents = ['<STR_LIT>', self._signOn(username=u, password=p)]<EOL>if with_message:<EOL><INDENT>contents.append(with_message)<EOL><DEDENT>return LINE_ENDING.join([self.header(), _tag(*contents)])<EOL>
Authenticated query

        If you pass a 'with_messages' array those queries will be passed along
        otherwise this will just be an authentication probe query only.