how to use x5t to validate a token

Issue #83 wontfix
Former user created an issue

Hi, i am getting below JOSE header. i also have the certificate (public key) which i would use to verify the signature. but i am clueless as to how i connect everything together. how x5t and how kid will help me to load the correct certificate and how i will validate a token. please help me with an example code.

{"typ":"JWT","alg":"RS256","x5t":"F_68wGhADOBn-A6pv3453xMeAwk","kid":"F_68wGhADOBn-A6pv3453xMeAwk"}

Comments (4)

  1. Deepak

    Thanks Brian. that worked. thanks again.

    further to this, i want to assert few custom claims. how can i add my custom claims in the JWSConsumer to assert? please help !!

  2. Brian Campbell repo owner

    closing out this one (mark as wontfix actually) as I've answered the questions as best I could and there hasn't been any more activity on it

  3. Log in to comment