Skip to content

Commit 0e999c3

Browse files
Switch from SHA1 to SHA2 (#1049)
Co-authored-by: tuxmaster <[email protected]>
1 parent 0725be1 commit 0e999c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atlassian/rest_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from json import dumps
44

55
import requests
6-
from oauthlib.oauth1 import SIGNATURE_RSA
6+
from oauthlib.oauth1 import SIGNATURE_RSA_SHA512
77
from requests import HTTPError
88
from requests_oauthlib import OAuth1, OAuth2
99
from six.moves.urllib.parse import urlencode
@@ -103,7 +103,7 @@ def _create_oauth_session(self, oauth_dict):
103103
oauth = OAuth1(
104104
oauth_dict["consumer_key"],
105105
rsa_key=oauth_dict["key_cert"],
106-
signature_method=SIGNATURE_RSA,
106+
signature_method=SIGNATURE_RSA_SHA512,
107107
resource_owner_key=oauth_dict["access_token"],
108108
resource_owner_secret=oauth_dict["access_token_secret"],
109109
)

0 commit comments

Comments
 (0)