Skip to content

Rename jpro-auth-routing Filter classes to Transformer; RoutingAuth.filter() -> install()#118

Merged
FlorianKirmaier merged 2 commits into
mainfrom
refactor/auth-transformer-rename
Jun 14, 2026
Merged

Rename jpro-auth-routing Filter classes to Transformer; RoutingAuth.filter() -> install()#118
FlorianKirmaier merged 2 commits into
mainfrom
refactor/auth-transformer-rename

Conversation

@FlorianKirmaier

Copy link
Copy Markdown
Contributor

Aligns jpro-auth-routing with the routing Transformer vocabulary. In 0.7.0 routing renamed its Filter type to Transformer but the auth classes deliberately kept Filter; with only three of them — and no *Filter convention anywhere else in routing — that lone exception caused more confusion than it was worth (a Filter and a Transformer are the same type here). This reverses that decision.

Naming only — no behavior change.

Renames

  • AuthBasicFilterAuthBasicTransformer
  • AuthBasicOAuth2FilterAuthBasicOAuth2Transformer
  • AuthRestrictionFilterAuthRestrictionTransformer
  • AuthUIProvider.createFilter()createTransformer()
  • RoutingAuth.filter()install() — an intent name, since both it and requireLogin() return a Transformer (a method called transformer() would be ambiguous). install() reads as "wire the login page + callbacks into the app."

Also

Hard rename (no deprecated aliases) — pre-1.0.

Verified: :jpro-auth:routing and :jpro-auth:example compile; demo runs (-Psample=routing-auth); no leftover *Filter/createFilter/filter() references; README versions in sync.

Follow-up (separate PR): unify the onLogin/onError callbacks across all login methods and de-duplicate RoutingAuth's inline OAuth/basic providers.

🤖 Generated with Claude Code

FlorianKirmaier and others added 2 commits June 14, 2026 23:56
…() -> install()

Aligns jpro-auth-routing with the routing Transformer vocabulary (reversing the
0.7.0 decision to keep the Filter name): AuthBasicFilter/AuthBasicOAuth2Filter/
AuthRestrictionFilter -> *Transformer, AuthUIProvider.createFilter() ->
createTransformer(), and RoutingAuth.filter() -> install(). Updates examples,
both auth READMEs (parent now points at RoutingAuth), and the CHANGELOG.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@FlorianKirmaier FlorianKirmaier merged commit c5b144e into main Jun 14, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant