profile

package
v0.0.1-dev.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package profile states what Holon requires of an identity backend, so a backend is built against the standards and not against one provider. It has no code. Package conformance tests a live issuer and adapter against these rules.

  • Clients. The browser client is confidential and uses the authorization code grant with PKCE S256, RFC 6749 §4.1 and RFC 7636 §4.2. The cli client is public and uses the device authorization grant, RFC 8628 §3, with offline_access. One person has one sub at both, the public subject type of OpenID Connect Core 1.0 §8. A service account uses client credentials, RFC 6749 §4.4; the conformance suite is given one. The issuer refuses the password grant to every client, RFC 9700 §2.4.
  • Resource. An access token's aud is the one resource its token request names, RFC 8707 §2, and nothing else, RFC 8707 §2.2. A grant whose authorization request named a resource is bound to it: a refresh naming a different resource is refused with invalid_target. The cli client's device request names none, and each refresh of its grant may name any registered resource, including one registered after the sign-in, which RFC 8707 §2.2 leaves to the issuer. A token requested for no resource or an unregistered one is inactive or refused with invalid_target, RFC 8707 §2.
  • Scope. A scope says what the subject delegated to the client, and its name means the same at every resource that registers it. A token carries the scopes its grant named that its resource registered and the subject holds through a permission set when the token is issued, refreshes included. Any client the issuer does not define is a third party and gets only the scopes it named and the subject approved. A grant that names none gets the default RFC 6749 §3.3 allows: at a client the issuer defines, every scope the resource registered that the subject holds; at a third party, none. A Personal Agent has no default: a sign-in that names none is refused with invalid_scope, Personal Agent Protocol §4.7. A scope no resource registered is refused with invalid_scope, RFC 6749 §5.2. The token response carries the issued scope in the scope parameter, RFC 6749 §5.1, and introspection answers it as issued. Protocol scopes (openid, profile, email, offline_access) pass through unchanged.
  • Registration. An owner registers its resources together and holds exactly the audiences it registered last. A token minted before its resource was registered, or for an audience its owner has since left out, is inactive, and stays inactive when the audience is registered again.
  • People. For each person, the SCIM User id the adapter serves, RFC 7643 §3.1, is the sub of that person's sign-in at the browser client, OpenID Connect Core 1.0 §8, and GET /Users/{id} lists the permission groups the person is in.
  • Passwords. A password written through SCIM, RFC 7643 §4.1.1, is temporary: the issuer requires a new one at the first sign-in, refuses the same value, and collects the person's name there too if the account has none.
  • Invitations. An invitation link is valid for its Lifetime and no longer, and is refused once the person has finished setting up.
  • Introspection. The adapter answers RFC 7662 §2.2 with active, token_type Bearer, iss, sub, client_id, exp, aud as one string, and scope in the format of RFC 6749 §3.3 unless it is empty, and authenticates the caller by the shared bearer, which RFC 7662 §2.1 allows. A token of any other type is not active.
  • Revocation. The issuer advertises revocation_endpoint, RFC 8414 §2, and accepts RFC 7009 §2.1 from the cli client with its client_id and no credential. A revoked refresh token is refused with invalid_grant on its next use, RFC 6749 §5.2.
  • Sign-out. A request to end_session_endpoint with id_token_hint, including an expired one, ends the provider session without asking the user, OpenID Connect RP-Initiated Logout 1.0 §2: the session's access token goes inactive and its refresh token is refused with invalid_grant. With no hint the provider asks the user to confirm before it ends a browser's session. The browser client has {origin}/?signedOut=1 registered as a post-logout redirect URI for the base, admin and dev origins, and the provider redirects there after logout, OpenID Connect RP-Initiated Logout 1.0 §3.
  • Discovery. {issuer}/.well-known/openid-configuration serves OpenID Connect Discovery 1.0 §4. Holon reads the authorization, device, token, revocation and end-session endpoints from it and nowhere else.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL