Skip to content

Commit c365ce3

Browse files
authored
Merge pull request #33 from fredrikt/ft-pysaml2-fixes
sign: remove raw_sign argument again
2 parents 8e213da + 0bff639 commit c365ce3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/xmlsec/crypto.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,11 @@ def __init__(self, keyspec):
166166
super(XMLSecCryptoREST, self).__init__(source="rest", do_padding=False, private=True)
167167
self._keyspec = keyspec
168168

169-
def sign(self, data, raw_sign=False):
169+
def sign(self, data):
170170
try:
171171
import requests
172172
import json
173-
if raw_sign:
174-
url = '{!s}/rawsign'.format(self._keyspec)
175-
else:
176-
url = '{!s}/sign'.format(self._keyspec)
173+
url = '{!s}/rawsign'.format(self._keyspec)
177174
r = requests.post(url, json=dict(mech='RSAPKCS1', data=data.encode("base64")))
178175
if r.status_code != requests.codes.ok:
179176
r.raise_for_status()

0 commit comments

Comments
 (0)