thehardwarestore.ai

where AI agents shop for the right tools

── 99260 repos indexed ── | filtered by tag: authentication
django/django ★ 91241 35936 APPLICATION

Django is a high-level Python web framework that provides a full-stack architecture for building web applications. It follows the Model-Template-View (MTV) pattern, with the ORM (Object-Relational Mapper) handling database interactions, the template engine for dynamic HTML generation, and URL dispatcher for request routing. The framework includes built-in components for authentication, admin interface, form handling, session management, caching, and more. In production, Django applications are typically served via WSGI or ASGI, with the request flowing through middleware layers, URL resolution, view functions, and ORM queries to produce responses. The framework's management commands (django-admin/manage.py) serve as the primary entry point for development tasks like running the server, creating migrations, and interacting with the database. Django relies on external database backends (PostgreSQL, MySQL, SQLite, Oracle) and optionally on GIS libraries (GDAL, GEOS) for spatial data support. It also integrates with caching backends (Memcached, Redis), email backends, and template engines (Django Template Language, Jinja2). The framework is designed to be extensible through middleware, context processors, template tags, and custom backends.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
jeremyevans/rodauth ★ 1933 111 APPLICATION

Rodauth is a Ruby authentication framework designed as a Roda plugin, but also usable as middleware or a standalone library. It provides a comprehensive, modular authentication system covering login, logout, account creation, password management, multi-factor authentication (TOTP, WebAuthn, SMS, recovery codes), JWT/JSON API support, session management, and many security features like lockout, password complexity, and audit logging. The architecture is built around a declarative feature DSL where each feature is a self-contained module that can be enabled via `plugin :rodauth` and configured with hundreds of overridable methods. The core library defines a `Rodauth::Auth` class instantiated per request, with metaprogramming for hooks, routes, and value methods. The codebase is exceptionally well-crafted, with a clean separation of concerns, extensive use of inheritance and composition, and a strong emphasis on security (HMAC tokens, timing-safe comparisons, database functions for password hashing). It is actively maintained by the author Jeremy Evans with a long history of releases and security fixes.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 2 reusable components found
psf/requests ★ 54347 11117 APPLICATION

Requests is a widely-used Python HTTP library that provides a simple, elegant API for making HTTP/1.1 requests. It abstracts away the complexities of urllib3, offering features like session persistence, cookie handling, automatic content decoding, SSL/TLS verification, and various authentication mechanisms (Basic, Digest, OAuth via extensions). The library is designed as a set of loosely coupled modules: the public API (api.py) delegates to a Session object (sessions.py) which manages connection pooling and request defaults; the HTTPAdapter (adapters.py) bridges to urllib3; and models.py defines Request, PreparedRequest, and Response objects. The codebase is well-structured, extensively tested, and follows a feature-freeze policy, focusing on stability and compatibility rather than new features. It is not an application or data research project; it is a pure library distributed via PyPI.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
dotnet/aspnetcore ★ 38464 12948 APPLICATION

This is the official ASP.NET Core framework repository, a cross-platform, high-performance framework for building modern cloud-based internet-connected applications. It is a massive monorepo containing the source code for MVC, Razor Pages, Blazor (including server-side, WebAssembly, and AI components), SignalR, gRPC, authentication/authorization, data protection, caching, hosting, and multiple server implementations (Kestrel, IIS, HttpSys). The architecture is modular, with many NuGet packages that can be used independently. Key entry points include WebApplication.CreateBuilder, UseStartup, MapControllers, MapBlazorHub, and MapHub. The framework relies on the .NET runtime and the ASP.NET Core shared framework, with optional dependencies on Redis, SQL Server, and other services. The codebase is actively maintained by Microsoft with extensive testing, performance benchmarks, and CI/CD pipelines. It demonstrates high craftsmanship in areas such as object pooling, custom synchronization contexts, form mapping with collection adapters, and rich text AST for AI chat. While there are some deprecated APIs and internal duplication, the overall architecture is well-structured and professionally engineered.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
bcrypt-ruby/bcrypt-ruby ★ 1992 291 APPLICATION

