Skip to content
ebremerPublic

About

A Keycloak extension implementing all four authentication suites of the W3C Linked Web Storage (LWS) 1.0 protocol

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

lws-authn — Keycloak providers for LWS authentication suites

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 sub is 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:key or a did:web.
  • SAML 2.0 — a signed SAML 2.0 <Response> whose <NameID> is the subject.

Documentation

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/.

Quick start

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 it

This 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-dev

Then try a suite with its walkthrough; each has a demo script in scripts/.

Security

Report a vulnerability by email, not in an issue — see the security policy.

License

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.

About

A Keycloak extension implementing all four authentication suites of the W3C Linked Web Storage (LWS) 1.0 protocol

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages