diff options
author | Navid Pustchi <npustchi@gmail.com> | 2016-05-03 18:54:12 +0000 |
---|---|---|
committer | Navid Pustchi <npustchi@gmail.com> | 2016-05-04 19:45:30 +0000 |
commit | bca112c8ba5636becd6951fbfb8cb8f2474279fe (patch) | |
tree | 9c8e9ba8f060f1f4a8f6bd3cb4101a0f9ba7e45e /keystoneclient/contrib/auth/v3/saml2.py | |
parent | a9adca02dbdbf786dd7015f4d3c67c514d757423 (diff) | |
download | python-keystoneclient-bca112c8ba5636becd6951fbfb8cb8f2474279fe.tar.gz |
Fixing D202 and D203 PEP257 violation.
Currently tox ignores D202 and D203.
D202: No blank lines allowed after function docstring.
D203: 1 blank required before class docstring.
This change removes D202 and D203 ignores in tox and fix violations.
Change-Id: I97ef88c9cfd56774e47f789cbbcf8ccfe85d7737
Diffstat (limited to 'keystoneclient/contrib/auth/v3/saml2.py')
-rw-r--r-- | keystoneclient/contrib/auth/v3/saml2.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/keystoneclient/contrib/auth/v3/saml2.py b/keystoneclient/contrib/auth/v3/saml2.py index a519458..8a07b7f 100644 --- a/keystoneclient/contrib/auth/v3/saml2.py +++ b/keystoneclient/contrib/auth/v3/saml2.py @@ -293,7 +293,6 @@ class Saml2UnscopedToken(_BaseSAMLPlugin): def _send_idp_saml2_authn_request(self, session): """Present modified SAML2 authn assertion from the Service Provider.""" - self._prepare_idp_saml2_request(self.saml2_authn_request) idp_saml2_authn_request = self.saml2_authn_request @@ -581,7 +580,6 @@ class ADFSUnscopedToken(_BaseSAMLPlugin): :type fmt: string """ - date_created = datetime.datetime.utcnow() date_expires = date_created + datetime.timedelta( seconds=self.DEFAULT_ADFS_TOKEN_EXPIRATION) @@ -593,7 +591,6 @@ class ADFSUnscopedToken(_BaseSAMLPlugin): Some values like username or password are inserted in the request. """ - WSS_SECURITY_NAMESPACE = { 'o': ('http://docs.oasis-open.org/wss/2004/01/oasis-200401-' 'wss-wssecurity-secext-1.0.xsd') @@ -905,7 +902,6 @@ class Saml2ScopedTokenMethod(v3.TokenMethod): def get_auth_data(self, session, auth, headers, **kwargs): """Build and return request body for token scoping step.""" - t = super(Saml2ScopedTokenMethod, self).get_auth_data( session, auth, headers, **kwargs) _token_method, token = t |