JWT verification using hs-jose and hs-jwt

Following up from a previous blog post, here is how to verify a JWT blob in the context of a Yesod site, using Fraser Tweedale’s hs-jwt package:

http://gist-it.appspot.com/github/carlohamalainen/rapid-connect-yesod-demo/blob/jose-and-hs-jwt/Handler/AuthJwt.hs?slice=84:139

Here’s the branch of my rapid connect demo that uses hs-jwt: https://github.com/carlohamalainen/rapid-connect-yesod-demo/tree/jose-and-hs-jwt.

Leave a Reply