Member Junction
    Preparing search index...

    Interface for authentication providers in MemberJunction Enables support for any OAuth 2.0/OIDC compliant provider

    interface IAuthProvider {
        audience: string;
        clientId?: string;
        issuer: string;
        jwksUri: string;
        name: string;
        extractUserInfo(payload: JwtPayload): AuthUserInfo;
        getSigningKey(header: JwtHeader, callback: SigningKeyCallback): void;
        matchesIssuer(issuer: string): boolean;
        validateConfig(): boolean;
    }

    Implemented by

    Index

    Properties

    audience: string

    The expected audience for tokens from this provider

    clientId?: string

    OAuth client ID for this provider (optional, used by OAuth proxy for upstream authentication)

    issuer: string

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

    jwksUri: string

    The JWKS endpoint URL for retrieving signing keys

    name: string

    Unique name identifier for this provider

    Methods

    • Gets the signing key for token verification

      Parameters

      • header: JwtHeader
      • callback: SigningKeyCallback

      Returns void