Member Junction
    Preparing search index...

    AWS Cognito authentication provider implementation

    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

    Methods

    • Configures Amazon Cognito from COGNITO_USER_POOL_ID + COGNITO_CLIENT_ID + AWS_REGION.

      Mapping preserved byte-for-byte from the env block that previously lived in MJServer's config, plus the optional COGNITO_DOMAIN — the hosted-UI domain, which is the only place Cognito serves /oauth2/authorize and /oauth2/token. Token validation doesn't need it; anything that initiates a Cognito login does. Same env var name and host-only form MJExplorer already uses.

      Parameters

      • env: ProcessEnv

      Returns AuthProviderConfig