tekul / jose-jwt

Haskell implementation of JOSE/JWT standards
BSD 3-Clause "New" or "Revised" License
35 stars 22 forks source link

add a polymorphic function to decode JWTs #22

Closed yogsototh closed 6 years ago

yogsototh commented 6 years ago

Close #21

Mainly I would like to use OIDC and be able to retrieve some OIDC standard claims as well as potentially even non standard claims.

The build failed for an unknown reason after I've force pushed. I don't think the change made should have broken the build.

tekul commented 6 years ago

Thanks for the submission. Looks like a good idea.

tekul commented 6 years ago

It'd be nice at some point to try to integrate content decoding with the main decoding functions. In the meantime though, I might just replace the existing decodeClaims function with the one you've written and bump the version number. I'm a bit concerned that people who don't read comments might just assume that a function called decodeJwt is all they need to use.

tekul commented 6 years ago

Added in e75b5bfacd079 and included in version 0.8.0.