def topic(self, topic): """ Verify the token """ clock_load(orig_datetime.utcfromtimestamp(0)) r = jwt.verify_jwt(topic, 'secret', ['HS256'], ignore_not_implemented=True) clock_reset() return r
def topic(self, topic): """ Verify the token without requiring all claims """ adjust = orig_datetime.utcnow() - orig_datetime.utcfromtimestamp(0) clock_tick(-adjust) return jwt.verify_jwt(topic, None, iat_skew=adjust, checks_optional=True)
def topic(self, topic): """ Verify the token """ clock_load(orig_datetime.utcfromtimestamp(0)) r = jwt.verify_jwt(topic, JWK(kty='oct', k=base64url_encode('secret')), ['HS256']) clock_reset() return r
def topic(self, topic): """ Verify the token """ clock_load(orig_datetime.utcfromtimestamp(0)) r = jwt.verify_jwt(topic, 'secret', ['HS256']) clock_reset() return r