Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.17 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.17 KB

cfml8-jwt

JWT Coldfusion 8 component, loosly based on PHP version @ https://github.com/firebase/php-jwt

Description:        This component exposes a encode and decode function which let you decode a JSON Web Token or create one
                    The component is specially written for Coldfusion 8 because of the platform I had to work on.
                    It will also work on newer coldfusions (havent tested it yet), whereas CFML 10 finally added the HMac() function which would make
                    the CFHashMac redudant.

                    If you rewrite this component, please Fork it.

Author:             Mattijs Spierings
Date:               12/5/2014
License:            GPL V2

Reference on JWT:   http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html

To do:
    add encryption options of header and payload to create JWE

NOTE:
    If you are using another version than Coldfusion 8, please check my comments at the function getCurrentUtcTime concerning proper epoch time.
    I haven't been able to test this on other versions than CFML 8


See example.cfm file for encoding and decoding