Skip to content

A coldfusion 8 JWT component for encoding and decoding JSON Web Tokens. Works with ColdFusion 8 and above (see the branch for cfscript version)

License

Notifications You must be signed in to change notification settings

HokieTT/cfml8-jwt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A coldfusion 8 JWT component for encoding and decoding JSON Web Tokens. Works with ColdFusion 8 and above (see the branch for cfscript version)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ColdFusion 100.0%