packages feed

jose 0.8.2.0 → 0.8.2.1

raw patch · 3 files changed

+7/−7 lines, 3 filesdep ~base64-bytestringPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base64-bytestring

API changes (from Hackage documentation)

- Crypto.JOSE.Error: _AlgorithmMismatch :: AsError r_amvu => Prism' r_amvu String
+ Crypto.JOSE.Error: _AlgorithmMismatch :: AsError r_amI4 => Prism' r_amI4 String
- Crypto.JOSE.Error: _AlgorithmNotImplemented :: AsError r_amvu => Prism' r_amvu ()
+ Crypto.JOSE.Error: _AlgorithmNotImplemented :: AsError r_amI4 => Prism' r_amI4 ()
- Crypto.JOSE.Error: _CompactDecodeError :: AsError r_amvu => Prism' r_amvu CompactDecodeError
+ Crypto.JOSE.Error: _CompactDecodeError :: AsError r_amI4 => Prism' r_amI4 CompactDecodeError
- Crypto.JOSE.Error: _CryptoError :: AsError r_amvu => Prism' r_amvu CryptoError
+ Crypto.JOSE.Error: _CryptoError :: AsError r_amI4 => Prism' r_amI4 CryptoError
- Crypto.JOSE.Error: _Error :: AsError r_amvu => Prism' r_amvu Error
+ Crypto.JOSE.Error: _Error :: AsError r_amI4 => Prism' r_amI4 Error
- Crypto.JOSE.Error: _JSONDecodeError :: AsError r_amvu => Prism' r_amvu String
+ Crypto.JOSE.Error: _JSONDecodeError :: AsError r_amI4 => Prism' r_amI4 String
- Crypto.JOSE.Error: _JWSCritUnprotected :: AsError r_amvu => Prism' r_amvu ()
+ Crypto.JOSE.Error: _JWSCritUnprotected :: AsError r_amI4 => Prism' r_amI4 ()
- Crypto.JOSE.Error: _JWSInvalidSignature :: AsError r_amvu => Prism' r_amvu ()
+ Crypto.JOSE.Error: _JWSInvalidSignature :: AsError r_amI4 => Prism' r_amI4 ()
- Crypto.JOSE.Error: _JWSNoSignatures :: AsError r_amvu => Prism' r_amvu ()
+ Crypto.JOSE.Error: _JWSNoSignatures :: AsError r_amI4 => Prism' r_amI4 ()
- Crypto.JOSE.Error: _JWSNoValidSignatures :: AsError r_amvu => Prism' r_amvu ()
+ Crypto.JOSE.Error: _JWSNoValidSignatures :: AsError r_amI4 => Prism' r_amI4 ()
- Crypto.JOSE.Error: _KeyMismatch :: AsError r_amvu => Prism' r_amvu Text
+ Crypto.JOSE.Error: _KeyMismatch :: AsError r_amI4 => Prism' r_amI4 Text
- Crypto.JOSE.Error: _KeySizeTooSmall :: AsError r_amvu => Prism' r_amvu ()
+ Crypto.JOSE.Error: _KeySizeTooSmall :: AsError r_amI4 => Prism' r_amI4 ()
- Crypto.JOSE.Error: _NoUsableKeys :: AsError r_amvu => Prism' r_amvu ()
+ Crypto.JOSE.Error: _NoUsableKeys :: AsError r_amI4 => Prism' r_amI4 ()
- Crypto.JOSE.Error: _OtherPrimesNotSupported :: AsError r_amvu => Prism' r_amvu ()
+ Crypto.JOSE.Error: _OtherPrimesNotSupported :: AsError r_amI4 => Prism' r_amI4 ()
- Crypto.JOSE.Error: _RSAError :: AsError r_amvu => Prism' r_amvu Error
+ Crypto.JOSE.Error: _RSAError :: AsError r_amI4 => Prism' r_amI4 Error
- Crypto.JOSE.Error: class AsError r_amvu
+ Crypto.JOSE.Error: class AsError r_amI4
- Crypto.JWT: _JWSError :: AsJWTError r_a1erT => Prism' r_a1erT Error
+ Crypto.JWT: _JWSError :: AsJWTError r_a1eGb => Prism' r_a1eGb Error
- Crypto.JWT: _JWTClaimsSetDecodeError :: AsJWTError r_a1erT => Prism' r_a1erT String
+ Crypto.JWT: _JWTClaimsSetDecodeError :: AsJWTError r_a1eGb => Prism' r_a1eGb String
- Crypto.JWT: _JWTError :: AsJWTError r_a1erT => Prism' r_a1erT JWTError
+ Crypto.JWT: _JWTError :: AsJWTError r_a1eGb => Prism' r_a1eGb JWTError
- Crypto.JWT: _JWTExpired :: AsJWTError r_a1erT => Prism' r_a1erT ()
+ Crypto.JWT: _JWTExpired :: AsJWTError r_a1eGb => Prism' r_a1eGb ()
- Crypto.JWT: _JWTIssuedAtFuture :: AsJWTError r_a1erT => Prism' r_a1erT ()
+ Crypto.JWT: _JWTIssuedAtFuture :: AsJWTError r_a1eGb => Prism' r_a1eGb ()
- Crypto.JWT: _JWTNotInAudience :: AsJWTError r_a1erT => Prism' r_a1erT ()
+ Crypto.JWT: _JWTNotInAudience :: AsJWTError r_a1eGb => Prism' r_a1eGb ()
- Crypto.JWT: _JWTNotInIssuer :: AsJWTError r_a1erT => Prism' r_a1erT ()
+ Crypto.JWT: _JWTNotInIssuer :: AsJWTError r_a1eGb => Prism' r_a1eGb ()
- Crypto.JWT: _JWTNotYetValid :: AsJWTError r_a1erT => Prism' r_a1erT ()
+ Crypto.JWT: _JWTNotYetValid :: AsJWTError r_a1eGb => Prism' r_a1eGb ()
- Crypto.JWT: class AsJWTError r_a1erT
+ Crypto.JWT: class AsJWTError r_a1eGb
- Crypto.JWT: class HasJWTValidationSettings c_a1fcF
+ Crypto.JWT: class HasJWTValidationSettings c_a1fqX
- Crypto.JWT: jWTValidationSettings :: HasJWTValidationSettings c_a1fcF => Lens' c_a1fcF JWTValidationSettings
+ Crypto.JWT: jWTValidationSettings :: HasJWTValidationSettings c_a1fqX => Lens' c_a1fqX JWTValidationSettings
- Crypto.JWT: jwtValidationSettingsAllowedSkew :: HasJWTValidationSettings c_a1fcF => Lens' c_a1fcF NominalDiffTime
+ Crypto.JWT: jwtValidationSettingsAllowedSkew :: HasJWTValidationSettings c_a1fqX => Lens' c_a1fqX NominalDiffTime
- Crypto.JWT: jwtValidationSettingsAudiencePredicate :: HasJWTValidationSettings c_a1fcF => Lens' c_a1fcF (StringOrURI -> Bool)
+ Crypto.JWT: jwtValidationSettingsAudiencePredicate :: HasJWTValidationSettings c_a1fqX => Lens' c_a1fqX (StringOrURI -> Bool)
- Crypto.JWT: jwtValidationSettingsCheckIssuedAt :: HasJWTValidationSettings c_a1fcF => Lens' c_a1fcF Bool
+ Crypto.JWT: jwtValidationSettingsCheckIssuedAt :: HasJWTValidationSettings c_a1fqX => Lens' c_a1fqX Bool
- Crypto.JWT: jwtValidationSettingsIssuerPredicate :: HasJWTValidationSettings c_a1fcF => Lens' c_a1fcF (StringOrURI -> Bool)
+ Crypto.JWT: jwtValidationSettingsIssuerPredicate :: HasJWTValidationSettings c_a1fqX => Lens' c_a1fqX (StringOrURI -> Bool)
- Crypto.JWT: jwtValidationSettingsValidationSettings :: HasJWTValidationSettings c_a1fcF => Lens' c_a1fcF ValidationSettings
+ Crypto.JWT: jwtValidationSettingsValidationSettings :: HasJWTValidationSettings c_a1fqX => Lens' c_a1fqX ValidationSettings

