Member Junction
    Preparing search index...

    Local development authentication provider (local).

    Validates short-lived RS256 development JWTs minted by MJAPI's local-only /auth/dev-login endpoint (backed by MJ's ephemeral MagicLinkKeyManager keypair and JWKS endpoint).

    SECURITY INVARIANT:

    • Strictly for local development (localhost / 127.0.0.1) when MJ_DEV_AUTH_ENABLED=true.
    • Must NEVER be enabled when NODE_ENV=production — ConfigFromEnvironment throws a fatal startup error if MJ_DEV_AUTH_ENABLED is truthy in production.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    audience: string

    The expected audience for tokens from this provider

    clientId?: string

    OAuth client ID for this provider (used by OAuth proxy for upstream auth)

    domain?: string

    Provider domain hosting the OAuth endpoints when they aren't on the issuer (used by OAuth proxy)

    issuer: string

    The issuer URL for this provider (must match the 'iss' claim in tokens)

    jwksClient: JwksClient
    jwksUri: string

    The JWKS endpoint URL for retrieving signing keys

    name: string

    Unique name identifier for this provider

    DEFAULT_AUDIENCE: "mj-local-dev" = 'mj-local-dev'

    Methods