auth.provider API
    Preparing search index...

    Interface ContributesMap<Deps>

    Declaration-merged map of contribution kinds.

    Per A2-α §4.1 the v0.5.0 baseline declares 7 kinds. A5 (Phase 7) adds federationRedirectPolicies via declare module augmentation in the session package; consumer plugins may add custom kinds the same way.

    Per A2-α §4.5 collision policy:

    • Name-keyed (grants, federations, tokenExchangeValidators, mfaFactors): throw on duplicate at boot (enforced in Phase 4 / A2-β).
    • List-shaped (auditHooks, routes, grantPolicyHooks): allow duplicates; routes additionally throw on duplicate id / undecorated-mountPath collisions.

    Per A2-α §4.2 every contribution factory shares the declaring module's top-level requires / optional typed Deps object — there is no per-contribution dep declaration.

    interface ContributesMap<Deps = ProviderDeps<never, never>> {
        auditHooks?: readonly AuditHookFactory<Deps>[];
        federations?: { readonly [name: string]: FederationFactory<Deps> };
        grantPolicyHooks?: readonly GrantPolicyHookFactory<Deps>[];
        grants?: { readonly [grantType: string]: GrantFactory<Deps> };
        mfaFactors?: { readonly [kind: string]: MfaFactorFactory<Deps> };
        routes?: readonly RouteContributionEntry<Deps>[];
        tokenExchangeValidators?: {
            readonly [tokenType: string]: ExchangeTokenValidatorFactory<Deps>;
        };
    }

    Type Parameters

    Index

    Properties

    auditHooks?: readonly AuditHookFactory<Deps>[]
    federations?: { readonly [name: string]: FederationFactory<Deps> }
    grantPolicyHooks?: readonly GrantPolicyHookFactory<Deps>[]
    grants?: { readonly [grantType: string]: GrantFactory<Deps> }
    mfaFactors?: { readonly [kind: string]: MfaFactorFactory<Deps> }
    routes?: readonly RouteContributionEntry<Deps>[]
    tokenExchangeValidators?: {
        readonly [tokenType: string]: ExchangeTokenValidatorFactory<Deps>;
    }