Files

README.md view
@@ -47,7 +47,7 @@ so please do not open issues:  - Some JOSE tools and libraries permit the use of **short keys**, in-  violation of the RFCs.  This implementation reject JWS or JWT+  violation of the RFCs.  This implementation rejects JWS or JWT   objects minted with short keys, as required by the RFCs.  - The *Auth0* software produces objects with an [invalid `"x5t"`@@ -88,4 +88,4 @@ request.  Write a [well formed commit message]( http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). If your patch is nontrivial, update the copyright notice at the top-of the modified files+of the modified files.
jose.cabal view
@@ -1,5 +1,5 @@ name:                jose-version:             0.8.2.0+version:             0.8.2.1 synopsis:   Javascript Object Signing and Encryption and JSON Web Token library description:@@ -63,7 +63,7 @@   build-depends:     base >= 4.8 && < 5     , attoparsec-    , base64-bytestring == 1.0.*+    , base64-bytestring >= 1.0 && < 1.2     , concise >= 0.1     , containers >= 0.5     , cryptonite >= 0.7
src/Crypto/JWT.hs view
@@ -35,9 +35,9 @@ mkClaims = do   t <- 'currentTime'   pure $ 'emptyClaimsSet'-    & 'claimIss' .~ Just ("alice")-    & 'claimAud' .~ Just ('Audience' ["bob"])-    & 'claimIat' .~ Just ('NumericDate' t)+    & 'claimIss' ?~ "alice"+    & 'claimAud' ?~ 'Audience' ["bob"]+    & 'claimIat' ?~ 'NumericDate' t  doJwtSign :: 'JWK' -> 'ClaimsSet' -> IO (Either 'JWTError' 'SignedJWT') doJwtSign jwk claims = runExceptT $ do