This repository is the bcrypt-ruby gem, a Ruby library implementing OpenBSD's bcrypt() password hashing algorithm. It provides a secure, computationally expensive hash for storing user passwords. The gem includes a native C extension (MRI) and a pure Java implementation (JRuby), wrapping the well-known crypt_blowfish public domain code by Solar Designer. The Ruby API is clean and minimal, exposing BCrypt::Password for creating and verifying hashes, and BCrypt::Engine for lower-level salt generation and cost calibration. The library is heavily tested, interoperable with other bcrypt implementations, and includes constant-time comparison to prevent timing attacks. It is a mature, widely-used security library with active maintenance.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
pocketbase/pocketbase ★ 61276 3724 APPLICATION

PocketBase is an open-source backend-as-a-service (BaaS) platform written in Go. It provides a complete backend solution including a REST API, embedded SQLite database, authentication (password, OAuth2, OTP, MFA), file storage (local or S3), real-time subscriptions via SSE, cron jobs, email sending, and an admin dashboard UI. The architecture is a monolithic Go application with a plugin system (JavaScript VM, automigration, self-update) and a custom reactive JavaScript frontend for the admin panel. Key entry points are the CLI commands (`serve`, `superuser`) and the Go library package for embedding. The codebase is well-structured with clean separation of concerns: `core/` contains models and business logic, `apis/` handles HTTP endpoints, `tools/` provides reusable utilities (hook system, router, auth providers, search/filter, security, filesystem abstraction), and `ui/` is the frontend. It is production-ready with extensive test coverage and active maintenance.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 5 reusable components found
dropwizard/dropwizard ★ 8584 3401 APPLICATION

Dropwizard is a mature, production-ready Java framework for building RESTful web services and microservices. It bundles mature libraries (Jetty, Jersey, Jackson, Hibernate, JDBI, Liquibase, Logback, Metrics) into a cohesive, configuration-driven platform. The architecture is modular with over 20 Maven modules, allowing selective dependency inclusion. The core lifecycle revolves around `Application`, `Bootstrap`, and `Environment` classes, which wire together server, logging, health checks, metrics, authentication, and database access. The framework emphasizes operational readiness with built-in health checks (with state-machine-based thresholds), structured logging (JSON, access logs), metrics reporting, and SSL/TLS/h2/h2c support. The codebase demonstrates high craftsmanship: abstract factory patterns for pluggable components (discoverable via Jackson subtype resolution), clean exception mappers for consistent error handling, caching authentication decorators, and sophisticated asset serving with ETags and range requests. Extensive test coverage (unit, integration, E2E) and a comprehensive JUnit5 extension suite (`DropwizardExtensionsSupport`, `DropwizardAppExtension`) enable downstream testing. The project is actively maintained with frequent releases, dependency updates via Renovate, and CI/CD pipelines (GitHub Actions, CircleCI). Technical drift is low; the codebase has migrated to Jakarta EE and uses modern Java 17+ features (records, virtual threads).

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
heartcombo/devise ★ 24354 5467 APPLICATION

Devise is a flexible authentication solution for Ruby on Rails applications built on Warden. It provides a complete modular system for user authentication featuring database authentication, confirmable, recoverable, lockable, rememberable, trackable, and OmniAuth modules. The engine follows Rails conventions and provides controllers, views, mailers, and routing helpers that can be customized via initializers. The architecture centers around Devise::Mapping which connects user models to available modules. Each authentication concern is implemented as an independent mixin module (e.g., Devise::Models::DatabaseAuthenticatable) that integrates with Warden strategies. Controllers use Devise::Controllers::Helpers for methods like authenticate_user! and current_user. The parameter sanitizer handles strong parameters integration, while the token generator creates URL-safe tokens for confirmation/reset/unlock flows. Key strengths include the modular design allowing pick-and-choose functionality, comprehensive test coverage across ORMs and Rails versions, and secure defaults. The generator system creates installation files, controllers, and views. Hooks enable cross-cutting concerns like rememberable and timeoutable to integrate with Warden's lifecycle events. Despite configuration complexity, the codebase maintains high quality with clear separation of concerns and active maintenance tracking Rails evolution.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 2 reusable components found
auth0/auth0-spa-js ★ 1010 431 APPLICATION

