brycx / pasetors

PASETOrs: PASETO tokens in pure Rust
MIT License
87 stars 9 forks source link

Add `UntrustedToken` and `TrustedToken` #51

Closed brycx closed 2 years ago

brycx commented 2 years ago

See #47

This adds an UntrustedToken type which can be used to parse things like the footer, from an unverified token, in order to verify it. It also adds TrustedToken. Both types are part of both low-level and high-level APIs now. The latter let's you easily access individual parts of authenticated and validated tokens with claims.

@Eh2406 if you have a minute, could you check the API of UntrustedToken and see if this fulfills your requirements?

Remaining things: