Releases: lawliet89/biscuit
v0.7.0
What's Changed
- Add Support for P-256 by @Wicpar in #310
- Fix a few typos by @striezel in #311
- Replace unmaintained actions-rs/* actions in CI workflow by @striezel in #312
- Update ring version to 0.17.5 by @olger in #313
New Contributors
- @Wicpar made their first contribution in #310
- @striezel made their first contribution in #311
- @olger made their first contribution in #313
Full Changelog: v0.6.0...v0.7.0
v0.6.0
0.6.0
Breaking Changes
- Fix build errors and bump MSRV by @lawliet89 in #308
jws::RegisteredHeader
fieldweb_key
is now of typeOption<jwk::JWK<Empty>>
instead ofOption<String>
. If you were not using JWKs,
continue setting the value toNone
will not breaking. If you were previously serializing your
JWK as JSON strings, you will now have to deserialize them intojwk::JWK<Empty>
. Please raise
issues if you encounter any bugs. [#189]
Enhancements
- Add support for Flattened JWS [#190]
- Added more documentation for using OpenSSL to manipulate keys [#179]
- Derive Clone for
JWKSet
by @lawliet89 in #204 - Lints fixes
New Contributors
- @anlumo made their first contribution in #179
- @dependabot made their first contribution in #215
- @akhramov made their first contribution in #293
Full Changelog: v0.5.0...v0.6.0
v0.6.0-beta1
0.6.0-beta1 (2021-02-24)
Breaking Changes
jws::RegisteredHeader
fieldweb_key
is now of typeOption<jwk::JWK<Empty>>
instead ofOption<String>
. If you were not using JWKs,
continue setting the value toNone
will not breaking. If you were previously serializing your
JWK as JSON strings, you will now have to deserialize them intojwk::JWK<Empty>
. Please raise
issues if you encounter any bugs. [#189]
Enhancements
v0.5.0 2020-11-17
The only changes since v0.5.0-beta2
are dependencies upgrades and setting a higher MSRV.
0.5.0 (2020-11-17)
These are changes since v0.4.2
.
Breaking Changes
-
MSRV is now Rust 1.41 due to changes in
Cargo.lock
format.
See announcement. -
The
jwk::AlgorithmParameters::OctetKey
enum variant is now a newtype variant which takes a
jwk::OctetKeyParameters
struct for its parameters. To migrate your existing code, you can do
the following-jwk::AlgorithmParameters::OctetKey { +jwk::AlgorithmParameters::OctetKey(jwk::OctetKeyParameters { value: key, key_type: Default::default(), -} +})
(#125)
-
jws::Compact::decode_with_jwks
now supports JWK without analg
specified. However, a new
parameter to specify an expected parameter had to be added to support this use case. This is to
mitigate against issues like
this.
Existing usage of JWK with thealg
specified can simply add aNone
as the second parameter.
(#130) -
Remove
StringOrUri
because it was hard to get theUri
type working properly. Replace all usage
ofStringOrUri
withString
s instead. (#131)
Enhancements
- Add new
jwk::AlgorithmParameters::OctetKeyPair
variant to support (de)serializingOKP
key types. (#125) - Add support for JWK thumbprints (RFC 7638) (#156)
- Allow verifying tokens with a
keypair
asSecret
(#132)
Bug Fixes
- Fix computing Aad per the RFC by doing base64 encoding
(#147)
0.5.0-beta2 (2020-07-22)
0.5.0-beta2 (2020-07-22)
The changes below are since 0.5.0-beta1
Breaking Changes
- Remove
StringOrUri
because it was hard to get theUri
type working properly. Replace all usage
ofStringOrUri
withString
s instead. (#131)
Enhancements
- Add support for JWK thumbprints (RFC 7638) (#156)
- Allow verifying tokens with a
keypair
asSecret
(#132)
Bug Fixes
- Fix computing Aad per the RFC by doing base64 encoding
(#147)
0.5.0-beta1 (2020-04-29)
0.5.0-beta1 (2020-04-29)
Breaking Changes
-
The
jwk::AlgorithmParameters::OctetKey
enum variant is now a newtype variant which takes a
jwk::OctetKeyParameters
struct for its parameters. To migrate your existing code, you can do
the following-jwk::AlgorithmParameters::OctetKey { +jwk::AlgorithmParameters::OctetKey(jwk::OctetKeyParameters { value: key, key_type: Default::default(), -} +})
(#125)
-
jws::Compact::decode_with_jwks
now supports JWK without analg
specified. However, a new
parameter to specify an expected parameter had to be added to support this use case. This is to
mitigate against issues like
this.
Existing usage of JWK with thealg
specified can simply add aNone
as the second parameter.
(#130)
Enhancements
- Add new
jwk::AlgorithmParameters::OctetKeyPair
variant to support (de)serializingOKP
key types. (#125)
v0.4.2 (2020-01-07)
v0.4.1
v0.4.0
0.4.0 (2019-11-06)
There are no new feature except for some breaking changes to correct some errors.
Breaking Changes
Octet
Misspelling
All misspelling of octect
have been corrected to octet
. The following
types have been renamed and the old misspelt version is no longer available.
To migrate, you can simply do a case sensitive replace of Octect
with Octet
and
octect
with octet
in your code.
The following types have been renamed:
jwk::KeyType::Octect
🡒jwk::KeyType::Octet
jwk::KeyType::OctectKeyPair
🡒jwk::KeyType::OctetKeyPair
jwk::OctectKeyType
🡒jwk::OctetKeyType
jwk::OctectKeyType::Octect
🡒jwk::OctetKeyType::Octet
jwk::AlgorithmParameters::OctectKey
🡒jwk::AlgorithmParameters::OctetKey
The following functions have been renamed:
jwk::JWK::new_octect_key
🡒jwk::JWK::new_octet_key
jwk::JWK::octect_key
🡒jwk::JWK::octet_key
jwk::AlgorithmParameters::octect_key
🡒jwk::AlgorithmParameters::octet_key
Clippy trivially_copy_pass_by_ref
lint
This release also fixes the
Clippy trivially_copy_pass_by_ref
lint
by modifying function arguments that would have taken a reference of a 1 byte value that
implements Copy
to take the value of itself. This mainly affects all struct methods
of the following types
There should be no need to modify your code for this because the types are Copy
.
jwa::SignatureAlgorithm
jwa::KeyManagementAlgorithm
jwa::ContentEncryptionAlgorithm
jwk::KeyType
v0.3.1
0.3.1 (2019-07-30)
There are no new features except for ring dependency changes.
- biscuit now depends on ring 0.16.5
- Changed internal usage of ring's AEAD APIs
- Removed
Compact::to_string
.Compact
now implementsDisplay
which has a blanket
implementation ofstd::string::ToString
. Use that instead. This should not break any
users becausestd::string::ToString
is used by thestd
prelude.