actix-identity 0.5.0 is out - an almost complete rewrite 🚀

56 points LukeMathWalker

actix-identity is one of the supporting crate for the actix-web framework. It provides identity management: a convenient extractor (Identity) to check if a user has been authenticated and persist this information across requests.

actix-identity 0.5.0 is an almost complete rewrite of the crate (massive changeset here).

actix-identity is now designed as an additional layer on top of actix-session v0.7, focused on identity management.The identity information is stored in the session state, which is managed by actix-session and can be stored using any of the supported SessionStore implementations (e.g. cookies or Redis). This reduces the surface area in actix-identity (e.g., it is no longer concerned with cookies!) and provides a smooth upgrade path for users: if you need to work with sessions, you no longer need to choose between actix-session and actix-identity; they work together now!

actix-identity v0.5 has feature-parity with actix-identity v0.4; if you bump into any blocker when upgrading, please open an issue.

Last but not least, we expanded the documentation and added more examples.

Enjoy!