Cotal TypeScript packages
    Preparing search index...

    Interface UserAuthInfo

    Non-secret user-auth metadata on a MeshEntry. TRUST PINS and CONVENIENCE ENDPOINTS are deliberately separate fields: idp is what the operator pinned at up --user-auth time (the login/exchange trust config — error messages and login guidance use THIS); endpoints is where the local auth service happened to bind (runtime, may change across restarts, re-recorded by up). Nothing here is ever taken from a presented token or an unauthenticated response.

    interface UserAuthInfo {
        endpoints?: {
            agentProvisioningUrl?: string;
            managerAuthorityUrl?: string;
            url?: string;
        };
        idp: { audience: string; issuer: string; url: string };
        provider: string;
        remote?: true;
        sentinelCredsPath?: string;
    }
    Index
    endpoints?: {
        agentProvisioningUrl?: string;
        managerAuthorityUrl?: string;
        url?: string;
    }

    The auth service's exchange/JWKS base URL. For a LOCAL entry this is convenience, not trust (the service re-records it on every up). For a REMOTE entry (UserAuthInfo.remote) it is a STATED TRUST POSITION: the operator pinned it at registration — there is no local up to re-derive it from — and registration verified it answers /health + /jwks with the pinned issuer. Required when remote is set; assertUserAuthInfo enforces that. agentProvisioningUrl is the deployment's remote agent-provisioning endpoint (U6) when it advertises one — where cotal spawn POSTs the login bearer to mint a managed agent in the owner's envelope. Optional: a mesh without one has no self-service remote spawn.

    idp: { audience: string; issuer: string; url: string }

    The pinned IdP: the login target (cotal login --idp <url>) + exact issuer/audience pins.

    provider: string

    The registered auth provider's name (registry key, e.g. "cotal").

    remote?: true

    Present and true when this entry was registered for a mesh running elsewhere (cotal meshes add --mode user): its pins were SUPPLIED (bundle or discovery document), not established by a local cotal up --user-auth, so nothing on this machine can re-derive them and no local service re-records the endpoints.

    sentinelCredsPath?: string

    Path to the 0600 file holding the sentinel creds for a remote entry — the PATH, never the blob: this registry file is echoed by cotal meshes and status, so inline secret material would land on the operator's screen and in every copy of the record. The file lives under the entry's own root (its space-scoped user-auth state dir).