The auth0-spa-js repository is a JavaScript/TypeScript SDK for authenticating Single Page Applications (SPAs) with Auth0. It implements the Authorization Code Flow with PKCE, providing methods for user login (redirect and popup), silent token acquisition, token refresh, logout, and user information retrieval. The SDK includes advanced features such as Multi-Factor Authentication (MFA), passkey/WebAuthn support, DPoP (Demonstrating Proof of Possession) for token security, Multi-Resource Refresh Tokens (MRRT), and custom token exchange per RFC 8693. Architecture-wise, it is modular with separate concerns: core authentication (Auth0Client), caching (memory and localStorage), storage (cookies and session storage), Web Worker for token operations, and specialized modules for MFA, passkeys, and account management. Key entry points include the `createAuth0Client` factory function and the `Auth0Client` class. The library relies on @auth0/auth0-auth-js for low-level Auth0 interactions and browser-tabs-lock for cross-tab synchronization.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 3 reusable components found
dani-garcia/vaultwarden ★ 68192 3253 APPLICATION

Vaultwarden is a self-hosted, open-source password manager server that provides a full Bitwarden-compatible API. Written in Rust using the Rocket web framework, it implements the entire Bitwarden client API for vault management, organizations, SSO/OIDC authentication, two-factor authentication (TOTP, WebAuthn, Duo, YubiKey, email), secure file storage, send functionality, emergency access, event logging, and push notifications. The architecture is a monolithic web service backed by Diesel ORM supporting SQLite, MySQL, PostgreSQL, and CockroachDB. File attachments are stored via an OpenDAL abstraction (local filesystem or S3). The server is deployed as a single binary or Docker container, serving its own web vault UI and an admin panel. External dependencies include the Bitwarden push relay service for mobile notifications and the upstream Bitwarden protocol for client compatibility. The codebase is well-structured with clear separation of concerns, extensive migrations, and a comprehensive Playwright test suite. It is actively maintained and widely adopted with over 68k stars.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
router-for-me/CLIProxyAPI ★ 54342 8259 APPLICATION

CLIProxyAPI is a sophisticated Go-based proxy/gateway service that acts as an intermediary between clients and multiple AI service providers (OpenAI, Claude, Gemini, Codex, xAI/Grok, etc.). It handles authentication, request/response translation, routing, and management of AI API interactions. The system features a modular architecture with distinct layers for server handling, authentication, execution, translation, plugins, and configuration. It provides both REST and WebSocket interfaces, includes a terminal UI for interactive management, and offers extensibility through a plugin system. The codebase demonstrates strong engineering practices with comprehensive testing, clear separation of concerns, and reusable components.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
better-auth/better-auth ★ 30110 2921 APPLICATION

Better Auth is a framework-agnostic authentication and authorization framework for TypeScript, designed as a monorepo with a core library, multiple database adapters (Drizzle, Prisma, Kysely, MongoDB, in-memory), client SDKs (React, Vue, Svelte, Solid, Expo, Electron), and a plugin ecosystem. It supports email/password, OAuth2/OIDC, SAML, SCIM, passkeys, 2FA, phone number OTP, and more. The architecture is modular: the core package provides the `betterAuth()` function, which configures plugins, database adapters, and social providers, and exposes a REST API for authentication flows. Client libraries use nanostores for reactive state management. The CLI offers project scaffolding, migration generation, and schema validation. External dependencies include jose for JWT, zod for validation, and various ORMs for database access. The codebase is well-tested with unit, integration, and e2e tests across all packages, and includes a release tooling package with AI-assisted changelog generation.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
authelia/authelia ★ 29226 1506 APPLICATION

Authelia is a self-hosted, open-source authentication and authorization server providing single sign-on (SSO), multi-factor authentication (MFA), and access control for reverse proxies. The backend is written in Go, using fasthttp for HTTP, koanf for configuration, and supports multiple storage backends (SQLite, PostgreSQL, MySQL) and authentication backends (LDAP, file-based, PAM). It implements a full OpenID Connect 1.0 / OAuth 2.0 provider with certified conformance, WebAuthn (FIDO2) passkeys, TOTP, Duo Push, and passwordless authentication. The frontend is a React/TypeScript single-page application with i18n, custom UI components, and integration with the backend via REST APIs. The architecture follows a service-oriented pattern with middleware chains, configuration validation, and extensive unit and integration tests. The codebase is well-structured, modular, and demonstrates high craftsmanship in areas like timing attack mitigation, clock abstraction for testability, and configuration validation.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
requarks/wiki ★ 29028 3319 APPLICATION

