Hi all,
I am stuck while salesforce jwt-bearer auth.
I need help in this code section:
String key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
Blob privateKey = EncodingUtil.base64Decode(key);
String signature = System.encodingUtil.base64Encode(
Crypto.sign('RSA-SHA256', Blob.valueOf(jwtRequest),
privateKey)).replace('+', '-').replace('/', '_');
I have tried python code but this is not working
import hmac,hashlib
from base64 import b64encode, b64decode
res = hmac.new(input_key,message, digestmod=hashlib.sha256).hexdigest()
Please help
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/51f39a5a-de7d-4cfd-a14c-f8424b08fa0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.