clauth github ↗ Get started

Kits

Plug Clauth into your stack.

Kits handle sign-in, token checks, permissions and the Clauth bar for one framework. Don't see yours? Any OIDC library works — or build the kit.

L

Laravel

clauth-laravel · official
Available · v0.5
  • ✓Socialite driver (PKCE + nonce)
  • ✓Routes: redirect, callback, logout
  • ✓clauth.can middleware
  • ✓clauth.fresh token refresh
  • ✓clauth.api bearer guard
  • ✓Manifest route + @clauthBar
composer require wdonayre/clauth-laravel
php artisan vendor:publish --tag=clauth-config
N

Node.js

clauth-node · official
Coming soon

Middleware for Express-style servers first, with helpers that other Node frameworks can wrap. Follow the repository to hear when the first release is out, or help shape the API.

Wanted

Build the next kit.

No kit yet for these. Pick one, follow the kit contract, and it gets listed here with credit.

Read the kit contract
PythonDjango, FastAPI, Flask
Gonet/http middleware
RubyRails, OmniAuth strategy
.NETASP.NET Core
MobileReact Native / Expo, Flutter
WordPressPlugin for site sign-in

No kit? No problem

Any OpenID Connect library works.

Point it at the discovery URL, request the clauth scope, and read roles from the orgs claim. You'll handle refresh and the bar yourself.

# Discovery
https://auth.example.com/.well-known/openid-configuration

# Scopes
openid email profile clauth offline_access