Member Junction
    Preparing search index...

    Options for resolving GitHub authentication.

    interface ResolveGitHubAuthOptions {
        CompanyID?: string;
        ContextUser?: UserInfo;
        CredentialID?: string;
        CredentialName?: string;
        Env?: ProcessEnv;
        FetchImpl?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        Permissions?: GitHubInstallationPermissions;
        TargetRepository?: { owner: string; repo: string };
        UseUserDelegatedAuth?: boolean;
    }
    Index

    Properties

    CompanyID?: string

    Optional MJ Company ID to resolve via MJ: Company Integrations.

    ContextUser?: UserInfo

    Server-side user context for CredentialEngine audit logging and 3LO ownership checks.

    CredentialID?: string

    Optional explicit MJ Credential ID.

    CredentialName?: string

    Optional explicit MJ Credential Name.

    Env?: ProcessEnv

    Injectable environment object for testing.

    FetchImpl?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Injectable fetch implementation for deterministic unit testing of token minting.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    Requested GitHub App installation permissions (defaults to DEFAULT_GITHUB_WRITE_PERMISSIONS).

    TargetRepository?: { owner: string; repo: string }

    Target repository (owner/repo) to scope minted GitHub App tokens and validate allowlists.

    UseUserDelegatedAuth?: boolean

    When true, resolves the calling user's personal 3LO OAuth token (UserOAuth3LO:GitHub:<userId>).