iya-sts
    Preparing search index...
    issuerWithin: (issuer: string, peer: string) => boolean = FederationSp.issuerWithin

    FederationSp.issuerWithin() (#930): the parsed bound a WebFinger issuer is held to.

    Type Declaration

      • (issuer: string, peer: string): boolean
      • Says whether an issuer lies within a configured one (#930): the bound a WebFinger answer is held to. A PARSED comparison, never a string prefix — https://op.example must not admit https://op.example.evil .com, https://op.example:8443 or https://op.example@evil. Both must parse, as https (http only where the configured one is http, which an administrator wrote), with no userinfo; the scheme, the host (case-insensitively) and the effective port must be identical; the issuer may carry no query or fragment; and its path must be the configured one's or extend it at a / boundary, one trailing slash on either side ignored — /tenant admits /tenant/a and not /tenant2.

        Parameters

        • issuer: string

          the issuer found

        • peer: string

          the issuer configured (fedPeer)

        Returns boolean

        whether the first lies within the second