admin

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MPL-2.0 Imports: 15 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.

README

Identity administration

identity/admin.New(service) supplies the Identity-owned account forms and English/Persian catalogs to the shared Admin shell. The surface uses public Identity operations; its navigation, per-account permissions, exact decimal revision preconditions and unknown-create reconciliation retain their existing boundaries. Identity owns account and session behavior; selecting a UI language grants no permission and changes no account data.

The surface registers message references in the identity domain and its embedded catalog data through Surface.Catalogs. The shell composes those catalogs once at construction with its own and the product's installed catalogs. Templates use the request-local Request.Localizer; the browser uses the shared plain-data formatter. Translations remain ordinary escaped text. Products can supply another locale's identity messages through Config.Catalogs and select the installed locale without copying these forms or changing this package.

Follow the localization and migration guide for the data format, English fallback, explicit reload and product-owned locale policy. This package remains part of the independently versioned Identity component; its Admin dependency must belong to the reviewed compatible set. Product adoption, rebuild and deployment are separate actions.

Failure and diagnostic contract

The bounded JSON decoder distinguishes malformed/type/range/unknown-field input, a body-size limit, transport I/O and first/trailing body timeout. Safe field and reason values describe the failed precondition; request bodies, passwords and arbitrary JSON keys are never included. A pre-Service timeout returns request_timeout with HTTP 408 and outcome: "not_executed"; unsupported read deadlines and body I/O failure remain unavailable but also prove non-execution. A timeout returned after Service dispatch carries no such claim. Original operational causes reach Request.Diagnose before public conversion.

Permission hints use Request.CheckAllowed. Failure to check hints after account creation preserves the successful response and exact account identity, disables all unverified actions and sets warning: "permissions_unavailable"; it never converts that successful write into an ambiguous failure. Template failures are already recorded by the shell, and admin.ErrResponseDelivery prevents a second fallback response after writing has begun. The shared browser explains wrong credentials separately from an expired session and preserves exact-login reconciliation without automatically retrying a write.

Documentation

Overview

SPDX-License-Identifier: MPL-2.0 Package admin owns Identity's account-management presentation. It consumes only the public Identity Service/Web contracts; storage and credentials stay Identity-owned.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticator

func Authenticator(web *identity.Web) (shell.Authenticator, error)

Authenticator adapts error categories only. Identity.Web still validates the existing cookie/CSRF session and returns a principal with no permission grant.

func New

func New(service *identity.Service) (shell.Surface, error)

New registers actual Identity-owned forms. Account enumeration is not offered; operators use an opaque ID or separately authorized exact-login reconciliation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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