pimeys / rust-web-push

A Web Push library for Rust
Apache License 2.0
113 stars 21 forks source link

Add aesgcm support back, and fix some firefox bugs #44

Closed andyblarblar closed 1 year ago

andyblarblar commented 1 year ago

This PR adds back support for the legacy aesgcm encoding that was removed back in v0.8.0. This is done primarily because (unfortunatly), some push implimentations like KaiOS still require aesgcm. It is also quite usefull for testing new push services (such as Apple's) which don't clarify which encoding they support. Unlike the v0.7 version of aesgcm, this implimentation defers to Mozilla's ECE crate, so there is very minimal maintinence overhead for us. All documentation and examples still use aes128gcm, and notes have been added warning users to use it wherever possible.

Changelog 🗒

[+] Add AesGcm enocding [+] Add filler sub claim to all tokens, unless the claim is added manually [+] Add tests for aesgcm [+] Update documentation to make examples more promenent [+] Bump to 0.9.5

Bug Fixes 🐜