- self.saml_result = d = dict(l)
- if d:
- if self.verbose:
- print("Got SAML relevant headers, done: %r" % d, file=stderr)
+ d = dict(l)
+ if d and self.verbose:
+ print("Got SAML result headers: %r" % d, file=stderr)
+ d = self.saml_result
+ d.update(dict(l))
+ if 'saml-username' in d and ('prelogin-cookie' in d or 'portal-userauthcookie' in d):
+ print("Got all required SAML headers, done.", file=stderr)