Story Details

  • Show HN: Torii – a framework agnostic authentication library for Rust

    Posted: 2025-02-28 23:16:16

    Torii is a new, framework-agnostic authentication library for Rust designed for flexibility and ease of use. It provides a simple, consistent API for various authentication methods, including password-based logins, OAuth 2.0 providers (like Google and GitHub), and email verification. Torii aims to handle the complex details of these processes, leaving developers to focus on their application logic. It achieves this by offering building blocks for sessions, user management, and authentication flows, allowing customization to fit different project needs and avoid vendor lock-in.

    Summary of Comments ( 21 )
    https://news.ycombinator.com/item?id=43213090

    Hacker News users discussed Torii's potential, praising its framework-agnostic nature and clean API. Some expressed interest in its suitability for desktop applications and WASM environments. One commenter questioned the focus on providers over protocols like OAuth 2.0, suggesting a protocol-based approach would be more flexible. Others questioned the need for another authentication library given the existing ecosystem in Rust. Concerns were also raised about the maturity of the library and the potential maintenance burden of supporting various providers. The overall sentiment leaned towards cautious optimism, acknowledging the project's promise while awaiting further development and community feedback.