Skip to content
CAI
Software that uses CAICheck a score

profunktor/http4s-jwt-auth

56.8

Adequate · 7 November 2026

276

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Support for asymmetric JWT signing and validation

The core authentication module now supports asymmetric algorithms (RSA, ECDSA, EdDSA) in addition to existing symmetric HMAC signing. Users can configure \JwtAsymmetricAuth\ using public keys for validation and \JwtPrivateKey\ for signing, with dedicated utilities in \AsymmetricKeys.scala\ to parse PKCS8 private keys and X.509 public keys. The \jwt.scala\ module exposes \JwtAsymmetricAuth\ and \JwtPrivateKey\ types, while \middleware.scala\ integrates these into the \JwtAuthMiddleware\ to handle bearer token validation against asymmetric public keys.

core/src/main · high confidence

Removals

Removal of JWT authentication middleware and types

The JWT authentication middleware and its associated data types have been removed from the application. This change deletes the \JwtAuthMiddleware\ implementation, which previously handled bearer token extraction and validation using the \pdi.jwt\ library, as well as the \jwt.scala\ file containing the \JwtToken\, \JwtSecretKey\, and \JwtAuth\ case classes. Users relying on this specific JWT-based authentication mechanism will no longer have access to these components.

src/main · high confidence

Behavioural changes

Project setup and tooling updates

The repository has been initialized with standard governance files including a Code of Conduct, Contribution guidelines, and an Apache 2.0 License. Development tooling has been updated by adding a Nix flake for the development shell, configuring Mergify to automatically merge Scala Steward dependency updates, and updating the scalafmt configuration to version 3.11.5 with Scala 2.13 dialect support. The README has been expanded with usage examples and dependency instructions, while the .gitignore has been updated to exclude IDE-specific directories.

(repo-wide) · high confidence

Test coverage

Added tests for asymmetric key handling and JWT middleware behavior

Added new test suites for asymmetric key operations and JWT authentication middleware. The AsymmetricKeysSuite verifies the creation of private and public keys, successful encode/decode cycles using RSA, and proper exception handling for invalid key inputs. The JwtAuthMiddlewareSuite tests the middleware's integration with HTTP routes, covering scenarios such as valid token acceptance, rejection of missing or invalid tokens, user lookup failures, and the ability to fetch secrets via a generic effect type F\[\_\].

core/src/test · high confidence

Dependencies

Updated build tooling and core library dependencies

The project's build infrastructure has been updated to SBT 1.13.0, and core dependencies have been upgraded to their latest versions: Cats to 2.13.0, Cats-Effect to 3.7.1, fs2 to 3.14.0, http4s to 0.23.38, and jwt-core to 11.0.4. The JWT library artifact has changed from com.pauldijou to com.github.jwt-scala, and the test framework has switched from ScalaTest to Munit 1.3.6. Additionally, the sbt-mima-plugin is now included in the build to check for binary compatibility issues.

project · high confidence

Upgrade to Scala 3.3.8 and enable cross-building

The project now supports Scala 2.12.21, 2.13.18, and 3.3.8, allowing users to build against the latest Scala 3 version. This update includes configuration for Scala 3-specific compiler options and removes compiler plugins like kind-projector that are no longer needed in Scala 3. The build structure has been reorganized into a core library module and a microsite module, with the core module now using Munit for testing instead of ScalaTest. Binary compatibility is enforced via MiMa for the 2.0.0 version.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 58 → 57 (-1.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 50 → 50 (+0.0)
  • Readiness 58 → 58 (+0.0)
  • Security 79 → 65 (-13.9)

Resolved (3)

  • Dependency hygiene PARTLY measured — sbt declarations read, no exact version to grade for currency
  • Documentation: no contributor guidance (README.md)
  • Documentation: no project overview (README.md)

New (1)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)

Changes since last survey

  • 4 commits — 4 feature/other, 0 fixes

By area

  • (repo) — 2 commits
  • (root) — 1 commit
  • project/build.properties — 1 commit

Notable commits

  • change: Merge pull request #625 from profunktor/update/scala3-compiler-3.3.9
  • change: Merge pull request #626 from profunktor/update/sbt-1.13.1
  • change: Update sbt, scripted-plugin to 1.13.1
  • change: Update scala3-compiler, scala3-library, ... to 3.3.9

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

profunktor/http4s-jwt-auth was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 58ebaf49bcdf7a7efaabb2801be535d81245d260 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-c34be012586e.