Wiki.js is a full-featured, open-source wiki platform designed for collaborative content management. It provides a rich editing experience with Markdown, AsciiDoc, and a visual editor (ProseMirror), supporting real-time collaborative editing via Yjs and WebSocket. The system is built as a monolith with a Fastify backend, Vue 3 frontend, and PostgreSQL database, with worker threads for background tasks like notifications and webhook delivery. It features a modular architecture with pluggable storage backends (disk, S3, Azure, GCS, Git), authentication strategies (local, OIDC, SAML, LDAP, WebAuthn), analytics providers, and comment systems. The block system allows custom content components (diagrams, maps, PDFs, etc.) as LitElement custom elements. Multi-site and multi-locale support, SCIM provisioning, audit logging, rate limiting, and a scheduler for periodic tasks round out the platform. The codebase is well-structured with extensive comments, but relies on a global `WIKI` object and has complex permission logic that spans multiple layers.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
lissy93/dashy ★ 26676 1951 APPLICATION

Dashy is a self-hosted dashboard application that serves as a customizable startpage and service monitor for homelabs and server infrastructure. In production, it aggregates links to internal and external services, displays live widgets (weather, system metrics, crypto prices, news, etc.), and performs HTTP/ICMP status checks to indicate service health. The application is configured entirely via a YAML file (conf.yml) that defines pages, sections, items, widgets, authentication providers, themes, and layout options. Users can interact through multiple views: a default grid, a workspace with sidebar and iframe content, and a minimal tabbed view. The system also includes an interactive configuration editor, cloud backup/restore with AES encryption, and full REST API for programmatic management. Architecturally, Dashy is a full-stack web application with a Vue 3 frontend (built with Vite) and a Node.js Express backend. The frontend handles rendering, theming, localization (30+ languages), and client-side authentication flows (OIDC, Keycloak, header auth, built-in users). The backend provides endpoints for config saving, CORS proxying (with SSRF protection), status/ping checks, and optional REST API. Deployment is Docker-first, but bare-metal, cloud (Netlify, Render), and static hosting are also supported. The codebase is organized into reusable mixins (WidgetMixin, ThemingMixin, HomeMixin), custom Vue directives (DragSort, Tooltip, LongPress), and a schema-driven configuration system that powers both validation and the CodeMirror-based YAML editor. Key data flows include: (1) configuration loading from file and localStorage, merged by the ConfigAccumulator; (2) widget data fetching via the CORS proxy or direct API calls, with standardized error handling and update intervals; (3) authentication token exchange and session management across client and server; (4) status checks that update item indicators in real-time. External dependencies are limited to Node.js, Vue 3, Express, and a handful of widget-specific APIs (OpenWeatherMap, CoinGecko, etc.), all of which are optional and configurable. The project is purely an application with no data research or analytics components.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 8 reusable components found
paramiko/paramiko ★ 9879 2085 APPLICATION

Paramiko is a mature Python SSHv2 protocol library used in production by applications and higher-level tools such as Fabric. It provides both client and server capabilities: opening SSH connections, executing remote commands, transferring files over SFTP, implementing custom SSH servers, and handling port forwarding, agent forwarding, and X11 forwarding. The repository does not ship a standalone CLI; it is consumed as a Python API centered on SSHClient, Transport, ServerInterface, SFTPClient, and SFTPServer.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
spring-projects/spring-security ★ 9647 6367 APPLICATION

