Skip to content

Commit 7534087

Browse files
authored
Add the possiblity to change the signature method (#1160)
* Add the possiblity to change the signature method RSA_SHA512 was hardcoded in the REST Client for OAuth1. It is now possible to change the 'Signature Method' in the 'oauth_dict' with the key 'signature_method' to another signature. The default value is kept as 'SIGNATURE_RSA' if no value for the mentioned key is provided. * Add the possiblity to change the signature method RSA_SHA512 was hardcoded in the REST Client for OAuth1. It is now possible to change the 'Signature Method' in the 'oauth_dict' with the key 'signature_method' to another signature. The default value is kept as 'SIGNATURE_RSA' if no value for the mentioned key is provided.
1 parent 1697384 commit 7534087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/rest_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _create_oauth_session(self, oauth_dict):
110110
oauth = OAuth1(
111111
oauth_dict["consumer_key"],
112112
rsa_key=oauth_dict["key_cert"],
113-
signature_method=SIGNATURE_RSA,
113+
signature_method=oauth_dict.get("signature_method", SIGNATURE_RSA),
114114
resource_owner_key=oauth_dict["access_token"],
115115
resource_owner_secret=oauth_dict["access_token_secret"],
116116
)

0 commit comments

Comments
 (0)