JOSE protocol implementation in Python using cryptography