MCPcopy
hub / github.com/authlib/authlib / sign

Method sign

authlib/jose/rfc7515/models.py:16–23  ·  view source on GitHub ↗

Sign the text msg with a private/sign key. :param msg: message bytes to be signed :param key: private key to sign the message :return: bytes

(self, msg, key)

Source from the content-addressed store, hash-verified

14 raise NotImplementedError()
15
16 def sign(self, msg, key):
17 """Sign the text msg with a private/sign key.
18
19 :param msg: message bytes to be signed
20 :param key: private key to sign the message
21 :return: bytes
22 """
23 raise NotImplementedError
24
25 def verify(self, msg, sig, key):
26 """Verify the signature of text msg with a public/verify key.

Callers 10

serialize_compactMethod · 0.45
_signMethod · 0.45
sign_and_decodeFunction · 0.45
sign_and_decodeFunction · 0.45
test_invalid_assertionFunction · 0.45
test_authorize_tokenFunction · 0.45
test_unauthorized_clientFunction · 0.45
test_token_generatorFunction · 0.45
test_invalid_audienceFunction · 0.45

Calls

no outgoing calls

Tested by 8

sign_and_decodeFunction · 0.36
sign_and_decodeFunction · 0.36
test_invalid_assertionFunction · 0.36
test_authorize_tokenFunction · 0.36
test_unauthorized_clientFunction · 0.36
test_token_generatorFunction · 0.36
test_invalid_audienceFunction · 0.36