def GetAuth(self):
if self.auth: return self.auth<EOL>for elt in self.ps.GetMyHeaderElements():<EOL><INDENT>if elt.localName == '<STR_LIT>'and elt.namespaceURI == ZSI_SCHEMA_URI:<EOL><INDENT>d = _auth_tc.parse(elt, self.ps)<EOL>self.auth = (AUTH.zsibasic, d['<STR_LIT:Name>'], d['<STR_LIT>'])<EOL>return self.auth<EOL><DEDENT><DEDENT>ba = self.environ.get('<STR_LIT>')<EOL>if ba:<EOL><INDENT>ba = ba.split('<STR_LIT:U+0020>')<EOL>if len(ba) == <NUM_LIT:2> and ba[<NUM_LIT:0>].lower() == '<STR_LIT>':<EOL><INDENT>ba = _b64_decode(ba[<NUM_LIT:1>])<EOL>self.auth = (AUTH.httpbasic,) + tuple(ba.split('<STR_LIT::>'))<EOL>return self.auth<EOL><DEDENT><DEDENT>self.auth = (AUTH.none,)<EOL>return self.auth<EOL>
Return a tuple containing client authentication data.