Skip to content

Commit 6954bd3

Browse files
committed
fix(oauth2): ACCESS_TOKEN_METHOD defaults to POST
This is possibly a breaking change for a few backends but makes the code follow RFC and removes need for every backend to override this. Fixes #284
1 parent 5a0f060 commit 6954bd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1
-137
lines changed

social_core/backends/amazon.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class AmazonOAuth2(BaseOAuth2):
1313
ACCESS_TOKEN_URL = "https://api.amazon.com/auth/o2/token"
1414
DEFAULT_SCOPE = ["profile"]
1515
REDIRECT_STATE = False
16-
ACCESS_TOKEN_METHOD = "POST"
1716
EXTRA_DATA = [
1817
("refresh_token", "refresh_token", True),
1918
("user_id", "user_id"),

social_core/backends/angel.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
class AngelOAuth2(BaseOAuth2):
1010
name = "angel"
1111
AUTHORIZATION_URL = "https://angel.co/api/oauth/authorize/"
12-
ACCESS_TOKEN_METHOD = "POST"
1312
ACCESS_TOKEN_URL = "https://angel.co/api/oauth/token/"
1413
REDIRECT_STATE = False
1514

social_core/backends/apple.py

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class AppleIdAuth(BaseOAuth2):
4444
JWK_URL = "https://appleid.apple.com/auth/keys"
4545
AUTHORIZATION_URL = "https://appleid.apple.com/auth/authorize"
4646
ACCESS_TOKEN_URL = "https://appleid.apple.com/auth/token"
47-
ACCESS_TOKEN_METHOD = "POST"
4847
RESPONSE_MODE = None
4948

5049
ID_KEY = "sub"

social_core/backends/appsfuel.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class AppsfuelOAuth2(BaseOAuth2):
1111
ID_KEY = "user_id"
1212
AUTHORIZATION_URL = "http://app.appsfuel.com/content/permission"
1313
ACCESS_TOKEN_URL = "https://api.appsfuel.com/v1/live/oauth/token"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
USER_DETAILS_URL = "https://api.appsfuel.com/v1/live/user"
1615

1716
def get_user_details(self, response):

social_core/backends/arcgis.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class ArcGISOAuth2(BaseOAuth2):
1010
ID_KEY = "username"
1111
AUTHORIZATION_URL = "https://www.arcgis.com/sharing/rest/oauth2/authorize"
1212
ACCESS_TOKEN_URL = "https://www.arcgis.com/sharing/rest/oauth2/token"
13-
ACCESS_TOKEN_METHOD = "POST"
1413
EXTRA_DATA = [("expires_in", "expires_in"), ("refresh_token", "refresh_token")]
1514

1615
def get_user_details(self, response):

social_core/backends/asana.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
class AsanaOAuth2(BaseOAuth2):
77
name = "asana"
88
AUTHORIZATION_URL = "https://app.asana.com/-/oauth_authorize"
9-
ACCESS_TOKEN_METHOD = "POST"
109
ACCESS_TOKEN_URL = "https://app.asana.com/-/oauth_token"
1110
REFRESH_TOKEN_URL = "https://app.asana.com/-/oauth_token"
1211
REDIRECT_STATE = False

social_core/backends/atlassian.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
class AtlassianOAuth2(BaseOAuth2):
55
name = "atlassian"
66
AUTHORIZATION_URL = "https://auth.atlassian.com/authorize"
7-
ACCESS_TOKEN_METHOD = "POST"
87
ACCESS_TOKEN_URL = "https://auth.atlassian.com/oauth/token"
98
DEFAULT_SCOPE = ["read:jira-user", "offline_access"]
109
ID_KEY = "accountId"

social_core/backends/auth0.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class Auth0OAuth2(BaseOAuth2):
1313

1414
name = "auth0"
1515
SCOPE_SEPARATOR = " "
16-
ACCESS_TOKEN_METHOD = "POST"
1716
EXTRA_DATA = [("picture", "picture")]
1817

1918
def api_path(self, path=""):

social_core/backends/azuread.py

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class AzureADOAuth2(BaseOAuth2):
4343
BASE_URL = "https://{authority_host}/{tenant_id}"
4444
AUTHORIZATION_URL = "{base_url}/oauth2/authorize"
4545
ACCESS_TOKEN_URL = "{base_url}/oauth2/token"
46-
ACCESS_TOKEN_METHOD = "POST"
4746
REDIRECT_STATE = False
4847
DEFAULT_SCOPE = ["openid", "profile", "user_impersonation", "email"]
4948
EXTRA_DATA = [

social_core/backends/battlenet.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class BattleNetOAuth2(BaseOAuth2):
1414
REDIRECT_STATE = False
1515
AUTHORIZATION_URL = "https://eu.battle.net/oauth/authorize"
1616
ACCESS_TOKEN_URL = "https://eu.battle.net/oauth/token"
17-
ACCESS_TOKEN_METHOD = "POST"
1817
REVOKE_TOKEN_METHOD = "GET"
1918
DEFAULT_SCOPE = ["wow.profile"]
2019
EXTRA_DATA = [

social_core/backends/beats.py

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class BeatsOAuth2(BaseOAuth2):
1515
ID_KEY = "user_context"
1616
AUTHORIZATION_URL = "https://partner.api.beatsmusic.com/v1/oauth2/authorize"
1717
ACCESS_TOKEN_URL = "https://partner.api.beatsmusic.com/oauth2/token"
18-
ACCESS_TOKEN_METHOD = "POST"
1918
REDIRECT_STATE = False
2019

2120
def get_user_id(self, details, response):

social_core/backends/behance.py

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class BehanceOAuth2(BaseOAuth2):
1212
name = "behance"
1313
AUTHORIZATION_URL = "https://www.behance.net/v2/oauth/authenticate"
1414
ACCESS_TOKEN_URL = "https://www.behance.net/v2/oauth/token"
15-
ACCESS_TOKEN_METHOD = "POST"
1615
SCOPE_SEPARATOR = "|"
1716
EXTRA_DATA = [("username", "username")]
1817
REDIRECT_STATE = False

social_core/backends/bitbucket.py

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class BitbucketOAuth2(BitbucketOAuthBase, BaseOAuth2):
5858
SCOPE_SEPARATOR = " "
5959
AUTHORIZATION_URL = "https://bitbucket.org/site/oauth2/authorize"
6060
ACCESS_TOKEN_URL = "https://bitbucket.org/site/oauth2/access_token"
61-
ACCESS_TOKEN_METHOD = "POST"
6261
REDIRECT_STATE = False
6362
EXTRA_DATA = [
6463
("scopes", "scopes"),

social_core/backends/bitbucket_datacenter.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class BitbucketDataCenterOAuth2(BaseOAuth2PKCE):
1616
name = "bitbucket-datacenter-oauth2"
1717
ID_KEY = "id"
1818
SCOPE_SEPARATOR = " "
19-
ACCESS_TOKEN_METHOD = "POST"
2019
REFRESH_TOKEN_METHOD = "POST"
2120
REDIRECT_STATE = False
2221
STATE_PARAMETER = True

social_core/backends/box.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class BoxOAuth2(BaseOAuth2):
1111

1212
name = "box"
1313
AUTHORIZATION_URL = "https://www.box.com/api/oauth2/authorize"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
ACCESS_TOKEN_URL = "https://www.box.com/api/oauth2/token"
1615
REVOKE_TOKEN_URL = "https://www.box.com/api/oauth2/revoke"
1716
SCOPE_SEPARATOR = ","

social_core/backends/bungie.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class BungieOAuth2(BaseOAuth2):
1111
AUTHORIZATION_URL = "https://www.bungie.net/en/oauth/authorize/"
1212
ACCESS_TOKEN_URL = "https://www.bungie.net/platform/app/oauth/token/"
1313
REFRESH_TOKEN_URL = "https://www.bungie.net/platform/app/oauth/token/"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
REDIRECT_STATE = False
1615
EXTRA_DATA = [
1716
("refresh_token", "refresh_token", True),

social_core/backends/changetip.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class ChangeTipOAuth2(BaseOAuth2):
99
name = "changetip"
1010
AUTHORIZATION_URL = "https://www.changetip.com/o/authorize/"
1111
ACCESS_TOKEN_URL = "https://www.changetip.com/o/token/"
12-
ACCESS_TOKEN_METHOD = "POST"
1312
SCOPE_SEPARATOR = " "
1413

1514
def get_user_details(self, response):

social_core/backends/chatwork.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class ChatworkOAuth2(BaseOAuth2):
1414
API_URL = "https://api.chatwork.com/v2"
1515
AUTHORIZATION_URL = "https://www.chatwork.com/packages/oauth2/login.php"
1616
ACCESS_TOKEN_URL = "https://oauth.chatwork.com/token"
17-
ACCESS_TOKEN_METHOD = "POST"
1817
REDIRECT_STATE = True
1918
DEFAULT_SCOPE = ["users.profile.me:read"]
2019
ID_KEY = "account_id"

social_core/backends/cilogon.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class CILogonOAuth2(BaseOAuth2):
1111
name = "cilogon-oauth2"
1212
AUTHORIZATION_URL = "https://cilogon.org/authorize"
1313
ACCESS_TOKEN_URL = "https://cilogon.org/oauth2/token"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
DEFAULT_SCOPE = ["openid", "email", "profile", "org.cilogon.userinfo"]
1615
REDIRECT_STATE = False
1716
SCOPE_SEPARATOR = "+"

social_core/backends/classlink.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class ClasslinkOAuth(BaseOAuth2):
1111
name = "classlink"
1212
AUTHORIZATION_URL = "https://launchpad.classlink.com/oauth2/v2/auth"
1313
ACCESS_TOKEN_URL = "https://launchpad.classlink.com/oauth2/v2/token"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
DEFAULT_SCOPE = ["profile"]
1615
REDIRECT_STATE = False
1716
SCOPE_SEPARATOR = " "

social_core/backends/clef.py

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class ClefOAuth2(BaseOAuth2):
1515
name = "clef"
1616
AUTHORIZATION_URL = "https://clef.io/iframes/qr"
1717
ACCESS_TOKEN_URL = "https://clef.io/api/v1/authorize"
18-
ACCESS_TOKEN_METHOD = "POST"
1918
SCOPE_SEPARATOR = ","
2019

2120
def auth_params(self, *args, **kwargs):

social_core/backends/clever.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class CleverOAuth2(BaseOAuth2):
1111
name = "clever"
1212
AUTHORIZATION_URL = "https://clever.com/oauth/authorize"
1313
ACCESS_TOKEN_URL = "https://clever.com/oauth/tokens"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
REDIRECT_STATE = False
1615
STATE_PARAMETER = False
1716
SCOPE_SEPARATOR = " "

social_core/backends/coding.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class CodingOAuth2(BaseOAuth2):
1414
API_URL = "https://coding.net/api/"
1515
AUTHORIZATION_URL = "https://coding.net/oauth_authorize.html"
1616
ACCESS_TOKEN_URL = "https://coding.net/api/oauth/access_token"
17-
ACCESS_TOKEN_METHOD = "POST"
1817
SCOPE_SEPARATOR = ","
1918
DEFAULT_SCOPE = ["user"]
2019
REDIRECT_STATE = False

social_core/backends/cognito.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ class CognitoOAuth2(BaseOAuth2):
55
name = "cognito"
66
ID_KEY = "username"
77
DEFAULT_SCOPE = ["openid", "profile", "email"]
8-
ACCESS_TOKEN_METHOD = "POST"
98
REDIRECT_STATE = False
109

1110
def user_pool_domain(self):

social_core/backends/coinbase.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class CoinbaseOAuth2(BaseOAuth2):
1313
AUTHORIZATION_URL = "https://www.coinbase.com/oauth/authorize"
1414
ACCESS_TOKEN_URL = "https://api.coinbase.com/oauth/token"
1515
REVOKE_TOKEN_URL = "https://api.coinbase.com/oauth/revoke"
16-
ACCESS_TOKEN_METHOD = "POST"
1716
REDIRECT_STATE = False
1817

1918
def get_user_id(self, details, response):

social_core/backends/coursera.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class CourseraOAuth2(BaseOAuth2):
1313
ID_KEY = "username"
1414
AUTHORIZATION_URL = "https://accounts.coursera.org/oauth2/v1/auth"
1515
ACCESS_TOKEN_URL = "https://accounts.coursera.org/oauth2/v1/token"
16-
ACCESS_TOKEN_METHOD = "POST"
1716
REDIRECT_STATE = False
1817
SCOPE_SEPARATOR = ","
1918
DEFAULT_SCOPE = ["view_profile"]

social_core/backends/dailymotion.py

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class DailymotionOAuth2(BaseOAuth2):
1515
AUTHORIZATION_URL = "https://api.dailymotion.com/oauth/authorize"
1616
REQUEST_TOKEN_URL = "https://api.dailymotion.com/oauth/token"
1717
ACCESS_TOKEN_URL = "https://api.dailymotion.com/oauth/token"
18-
ACCESS_TOKEN_METHOD = "POST"
1918

2019
def get_user_details(self, response):
2120
return {"username": response.get("screenname")}

social_core/backends/deezer.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class DeezerOAuth2(BaseOAuth2):
1616
ID_KEY = "name"
1717
AUTHORIZATION_URL = "https://connect.deezer.com/oauth/auth.php"
1818
ACCESS_TOKEN_URL = "https://connect.deezer.com/oauth/access_token.php"
19-
ACCESS_TOKEN_METHOD = "POST"
2019
SCOPE_SEPARATOR = ","
2120
REDIRECT_STATE = False
2221

social_core/backends/digitalocean.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class DigitalOceanOAuth(BaseOAuth2):
1111
name = "digitalocean"
1212
AUTHORIZATION_URL = "https://cloud.digitalocean.com/v1/oauth/authorize"
1313
ACCESS_TOKEN_URL = "https://cloud.digitalocean.com/v1/oauth/token"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
SCOPE_SEPARATOR = " "
1615
EXTRA_DATA = [("expires_in", "expires_in")]
1716

social_core/backends/discord.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class DiscordOAuth2(BaseOAuth2):
1111
HOSTNAME = "discord.com"
1212
AUTHORIZATION_URL = f"https://{HOSTNAME}/api/oauth2/authorize"
1313
ACCESS_TOKEN_URL = f"https://{HOSTNAME}/api/oauth2/token"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
REVOKE_TOKEN_URL = f"https://{HOSTNAME}/api/oauth2/token/revoke"
1615
REVOKE_TOKEN_METHOD = "GET"
1716
DEFAULT_SCOPE = ["identify"]

social_core/backends/disqus.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class DisqusOAuth2(BaseOAuth2):
1010
name = "disqus"
1111
AUTHORIZATION_URL = "https://disqus.com/api/oauth/2.0/authorize/"
1212
ACCESS_TOKEN_URL = "https://disqus.com/api/oauth/2.0/access_token/"
13-
ACCESS_TOKEN_METHOD = "POST"
1413
REDIRECT_STATE = False
1514
SCOPE_SEPARATOR = ","
1615
EXTRA_DATA = [

social_core/backends/docker.py

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class DockerOAuth2(BaseOAuth2):
1212
AUTHORIZATION_URL = "https://hub.docker.com/api/v1.1/o/authorize/"
1313
ACCESS_TOKEN_URL = "https://hub.docker.com/api/v1.1/o/token/"
1414
REFRESH_TOKEN_URL = "https://hub.docker.com/api/v1.1/o/token/"
15-
ACCESS_TOKEN_METHOD = "POST"
1615
REDIRECT_STATE = False
1716
EXTRA_DATA = [
1817
("refresh_token", "refresh_token", True),

social_core/backends/douban.py

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class DoubanOAuth2(BaseOAuth2):
3636
name = "douban-oauth2"
3737
AUTHORIZATION_URL = "https://www.douban.com/service/auth2/auth"
3838
ACCESS_TOKEN_URL = "https://www.douban.com/service/auth2/token"
39-
ACCESS_TOKEN_METHOD = "POST"
4039
REDIRECT_STATE = False
4140
EXTRA_DATA = [
4241
("id", "id"),

social_core/backends/dribbble.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class DribbbleOAuth2(BaseOAuth2):
1313
name = "dribbble"
1414
AUTHORIZATION_URL = "https://dribbble.com/oauth/authorize"
1515
ACCESS_TOKEN_URL = "https://dribbble.com/oauth/token"
16-
ACCESS_TOKEN_METHOD = "POST"
1716
SCOPE_SEPARATOR = ","
1817
EXTRA_DATA = [
1918
("id", "id"),

social_core/backends/drip.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class DripOAuth(BaseOAuth2):
1010
name = "drip"
1111
AUTHORIZATION_URL = "https://www.getdrip.com/oauth/authorize"
1212
ACCESS_TOKEN_URL = "https://www.getdrip.com/oauth/token"
13-
ACCESS_TOKEN_METHOD = "POST"
1413

1514
def get_user_id(self, details, response):
1615
return details["email"]

social_core/backends/dropbox.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class DropboxOAuth2V2(BaseOAuth2):
1111
ID_KEY = "uid"
1212
AUTHORIZATION_URL = "https://www.dropbox.com/oauth2/authorize"
1313
ACCESS_TOKEN_URL = "https://api.dropboxapi.com/oauth2/token"
14-
ACCESS_TOKEN_METHOD = "POST"
1514
REDIRECT_STATE = False
1615

1716
def get_user_details(self, response):

social_core/backends/echosign.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
class EchosignOAuth2(BaseOAuth2):
55
name = "echosign"
66
REDIRECT_STATE = False
7-
ACCESS_TOKEN_METHOD = "POST"
87
REFRESH_TOKEN_METHOD = "POST"
98
REVOKE_TOKEN_METHOD = "POST"
109
AUTHORIZATION_URL = "https://secure.echosign.com/public/oauth"

social_core/backends/edmodo.py

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class EdmodoOAuth2(BaseOAuth2):
1212
name = "edmodo"
1313
AUTHORIZATION_URL = "https://api.edmodo.com/oauth/authorize"
1414
ACCESS_TOKEN_URL = "https://api.edmodo.com/oauth/token"
15-
ACCESS_TOKEN_METHOD = "POST"
1615

1716
def get_user_details(self, response):
1817
"""Return user details from Edmodo account"""

social_core/backends/etsy.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class EtsyOAuth2(BaseOAuth2PKCE):
88
ACCESS_TOKEN_URL = "https://api.etsy.com/v3/public/oauth/token"
99
REFRESH_TOKEN_URL = "https://api.etsy.com/v3/public/oauth/token"
1010
PKCE_DEFAULT_CODE_CHALLENGE_METHOD = "S256"
11-
ACCESS_TOKEN_METHOD = "POST"
1211
REQUEST_TOKEN_METHOD = "POST"
1312
SCOPE_SEPARATOR = " "
1413
REDIRECT_STATE = False

social_core/backends/eventbrite.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class EventbriteOAuth2(BaseOAuth2):
88
AUTHORIZATION_URL = "https://www.eventbrite.com/oauth/authorize"
99
ACCESS_TOKEN_URL = "https://www.eventbrite.com/oauth/token"
1010
METADATA_URL = "https://www.eventbriteapi.com/v3/users/me"
11-
ACCESS_TOKEN_METHOD = "POST"
1211
STATE_PARAMETER = False
1312
REDIRECT_STATE = False
1413

social_core/backends/eveonline.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class EVEOnlineOAuth2(BaseOAuth2):
1414
AUTHORIZATION_URL = BASE_URL + "/authorize"
1515
ACCESS_TOKEN_URL = BASE_URL + "/token"
1616
ID_KEY = "CharacterID"
17-
ACCESS_TOKEN_METHOD = "POST"
1817
EXTRA_DATA = [
1918
("CharacterID", "id"),
2019
("expires_in", "expires"),

social_core/backends/fence.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Fence(OpenIdConnectAuth):
1010
name = "fence"
1111
OIDC_ENDPOINT = "https://nci-crdc.datacommons.io"
1212
ID_KEY = "username"
13-
ACCESS_TOKEN_METHOD = "POST"
1413
DEFAULT_SCOPE = ["openid", "user"]
1514
JWT_DECODE_OPTIONS = {"verify_at_hash": False}
1615

social_core/backends/fitbit.py

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class FitbitOAuth2(BaseOAuth2):
3636
name = "fitbit"
3737
AUTHORIZATION_URL = "https://www.fitbit.com/oauth2/authorize"
3838
ACCESS_TOKEN_URL = "https://api.fitbit.com/oauth2/token"
39-
ACCESS_TOKEN_METHOD = "POST"
4039
REFRESH_TOKEN_URL = "https://api.fitbit.com/oauth2/token"
4140
DEFAULT_SCOPE = ["profile"]
4241
ID_KEY = "encodedId"

social_core/backends/flat.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class FlatOAuth2(BaseOAuth2):
1313
DEFAULT_SCOPE = ["account.public_profile"]
1414
AUTHORIZATION_URL = "https://flat.io/auth/oauth"
1515
ACCESS_TOKEN_URL = "https://api.flat.io/oauth/access_token"
16-
ACCESS_TOKEN_METHOD = "POST"
1716

1817
def get_user_id(self, details, response):
1918
return response.get("id")

social_core/backends/foursquare.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class FoursquareOAuth2(BaseOAuth2):
1010
name = "foursquare"
1111
AUTHORIZATION_URL = "https://foursquare.com/oauth2/authenticate"
1212
ACCESS_TOKEN_URL = "https://foursquare.com/oauth2/access_token"
13-
ACCESS_TOKEN_METHOD = "POST"
1413
API_VERSION = "20140128"
1514

1615
def get_user_id(self, details, response):

social_core/backends/gitea.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class GiteaOAuth2(BaseOAuth2):
1313
API_URL = "https://gitea.com"
1414
AUTHORIZATION_URL = "https://gitea.com/login/oauth/authorize"
1515
ACCESS_TOKEN_URL = "https://gitea.com/login/oauth/access_token"
16-
ACCESS_TOKEN_METHOD = "POST"
1716
SCOPE_SEPARATOR = ","
1817
REDIRECT_STATE = False
1918
STATE_PARAMETER = True

social_core/backends/github.py

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class GithubOAuth2(BaseOAuth2):
1818
API_URL = "https://api.github.com/"
1919
AUTHORIZATION_URL = "https://github.com/login/oauth/authorize"
2020
ACCESS_TOKEN_URL = "https://github.com/login/oauth/access_token"
21-
ACCESS_TOKEN_METHOD = "POST"
2221
SCOPE_SEPARATOR = ","
2322
REDIRECT_STATE = False
2423
STATE_PARAMETER = True

social_core/backends/gitlab.py

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class GitLabOAuth2(BaseOAuth2):
1818
API_URL = "https://gitlab.com"
1919
AUTHORIZATION_URL = "https://gitlab.com/oauth/authorize"
2020
ACCESS_TOKEN_URL = "https://gitlab.com/oauth/token"
21-
ACCESS_TOKEN_METHOD = "POST"
2221
REDIRECT_STATE = False
2322
DEFAULT_SCOPE = ["read_user"]
2423
EXTRA_DATA = [

social_core/backends/goclio.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
class GoClioOAuth2(BaseOAuth2):
55
name = "goclio"
66
AUTHORIZATION_URL = "https://app.goclio.com/oauth/authorize/"
7-
ACCESS_TOKEN_METHOD = "POST"
87
ACCESS_TOKEN_URL = "https://app.goclio.com/oauth/token/"
98
REDIRECT_STATE = False
109
STATE_PARAMETER = False

0 commit comments

Comments
 (0)