bennadel / JSONWebTokens.cfc

Thi is a ColdFusion gateway to help encode and decode JSON web tokens.
Other
59 stars 26 forks source link

Fixed code to function in Win10 and lucee-4.5.1.022-express. #1

Closed rayvarner closed 9 years ago

rayvarner commented 9 years ago

Using Win10 and lucee-4.5.1.022-express: Received Java error message "Illegal character in opaque part" due to backslashes in string passed to java.net.URI. Fixed with replace(). Received Lucee error message indicating "Client scope not available". Fixed by renaming variable to "oClient".

bennadel commented 9 years ago

It's funny, when I was writing this, I thought to myself, "I can't believe this doesn't conflict with the client scope" :D I actually did run into one case where it was - when it was a private Variables-scoped client, I couldn't use it. But, for some reason, it worked when client was var scoped.

I should have just trusted my gut and NOT used it.

bennadel commented 9 years ago

@rayvarner I had to change some of your PR since you were actually a commit behind. In that missing commit, I added RSA support which required me to change around some of the method signatures so that all keys come at the end of the methods (since Hmac and RSA have a different number of keys). But, it's merged and pushed, thanks!