We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e213da + 0bff639 commit c365ce3Copy full SHA for c365ce3
src/xmlsec/crypto.py
@@ -166,14 +166,11 @@ def __init__(self, keyspec):
166
super(XMLSecCryptoREST, self).__init__(source="rest", do_padding=False, private=True)
167
self._keyspec = keyspec
168
169
- def sign(self, data, raw_sign=False):
+ def sign(self, data):
170
try:
171
import requests
172
import json
173
- if raw_sign:
174
- url = '{!s}/rawsign'.format(self._keyspec)
175
- else:
176
- url = '{!s}/sign'.format(self._keyspec)
+ url = '{!s}/rawsign'.format(self._keyspec)
177
r = requests.post(url, json=dict(mech='RSAPKCS1', data=data.encode("base64")))
178
if r.status_code != requests.codes.ok:
179
r.raise_for_status()
0 commit comments