A Keycloak 26.8 extension implementing the authentication suites of the W3C Linked Web Storage (LWS) 1.0 protocol, in which a signed token bound to an identity is used as an authentication credential — all three of its suites:
- OpenID Connect — Keycloak is the
OpenID Provider; the ID Token's
subis a CID URL. - Self-signed Identity (Controlled Identifiers) —
an agent signs its own JWT with a key its controlled identifier document lists; the identifier is an
HTTPS URI, a
did:keyor adid:web. - SAML 2.0 — a signed SAML 2.0
<Response>whose<NameID>is the subject.
https://ebremer.github.io/lws-authn/ — building and deploying, installing on a server, a
walkthrough per suite, each suite's endpoints, the configuration reference, the conformance statement
and the changelog. Its source is docs/.
With Docker, from a checkout:
docker compose up --build --wait # Keycloak 26.8.0 + lws-authn + a demo realm, at http://localhost:8080
bash scripts/lws-demo.sh # issue an ID Token whose sub is a CID URL, and verify itThis is a development setup (admin admin / admin, plain HTTP); see
Run with Docker.
Or, with JDK 21+, Maven, and a Keycloak install — 26.8.0 or a later 26.8 release — at $KC_HOME:
mvn clean package # builds target/lws-authn-<version>.jar
cp target/lws-authn-*.jar "$KC_HOME/providers/"
"$KC_HOME/bin/kc.sh" build # re-augment with the new provider
"$KC_HOME/bin/kc.sh" start # or start-devThen try a suite with its walkthrough; each
has a demo script in scripts/.
Report a vulnerability by email, not in an issue — see the security policy.
Apache-2.0 — see LICENSE. Every source file — the Java, the scripts, the POM, the Docker files, the workflows and the
META-INF/services registrations — carries SPDX-License-Identifier: Apache-2.0.