Thursday, 29 August 2013

PHP JWT compatible with Draft 11 of JSON Web Tokens

PHP JWT compatible with Draft 11 of JSON Web Tokens

My PHP application is recieving JSON Web Tokens as per the 11th Draft for
JWT. I was wondering if there was a PHP Class or Library capable of
decoding JWTs signed (JWS) and encrypted (JWE)? I can only find one for
Draft 6 which doesn't have the recent changes to encryption (from
A128CBC+HS256 to A128CBC-HS256).
http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-11 - see this
for details.
The issue im currently facing is the PHP JWT library im currently using
warns of too many segments when attempting to decrypt the tokens im
recieving. It's expecting 3 segments, but I receive 5.
Any help with this would be appreciated hugely!

No comments:

Post a Comment