Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
portiko
command
Command portiko runs a Portiko identity provider with the built-in extension points: a display name and emoji avatar for the profile, and email by SMTP.
|
Command portiko runs a Portiko identity provider with the built-in extension points: a display name and emoji avatar for the profile, and email by SMTP. |
|
internal
|
|
|
accounts
Package accounts implements the three WebAuthn ceremonies — registration, login and recovery — over Postgres.
|
Package accounts implements the three WebAuthn ceremonies — registration, login and recovery — over Postgres. |
|
config
Package config loads runtime configuration from the environment.
|
Package config loads runtime configuration from the environment. |
|
keys
Package keys manages the ES256 signing keys and the key set derived from them.
|
Package keys manages the ES256 signing keys and the key set derived from them. |
|
localpath
Package localpath decides whether a return address is a path on this site.
|
Package localpath decides whether a return address is a path on this site. |
|
mailer
Package mailer delivers the provider's messages to an account holder.
|
Package mailer delivers the provider's messages to an account holder. |
|
passkey
Package passkey wraps go-webauthn with this service's registration policy and the credential handling rules that WebAuthn gets wrong by default.
|
Package passkey wraps go-webauthn with this service's registration policy and the credential handling rules that WebAuthn gets wrong by default. |
|
password
Package password is the opt-in password credential: hashing with Argon2id and the policy a new password has to meet.
|
Package password is the opt-in password credential: hashing with Argon2id and the policy a new password has to meet. |
|
store
Package store is Portiko's persistence: accounts, passkeys, ceremonies, browser sessions, clients, authorization requests and refresh tokens, all in PostgreSQL so a deployment can run more than one replica and survive a restart mid-sign-in.
|
Package store is Portiko's persistence: accounts, passkeys, ceremonies, browser sessions, clients, authorization requests and refresh tokens, all in PostgreSQL so a deployment can run more than one replica and survive a restart mid-sign-in. |
|
Package migrations holds Portiko's schema as ordered SQL files, in the golang-migrate naming scheme (NNNNNN_name.up.sql / .down.sql).
|
Package migrations holds Portiko's schema as ordered SQL files, in the golang-migrate naming scheme (NNNNNN_name.up.sql / .down.sql). |
|
Package profile holds what an account holder chooses to be shown as: a display name and one of a fixed set of emoji avatars.
|
Package profile holds what an account holder chooses to be shown as: a display name and one of a fixed set of emoji avatars. |
|
Package protocol defines the wire contract shared by the accounts service and every relying party: the protocol version, how versions are negotiated, the discovery documents, and the claim and error names.
|
Package protocol defines the wire contract shared by the accounts service and every relying party: the protocol version, how versions are negotiated, the discovery documents, and the claim and error names. |
|
Package provider is Portiko's identity provider: passkey ceremonies, a set of signed-in accounts per browser, and an OpenID Connect provider built on zitadel/oidc that issues audience-scoped tokens to every site.
|
Package provider is Portiko's identity provider: passkey ceremonies, a set of signed-in accounts per browser, and an OpenID Connect provider built on zitadel/oidc that issues audience-scoped tokens to every site. |
|
Package rp is the relying-party half of Portiko: everything a website needs to sign people in against a Portiko provider.
|
Package rp is the relying-party half of Portiko: everything a website needs to sign people in against a Portiko provider. |
|
session
Package session holds the relying party's own session: the server-side record of a signed-in browser, plus the cookie that points at it.
|
Package session holds the relying party's own session: the server-side record of a signed-in browser, plus the cookie that points at it. |
|
session/pgstore
Package pgstore is a session.Store in PostgreSQL, so a site's sessions survive a restart and are shared by every replica.
|
Package pgstore is a session.Store in PostgreSQL, so a site's sessions survive a restart and are shared by every replica. |
|
Package server is the Portiko command: it runs the provider and the operator commands that register the sites allowed to sign people in.
|
Package server is the Portiko command: it runs the provider and the operator commands that register the sites allowed to sign people in. |
|
Package verify checks Portiko tokens wherever they arrive from the network: at a relying party (back-channel logout tokens, pushed security events) and at a resource-server API (bearer access tokens).
|
Package verify checks Portiko tokens wherever they arrive from the network: at a relying party (back-channel logout tokens, pushed security events) and at a resource-server API (bearer access tokens). |
|
verifytest
Package verifytest mints Portiko-shaped tokens against an in-process key, so an API's tests can exercise verify without running a provider.
|
Package verifytest mints Portiko-shaped tokens against an in-process key, so an API's tests can exercise verify without running a provider. |
Click to show internal directories.
Click to hide internal directories.