Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and nijel committed Jan 30, 2024
1 parent c19ae66 commit 22dcdaa
Show file tree
Hide file tree
Showing 122 changed files with 122 additions and 3 deletions.
1 change: 1 addition & 0 deletions social_core/backends/angel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Angel OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/angel.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/aol.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
AOL OpenId backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/aol.html
"""

from .open_id import OpenIdAuth


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/appsfuel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Appsfueld OAuth2 backend (with sandbox mode support), docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/appsfuel.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/arcgis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
ArcGIS OAuth2 backend
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/auth0.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Auth0 implementation based on:
https://auth0.com/docs/quickstart/webapp/django/01-login
"""

import jwt

from .oauth import BaseOAuth2
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/beats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Beats backend, docs at:
https://developer.beatsmusic.com/docs
"""

import base64

from ..utils import handle_http_errors
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/behance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Behance OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/behance.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/belgiumeid.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Belgium EID OpenId backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/belgium_eid.html
"""

from .open_id import OpenIdAuth


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/bitbucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Bitbucket OAuth2 and OAuth1 backends, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/bitbucket.html
"""

from ..exceptions import AuthForbidden
from .oauth import BaseOAuth1, BaseOAuth2

Expand Down
1 change: 1 addition & 0 deletions social_core/backends/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Box.net OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/box.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/bungie.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Bungie OAuth2 backend
"""

from social_core.backends.oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/chatwork.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Chatwork OAuth2 backend
"""

import base64

from .oauth import BaseOAuth2
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/coding.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Coding OAuth2 backend, docs at:
"""

from urllib.parse import urljoin

from .oauth import BaseOAuth2
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/coinbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Coinbase OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/coinbase.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/coursera.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Coursera OAuth2 backend, docs at:
https://tech.coursera.org/app-platform/oauth2/
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/dailymotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DailyMotion OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/dailymotion.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/deezer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://developers.deezer.com/api/oauth
https://developers.deezer.com/api/permissions
"""

from urllib.parse import parse_qsl

from .oauth import BaseOAuth2
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Discord Auth OAuth2 backend, docs at:
https://discord.com/developers/docs/topics/oauth2
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/disqus.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Disqus OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/disqus.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Docker Hub OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/docker.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/douban.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Douban OAuth1 and OAuth2 backends, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/douban.html
"""

from .oauth import BaseOAuth1, BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/drip.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Drip OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/drip.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/edmodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Edmodo OAuth2 Sign-in backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/edmodo.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Legacy Email backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/email.html
"""

from .legacy import LegacyAuth


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/eveonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
EVE Online Single Sign-On (SSO) OAuth2 backend
Documentation at https://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/index.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/evernote.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Evernote OAuth1 backend (with sandbox mode support), docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/evernote.html
"""

from requests import HTTPError

from ..exceptions import AuthCanceled
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/exacttarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Support Authentication from IMH using JWT token and pre-shared key.
Requires package pyjwt
"""

from datetime import datetime, timedelta

import jwt
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Facebook OAuth2, and Canvas Application backends, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/facebook.html
"""

import base64
import hashlib
import hmac
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/facebook_limited.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Facebook Limited Login backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/facebook.html
"""

from ..exceptions import AuthTokenError
from .open_id_connect import OpenIdConnectAuth

Expand Down
1 change: 1 addition & 0 deletions social_core/backends/fedora.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Fedora OpenId backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/fedora.html
"""

from .open_id import OpenIdAuth


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/fitbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Fitbit OAuth backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/fitbit.html
"""

import base64

from .oauth import BaseOAuth1, BaseOAuth2
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/five_hundred_px.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
500px OAuth1 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/five_hundred_px.html
"""

from .oauth import BaseOAuth1


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Flat OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/flat.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/flickr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Flickr OAuth1 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/flickr.html
"""

from .oauth import BaseOAuth1


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/foursquare.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Foursquare OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/foursquare.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/gitea.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Gitea OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/gitea.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Github OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/github.html
"""

from urllib.parse import urljoin

from requests import HTTPError
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/github_enterprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Github Enterprise OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/github_enterprise.html
"""

from urllib.parse import urljoin

from ..utils import append_slash
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
GitLab as OAuth provider](http://widerin.net/blog/weblate-gitlab-oauth-login/).
His code was a great reference when working on this implementation.
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Google OpenId, OAuth2, OAuth1, Google+ Sign-in backends, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/google.html
"""

from ..exceptions import AuthMissingParameter
from ..utils import handle_http_errors
from .oauth import BaseOAuth1, BaseOAuth2
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/google_openidconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Google OpenIdConnect:
https://python-social-auth.readthedocs.io/en/latest/backends/google.html
"""

from .google import GoogleOAuth2
from .open_id_connect import OpenIdConnectAuth

Expand Down
1 change: 1 addition & 0 deletions social_core/backends/hubspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
HubSpot OAuth2 backend, docs at:
https://developers.hubspot.com/docs/methods/oauth2/oauth2-overview
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Instagram OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/instagram.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/jawbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Jawbone OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/jawbone.html
"""

from ..exceptions import AuthCanceled, AuthUnknownError
from ..utils import handle_http_errors
from .oauth import BaseOAuth2
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/kakao.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Kakao OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/kakao.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/khanacademy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Khan Academy OAuth backend, docs at:
https://github.com/Khan/khan-api/wiki/Khan-Academy-API-Authentication
"""

from urllib.parse import urlencode

from oauthlib.oauth1 import SIGNATURE_HMAC, SIGNATURE_TYPE_QUERY
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
LINE Login OAuth2 backend, docs at:
https://developers.line.me/en/docs/line-login/
"""

import json

import requests
Expand Down
1 change: 1 addition & 0 deletions social_core/backends/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
LinkedIn OAuth1 and OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/linkedin.html
"""

import datetime
from calendar import timegm

Expand Down
1 change: 1 addition & 0 deletions social_core/backends/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Live OAuth2 backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/live.html
"""

from .oauth import BaseOAuth2


Expand Down
1 change: 1 addition & 0 deletions social_core/backends/livejournal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
LiveJournal OpenId backend, docs at:
https://python-social-auth.readthedocs.io/en/latest/backends/livejournal.html
"""

from urllib.parse import urlsplit

from ..exceptions import AuthMissingParameter
Expand Down
Loading

0 comments on commit 22dcdaa

Please sign in to comment.