Skip to content

docs: describe the OIDC provider interface - #1271

Merged
DavidePrincipi merged 3 commits into
mainfrom
feat-8080
Oct 5, 2026
Merged

DavidePrincipi merged 3 commits into
mainfrom
feat-8080

Conversation

@DavidePrincipi

@DavidePrincipi DavidePrincipi commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

Applications need a common way to get single sign-on (SSO) from an identity provider module, without each one depending on a specific product. NethServer/dev#8080

The core code does not change. The User domains documentation page gets a short "Single sign-on" section that documents the minimal contract between an OpenID Connect (OIDC) provider module and the modules that use it. The ns8-idp module (Keycloak) is the reference implementation. This replaces the earlier, broader draft of this PR, which described an OIDC domain architecture that was not implemented.

  • A provider serves one realm for each user domain. Token user names match the user domain accounts.
  • Discovery: the module/{MODULE_ID}/srv/http/oidc service key, the service-oidc-changed event, and the standard OIDC discovery document of the issuer.
  • Registration: the register-client action, granted by the clientadm role, and the rules every provider must follow, including the logout redirect URIs, clients disabled by an administrator, and the validation errors.
  • Realms restricted to federated logins, like Microsoft Entra ID: modules should then offer exclusive SSO, with an emergency login path, because their own login form still accepts LDAP passwords.

Briefing slides: ns8-idp overview-1.pdf


Generated by Claude Code:claude-opus-5.5 with nethserver-pr

Document the minimal interface between OIDC provider modules and their
client modules: the oidc service key, its change event, the
register-client action with the clientadm role, and the user name
claim. The core implements none of it; ns8-idp is the reference
implementation.

Assisted-by: Claude Code:claude-opus-5-5
@DavidePrincipi DavidePrincipi self-assigned this Oct 2, 2026
@DavidePrincipi DavidePrincipi changed the title docs: define core SSO architecture for OIDC domains docs: describe the OIDC provider interface Oct 2, 2026
The payload carries the provider host and issuer prefix, so listeners
can tell whether a change concerns them without reading the key.

Assisted-by: Claude Code:claude-opus-5-5

[skip ci]
Document what the reference implementation added since: the logout
redirect URIs and their default, the explicit module ID of tasks
without a calling user, the enabled state kept across registrations,
clients without redirect URIs, the audience, and the validation
errors.

Add a note on realms restricted to federated logins: a module that
shows its own login form still accepts LDAP passwords, so it should
offer exclusive SSO with an emergency login path.

Assisted-by: Claude Code:claude-opus-5-5
@DavidePrincipi
DavidePrincipi merged commit f1df169 into main Oct 5, 2026
@DavidePrincipi
DavidePrincipi deleted the feat-8080 branch October 5, 2026 14:29
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.

Define core SSO architecture for external identity providers

2 participants