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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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/1f1ccf2a-b4b9-4494-a90a-fb9e34604d32%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.