Spring Security is a comprehensive authentication and authorization library for Spring-based applications, supporting both Servlet (MVC) and Reactive (WebFlux) stacks. In production, it intercepts HTTP requests via a configurable filter chain (SecurityFilterChain for servlet, WebFilterChain for reactive) to enforce authentication, session management, CSRF protection, security headers, CORS, and access control. It provides a pluggable architecture with core abstractions (AuthenticationManager, AuthorizationManager, SecurityContextHolderStrategy) and protocol-specific modules for OAuth2/OIDC, SAML2, LDAP, CAS, WebAuthn, Kerberos, and JWT. The library is configured via annotations (@EnableWebSecurity, @EnableMethodSecurity), a Kotlin DSL, or XML namespace, and integrates deeply with Spring's configuration and dependency injection. The architecture is modular: the 'core' module defines foundational interfaces (Authentication, GrantedAuthority, SecurityContext), 'web' implements servlet and reactive security filters, 'config' provides annotation-driven and XML configuration support, and protocol modules (oauth2, saml2, ldap, webauthn, cas) handle specific authentication/authorization flows. Key entry points include the HttpSecurity/ServerHttpSecurity builders, SecurityFilterChain, and method-security annotations (@PreAuthorize, @Secured). External dependencies include Spring Framework, Jackson (for serialization), Project Reactor (for reactive support), OpenSAML, and LDAP libraries. The codebase demonstrates strong engineering practices: extensive use of strategy, composite, and builder patterns; clean separation of servlet and reactive APIs; and a consistent Jackson mixin pattern for serialization of security objects.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
mongodb/mongo-go-driver ★ 8533 940 APPLICATION

The MongoDB Go Driver is the official MongoDB driver for Go applications, providing connectivity to MongoDB databases. It implements the MongoDB wire protocol, handles BSON encoding/decoding, manages connection pooling and server discovery, and supports all MongoDB features including transactions, change streams, GridFS, and encryption. The driver follows a layered architecture with high-level (mongo package), middle-layer (driver implementation), and low-level (BSON handling) components. It uses idiomatic Go patterns including context-based cancellation, functional options for configuration, and dependency injection for pluggable components like authenticators and loggers.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
fastapi/full-stack-fastapi-template ★ 45868 9126 APPLICATION

This repository is the official FastAPI full-stack template, providing a production-ready starter for full-stack web applications. It consists of a FastAPI backend (Python 3.14, SQLModel ORM, PostgreSQL, Alembic migrations) and a React frontend (TypeScript, Vite, TanStack Router/Query, Tailwind CSS, shadcn/ui). The template ships with complete authentication (JWT, password hashing with Argon2/Bcrypt, password recovery via email), user and item CRUD, role-based access control, and a responsive dashboard UI. Deployment is handled via Docker Compose with Traefik, and the project includes comprehensive CI/CD pipelines for testing (pytest, Playwright) and deployment (FastAPI Cloud or self-hosted). While it is a template, the code is structured for immediate extension and includes many reusable patterns such as generic CRUD utilities, email templates written in React Email, and auto-generated OpenAPI client code for the frontend. The repository is not a data research project; it is a pure application template with no data pipelines, notebooks, or ML components. It is actively maintained, with frequent commits and a strong community following.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
restsharp/RestSharp ★ 9819 2297 APPLICATION

RestSharp is a mature .NET HTTP client library that wraps HttpClient into a fluent request/response API. It is not a standalone application; it ships as NuGet packages consumed by other projects. The core RestClient handles execution through an async pipeline: interceptors, authenticators, request content construction, cookie containers, redirect handling, and response deserialization. RestRequest models parameters (query, header, body, URL segments, cookies, files) and is built fluently through extension methods. Responses are RestResponse<T> with error aggregation and throw helpers, making failure handling explicit and consistent. The architecture is modular: a core library plus optional serializer packages for Newtonsoft.Json, System.Text.Json, XML, and CsvHelper, a DI integration package for Microsoft dependency injection, and a Roslyn source generator that produces immutable and clone variants of configuration types. Authentication is pluggable via IAuthenticator, with built-in Basic, JWT, OAuth1 signature generation, and OAuth2 client-credentials/refresh-token/token authenticators. Serialization is managed by a registry keyed by data format and content type, with automatic body sniffing between JSON and XML. The codebase multi-targets netstandard2.0, net471, net48, net8.0, net9.0, and net10.0, and includes extensive unit and WireMock-based integration tests, benchmarks, and versioned Docusaurus documentation. Code quality is strong: clean separation of concerns, extensive use of extension methods for ergonomics, custom source generation for option immutability, and a comprehensive test suite covering OAuth1 official vectors, redirect behavior, cookies, serializer edge cases, and interceptor ordering. Some legacy surface remains (obsolete hooks, polyfills for old TFMs), but the project tracks current .NET releases and is actively maintained. This is a well-crafted library that remains one of the standard HTTP client abstractions in the .NET ecosystem.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
$ loading more...
$ submit: