diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-09-01 22:17:30 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-09-01 22:17:30 +0200 |
commit | dd5cb03372b1126107d4bc71f2d8a1e6e66044d9 (patch) | |
tree | 09550287ea87dd2dfcc79c86a3b71025060fa19a | |
parent | 506eb92593960d4f2c2bb08958697411ea435cee (diff) | |
download | pysaml2-dd5cb03372b1126107d4bc71f2d8a1e6e66044d9.tar.gz |
Allow kwargs to percolate down through calls. Mark static methods as such.
-rw-r--r-- | src/saml2/client_base.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/saml2/client_base.py b/src/saml2/client_base.py index f4676d23..7825794c 100644 --- a/src/saml2/client_base.py +++ b/src/saml2/client_base.py @@ -191,7 +191,8 @@ class Base(Entity): return ava #noinspection PyUnusedLocal - def is_session_valid(self, _session_id): + @staticmethod + def is_session_valid(_session_id): """ Place holder. Supposed to check if the session is still valid. """ return True @@ -399,7 +400,7 @@ class Base(Entity): return self._message(AuthzDecisionQuery, destination, message_id, consent, extensions, sign, action=action, evidence=evidence, resource=resource, - subject=subject) + subject=subject, **kwargs) def create_authz_decision_query_using_assertion(self, destination, assertion, action=None, @@ -436,7 +437,8 @@ class Base(Entity): resource, subject, message_id=message_id, consent=consent, extensions=extensions, sign=sign) - def create_assertion_id_request(self, assertion_id_refs, **kwargs): + @staticmethod + def create_assertion_id_request(assertion_id_refs, **kwargs): """ :param assertion_id_refs: @@ -534,7 +536,7 @@ class Base(Entity): "entity_id": self.config.entityid, "attribute_converters": self.config.attribute_converters, "allow_unknown_attributes": - self.config.allow_unknown_attributes, + self.config.allow_unknown_attributes, } try: resp = self._parse_response(xmlstr, AuthnResponse, |