Clayton Davis
Member since Mar 28, 2016
- Profile: /members/13124-clayton-davis.htm
- URL: https://www.agonswim.com
- Comments: 5
Recent Blog Comments By Clayton Davis
-
JSONWebTokens.cfc - A Small ColdFusion Module For JSON Web Tokens
Posted on Sep 8, 2016 at 4:32 PM
No, I did not modify the library. See here http://pastebin.com/t1WAHtkp for my test code.... read more »
-
JSONWebTokens.cfc - A Small ColdFusion Module For JSON Web Tokens
Posted on Sep 8, 2016 at 3:58 PM
@Larry, I was able to decode your JWT with your secret. If I had to guess it might be that you need to strip off the "Bearer " prefix from the Authorization header.... read more »
-
JSONWebTokens.cfc - A Small ColdFusion Module For JSON Web Tokens
Posted on Sep 8, 2016 at 3:21 PM
Larry, I am verifying and decoding Auth0 JWTs with this library. The key here is just the base64 encoded key from Auth0. This is my verification code: var jwtClient = new JsonWebTokens().createClient("HS256", appSecrets.auth0Secret); var jwtDecoded = jwtClient.decode(jwt); Are you by c... read more »
-
JSONWebTokens.cfc - A Small ColdFusion Module For JSON Web Tokens
Posted on Mar 28, 2016 at 8:50 PM
I'm gonna swing and guess the client_x509_cert_url will have what you need. From there you should get the cert with public key; I'd be surprised if it didn't have the public key. Typically, the SDK or middleware will just point to this json file and configure itself to validate your tokens, but Be... read more »
-
JSONWebTokens.cfc - A Small ColdFusion Module For JSON Web Tokens
Posted on Mar 28, 2016 at 8:27 PM
@Richard, The struct ought to just be the claim set; the header will take care of itself based on the params you passed to the constructor. So something like: { "iss": " https://xxx.auth0.com/ ", "sub": "auth0|56ea1afe1b3e39f15a8ee52e", "aud"... read more »