Encedo OIDC Provider

HSM-anchored · OpenID Connect Core 1.0 · self-hosted

Identity nobody can steal.
Not even the provider.

Every other identity provider holds the secret that proves who you are. This one holds nothing. Your key is generated inside your Encedo HEM and never leaves it — the server assembles the token, your hardware signs it, and the server is left able to verify a signature it cannot produce.

What the server builds
What your module returns
What the server does with it
What the server can sign alone

Five claims, and what backs each one

The server cannot sign for you

The backend builds signing_input — header and claims, exactly as OIDC requires — and hands it to the browser. The module signs it. The backend verifies the signature and assembles the token. There is no code path in which it produces one, and no configuration that adds one.

Structural, not a policy setting

A database breach exposes nothing usable

No passwords, no hashes, no session secrets, no MFA seeds, no private keys. What is stored per user is a public key, a device certificate and display claims — public by definition, and useless without the hardware that holds the other half. Even email_verified is earned, not typed: it is set only when the enrollment link that reached the mailbox is the one that was used.

Redis only · no SQL, no credential store

No login without the physical device

Every authentication ends at the module, which has to answer — approved on your phone or unlocked with a passphrase. A compromised server can refuse a login. It cannot grant one.

Pending session 120 s · auth code 60 s · PKCE S256

Standard OIDC, no cloud dependency

Discovery, JWKS, UserInfo, RP-initiated logout, PKCE — a relying party integrates the way it integrates anything else, and reads auth_time and amr to learn how the user was authenticated. Nothing phones home: the only outbound call in normal operation is to your own module, on your own network.

Runs air-gapped · Node.js 22 + Redis · tagged releases

Every key proves where it was made

At enrollment the module signs a statement that names itself and the new key, bound to a one-time challenge from the server and countersigned by the new key. The provider checks that the key in the statement is the key going into the JWKS and that it was generated inside the module, not imported. A PPA's statement carries a device certificate that chains to Encedo's root and is checked against attest.encedo.com for revocation; an EPA's is checked by its signatures for now. The signed statement is stored with the account as evidence.

HEM firmware 1.3 · recorded by default, required per user or per instance

OIDC is a standard, so nothing here is written for one application: whatever reads discovery integrates the same way. Tested with Nextcloud, Carbonio CE and GitLab, which authenticate against it in daily use at RKV. Read the security model →

The obvious objection, answered

The device on every login?
Only on the first one.

After one confirmation on the module, your browser keeps the device's short-lived authorization — in that browser, and nowhere else. The next application is one click: the device still signs, the server still verifies, and the server still holds nothing it could reuse. Single sign-on without a session on the server to steal.

Every application learns what happened. The ID Token says when the device was confirmed and whether this sign-in reused it, so a sensitive system can insist on a fresh confirmation while the rest ride on the first one.

auth_time · amr = [hwk] or [hwk, sso] 8 h by default, chosen on the device

  • Who can say no
  • The operator — on or off for the whole provider, and a ceiling on how old an authorization may be reused.
  • Each application — the payroll system asks for the device every time, the wiki does not.
  • Each user — excluded for shared workstations or privileged accounts.
  • The user — decides at sign-in whether this browser remembers at all, and picks the lifetime on the phone.
  • The application, at runtime — standard prompt=login and max_age force a fresh confirmation.
  • Signing out — leaving one application asks whether to end the browser's session too. Nothing happens silently.

Compared with what you would use instead

Encedo OIDCMIT · self-hosted KeycloakApache 2.0 · self-hosted authentikMIT core · self-hosted Oktacommercial · cloud Microsoft Entra IDcommercial · cloud
Who signs the ID Token The user's hardware module The provider's own keyThe provider's own keyOkta's keyMicrosoft's key
Can the operator, or a stolen signing key, log in as any user? No. There is no key to steal YesYesYesYes¹
A copy of the database gives an attacker Public keys and display names Password hashes, OTP seedsPassword hashes, OTP seedsThe vendor's database, not yours to audit
Hardware at every sign-in Always. No password to fall back on Optional (WebAuthn)Optional (WebAuthn)Optional (FIDO2, Okta Verify)Optional (FIDO2, passkeys)
Where it runs Your small VM: Node.js + Redis Your servers: Java + SQL databaseYour servers: Python + PostgreSQLOkta's cloudMicrosoft's cloud
Independence Needs no outside service on the server. Open source; software and module made in Poland by RKV Needs no outside service. Open source, a CNCF project Needs no outside service. Open-source core, enterprise features licensed Vendor's cloud. US company, so the CLOUD Act applies Vendor's cloud. US company, so the CLOUD Act applies
Protocols OIDC, SAML² OIDC, SAML, LDAP / ADOIDC, SAML, LDAP, RADIUSOIDC, SAML, SCIMOIDC, SAML, SCIM
Cost Free · a module per user FreeFree · enterprise tier paidPer-user subscriptionPer-user subscription

Why Encedo OIDC: every other provider here is trusted because it holds a key that can sign for anyone. Encedo OIDC holds none, so there is nothing on the server whose theft signs anyone in. Choose another when you need SAML today, directory sync, password accounts or a large app catalogue: Keycloak and authentik do all of that well, and Encedo OIDC does not try to.

¹ In 2023 a stolen Microsoft signing key was used to forge tokens for Exchange Online mailboxes (Storm-0558; U.S. Cyber Safety Review Board report, April 2024).
² SAML is under development.

What this costs you

Every user needs an Encedo HEM
There is no password to fall back on and no recovery without the device. A lost or replaced module means a new enrollment, which only an administrator can start.
The ID Token is the user's signature, not the provider's
There is no provider key. A token that verifies against jwks_uri proves that the user's module signed it, and the user could sign any payload offline. Trust an ID Token only as the response of POST /token; never accept one from another channel as a bearer credential.
No RS256
The module signs with EdDSA and ES256/384/512. OIDC Core lists RS256 as mandatory for a provider; a relying party wired to it has to be configured for one of these instead.
One key per user in the JWKS
A relying party that caches the JWKS and matches kid strictly will not know a newly enrolled user until its cache expires, typically an hour.
Attestation is advisory unless you require it
By default the outcome is stored and logged, and a key that fails the check is still enrolled. An operator who needs a genuine module sets ATTEST_POLICY=require_hard, for the whole instance or for one user. Accounts enrolled before firmware 1.3 carry no attestation until they enroll again. Every item above, in full →

Your own infrastructure

Three commands. One small VM. No SQL, no cloud.

Do not take our word for any of the above — run the provider yourself. It is one Node.js process with a single dependency, and the whole of its state fits in Redis.

# any small Linux box, Node 22+ and Redis 7+ — or the release ZIP
$ git clone --recurse-submodules https://github.com/encedo/encedo-oidc.git && cd encedo-oidc
$ npm ci && cp .env.example .env   # set ISSUER and ADMIN_SECRET
$ npm start
1 process 1 dependency (Redis) 0 secrets at rest Docker multi-tenant template included backup / restore in one command each tagged releases, tests gate every one MIT licence