Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Apr 26, 2016
1 parent ab36d49 commit 5aee1f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions social/backends/open_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
from calendar import timegm

from jwt import InvalidTokenError, decode as jwt_decode

from openid.consumer.consumer import Consumer, SUCCESS, CANCEL, FAILURE
from openid.consumer.discover import DiscoveryFailure
from openid.extensions import sreg, ax, pape

from social.utils import url_add_parameters
from social.backends.base import BaseAuth
from social.backends.oauth import BaseOAuth2
from social.exceptions import (
AuthException, AuthFailed, AuthCanceled, AuthUnknownError, AuthMissingParameter, AuthTokenError
)
from social.utils import url_add_parameters
from social.exceptions import AuthException, AuthFailed, AuthCanceled, \
AuthUnknownError, AuthMissingParameter, \
AuthTokenError


# OpenID configuration
OLD_AX_ATTRS = [
Expand Down
6 changes: 4 additions & 2 deletions social/tests/backends/open_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ def extra_settings(self):
settings.update({
'SOCIAL_AUTH_{0}_KEY'.format(self.name): self.client_key,
'SOCIAL_AUTH_{0}_SECRET'.format(self.name): self.client_secret,
'SOCIAL_AUTH_{0}_ID_TOKEN_DECRYPTION_KEY'.format(self.name): self.client_secret,
'SOCIAL_AUTH_{0}_ID_TOKEN_MAX_AGE'.format(self.name): self.id_token_max_age,
'SOCIAL_AUTH_{0}_ID_TOKEN_DECRYPTION_KEY'.format(self.name):
self.client_secret,
'SOCIAL_AUTH_{0}_ID_TOKEN_MAX_AGE'.format(self.name):
self.id_token_max_age
})
return settings

Expand Down

0 comments on commit 5aee1f8

Please sign in to comment.