iya-sts
    Preparing search index...

    Class export=

    Reads a remote PEP's DPoP-bound access token (#1827's follow-up).

    Index
    • Builds the reader over its dependencies.

      Parameters

      • deps: PepTokenDeps

        the logger, helpers, mutual TLS, the PIP and the lazy OAuth loader

      Returns export=

    PEP_CLIENT: "sts-remote-pep" = PEP_CLIENT

    The module's PEP_CLIENT.

    • Whether a request presents a token this realm issued to the remote PEP's client — the question the AuthZEN door asks before it decides which of its doors a token goes through. Nothing else is checked.

      Parameters

      • req: any

        the request

      Returns boolean

      true for a verified token whose client_id is sts-remote-pep

    • Reads a remote PEP's token for one door: the five steps in the file's header. Never writes a response.

      Parameters

      • req: any

        the request

      • want: PepTokenWant

        { path, scope }: the door's path and scope

      Returns PepTokenResult

      the result; ok with dn, username and jkt, or a reason and a description

    • Whether a token's audiences name the realm's door, with or without the trailing slash a permission base adds.

      Parameters

      • claims: any

        the token's claims

      • base: string

        the realm's base URL

      • path: string

        the door's path

      Returns boolean

      true when one does

    • The dependencies built from the real modules.

      Returns PepTokenDeps

      the dependencies

    • The token a request presents in Authorization, and its scheme.

      Parameters

      • req: any

        the request

      Returns { scheme: string; token: string }

      { token, scheme }, both '' when there is none