Friend is an extensible authentication and authorization library for Clojure Ring web applications. It streamlines user authentication, supports multiple workflows, and integrates role-based security cleanly into request handling. Ring middlewares for configuring and defining the scopes of authentication and authorization. Macros to clearly demarcate the scope of authentication and authorization within code that is "below" the level of Ring handlers where you can't use middlewares. Enables DRY routes and configuration, e.g. no need to configure your routes in Compojure or Noir or Moustache, and separately specify which routes fall under the jurisdiction of Friend's security machinery.

Features

  • Support for form-based, HTTP Basic, and OpenID authentication
  • Pluggable workflows allow easy implementation of OAuth or custom methods
  • Role-based authorization, optionally using Clojure’s hierarchy (derive, isa?)
  • "su" capabilities—admin can impersonate other users for debugging
  • Ring middleware and scoped macros simplify defining secure access flow
  • Commonly used and considered stable in Clojure ecosystem

Project Samples

Project Activity

See All Activity >

Categories

Authentication

Follow Friend

Friend Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Friend!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Registered

2025-08-20