authdb
免费Maintain the standalone cmd/authdb server, pkg/httpserver listener and portal routing, HTTP configuration parser, TLS, shutdown, executable tests, and deployment guidance. Use authdbctl for the management client.
中文简介正在准备中。当前显示原文说明。
Build, customize, or update AuthCrunch authentication portal themes using Go HTML templates, CSS, and SVG branding. Use for responsive layouts, login QR controls, cross-device approval views, filesystem overrides, UI/static-asset configuration, internationalization, and OIDC page styling. The embedded React profile application has a separate build.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
For an application theme, create deployable files in its theme directory, with the user's branding, working portal flows, and matching configuration. For library UI work, update the built-in templates and their rendering/browser tests. Start from the templates for the AuthCrunch version the application runs. Use an existing custom theme as a design reference, then carry its styling onto those templates. Filesystem overrides do not inherit later upstream changes.
Read basic theme branding for the built-in blue palette, shared CSS variables, logo/icon/banner/background replacements, and tested configuration examples. Use it for defaults or CSS-only branding before copying templates.
For sizing, alignment, gaps, corners, and hover/focus changes, read the component contract. For phone-only work, use the phone layout and verify the tablet/desktop boundary. For QR behavior, use the login QR contract; styling must preserve the active login view, entered values, and keyboard focus.
For cross-device request, continuation, approval, and terminal views, read the cross-device presentation contract. It defines the matching-code hierarchy, copy fallback, action layout, and Chrome captures; the ordinary login QR bookmark remains a separate view.
pkg/authn/ui/page_templates/basic changes the library's default UI and is
appropriate only when that is the requested scope.The React profile app under pkg/authn/ui/profile is a separate asset surface;
portal template overrides do not rebuild or restyle it automatically.
For language settings, translated templates/scripts, RTL layout and multilingual acceptance tests, read internationalization.
The connected_accounts template presents optional external-account connection,
fresh local login and confirmation. Its connected_accounts.css uses shared brand
variables; both inputs are server-owned and HTML-escaped. See the
connection contract
for protocol and lifecycle requirements.
basic;
a custom folder name is not a new value for ui.theme.Use Go html/template, not a frontend component language. Each custom file is
parsed independently; shared template partials require preprocessing into each
file. The repository supplies pathjoin and brsplitline, not Sprig or an
include function. Preserve contextual escaping.
Build local navigation and asset paths from .ActionEndpoint, which is the
portal mount, not the login URL. Keep .LogoURL and .LogoDescription useful
when the theme is meant to accept configuration. Do not embed credentials,
application-specific redirect scripts, or hardcoded user/role lists in a theme.
Preserve the current portal refresh script and the session template's DOM and
script attributes. The session response blocks inline CSS/JavaScript: load
theme CSS from the same origin. Do not relax its Content Security Policy to
reuse an inline style block.
Use refresh-token-transports to change
session continuation or refresh behavior; visual changes alone do not require
redesigning the refresh flow.
For OIDC styling, read the
OIDC browser page contract
before copying the oidc alias. It owns .Data.oidc, consent/continuation form
semantics, response policies, and browser validation. These pages use their own
.oidc-* styles; the theme's .app-* overrides alone will not style them. OIDC
and ordinary portal views share the --brand-* tokens in basic.css.
Form-post continuation and the portal refresh session page are separate flows.
Materialize tab fragments resolve directly to decoded element IDs through
M.getHashElement; do not reinterpret them as generic selectors. Preserve the
M.escapeHash compatibility helper's CSS escaping contract. Keep the readable
and minified Materialize assets synchronized and verify the served minified
asset in the MFA DOM Chrome fixture when changing this boundary.
Regenerate the paired asset with the pinned minifier:
npx -y terser@5.51.2 pkg/authn/ui/core/materialize-css/js/materialize.js \
--compress --mangle \
--output pkg/authn/ui/core/materialize-css/js/materialize.min.js
Paths below are relative to the repository root:
pkg/authn/ui/params.go: UI configuration fields.pkg/authn/portal.go, configureUserInterface: default and override loading.pkg/authn/ui/ui.go: template functions, Args, BaseURL, and rendering.pkg/authn/ui/page_templates/basic/: current template baselines.pkg/authn/ui/core/css/ and pkg/authn/ui/core/js/: styles and DOM consumers.pkg/authn/ui/core/js/login.js and pkg/authn/respond_qrcode.go: login QR
view transitions and the generated code endpoint, separate from brand assets.pkg/authn/ui/core/css/basic.css and pkg/authn/ui/core/images/: common
branding tokens, vector logo, favicon, decorative banner, and background.assets/branding/palette.json and assets/branding/soft-square.svg: default
colors and source geometry; make brand-assets regenerates the related SVGs,
CSS colors, and profile metadata. make brand-assets-check checks drift.pkg/authn/handle_http_static.go: public asset routing and caching.pkg/authn/handle_http_session.go: session rendering and response policy.pkg/authn/oidc_ui.go: OIDC page snapshots passed to the portal UI factory;
pkg/oidc/pages.go owns the response policies and standalone fallback.Use the application's pinned dependency when it differs from this checkout. Recompare overrides with that baseline on upgrades; do not copy an older theme's functional omissions into a new theme.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Maintain the standalone cmd/authdb server, pkg/httpserver listener and portal routing, HTTP configuration parser, TLS, shutdown, executable tests, and deployment guidance. Use authdbctl for the management client.
中文简介正在准备中。当前显示原文说明。
Maintain cmd/authdbctl commands, flags, configuration, terminal input, management retries, output, and executable E2E tests. Use authentication-client for the reusable portal login protocol.
中文简介正在准备中。当前显示原文说明。
Maintain or embed pkg/authclient for portal login, password/TOTP and API-key authentication, native credential transport, configuration parsing, and credential files. Covers authdbctl login wiring; management commands and the admin API have separate owners.
中文简介正在准备中。当前显示原文说明。
Maintain conditional authentication challenge policies, reusable authchal and user-transform FromDirectives parsers, safe claim substitution, GitHub ID/organization transforms, registered-factor inventory, passwordless WebAuthn selection, verified AMR access claims, and policy revalidation across portal login, refresh, OIDC, and direct authentication.
中文简介正在准备中。当前显示原文说明。
Maintain portal cookie configuration, reusable cookie directive parsing, common prefixes and explicit names, domain attributes, factory issuance/deletion, and cookie interoperability with OIDC, refresh, OAuth, and gatekeepers.
中文简介正在准备中。当前显示原文说明。
Maintain optional cross-device portal login, its directive parser, QR and polling UI, approving-browser binding, single-use transfers, MFA and provider evidence, logout invalidation, and TLS/browser tests.
中文简介正在准备中。当前显示原文说明。