Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 2.61 KB

CHANGELOG.md

File metadata and controls

68 lines (41 loc) · 2.61 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Added

Added a new crate, torii-storage-seaorm, which is a storage backend for the torii authentication ecosystem that uses SeaORM to target SQLite, Postgres, and MySQL.

Changed

torii-core

  • SessionStorage::get_session now returns a Result<Option<Session>, Error> instead of Result<Session, Error>. This reverts the change from 0.2.3.

torii

  • Login methods now accept an optional user agent and ip address parameter which will be stored with the session in the database.

[0.2.3] - 2025-03-05

Added

torii-auth-magic-link

A new plugin for generating and verifying magic links has been added.

Changed

torii-core

  • SessionStorage::get_session now returns a Result<Session, Error> instead of Result<Option<Session>, Error>. Users should check the error for details on if the session was found, or expired.
  • Session creation, deletion, and cleanup are now handled by the SessionManager trait and the DefaultSessionManager implementation.
  • Plugins no longer require a SessionStorage parameter, the top level Torii struct now holds a SessionManager instance and login methods continue to return a Session instance.

Removed

torii-core

  • Storage<U,S> struct has been removed. Use Arc<U> and Arc<S> directly instead.
  • AsRef<UserId> and AsRef<SessionId> have been removed. Use as_str() instead when needing a database serializable string.

[0.2.0] - 2025-02-27

Added

This is the first release of the torii authentication ecosystem, it includes the following crates:

  • torii-core: Core functionality for the torii authentication ecosystem.
  • torii-auth-password: Password authentication plugin for the torii authentication ecosystem.
  • torii-auth-oauth: OAuth authentication plugin for the torii authentication ecosystem.
  • torii-auth-passkey: Passkey authentication plugin for the torii authentication ecosystem.
  • torii-storage-sqlite: SQLite storage backend for the torii authentication ecosystem.
  • torii-storage-postgres: Postgres storage backend for the torii authentication ecosystem.
  • torii: Main crate for the torii authentication ecosystem.

Users should use the torii crate with feature flags to enable the authentication plugins and storage backends they need.

[dependencies]
torii = { version = "0.2.0", features = ["password", "sqlite"] }