iya-sts
    Preparing search index...
    usernameFor: (
        record: RelationshipLike,
        flat: Record<string, string[]>,
        subject?: unknown,
    ) => UsernameChoice = ...

    Forwards to FederationMap.usernameFor() on the installed instance.

    Type Declaration

      • (
            record: RelationshipLike,
            flat: Record<string, string[]>,
            subject?: unknown,
        ): UsernameChoice
      • Chooses the confirm-lookup name, and the name any-existing matches: from fedUsernameSource or the subject, a urn:uuid: subject as sub-<uuid>, every other value through identityKeyOf(), then federation.usernamePrefix when one is set.

        An entry a sign-in creates is not this name. That uid is <relationship>~<subject> (FederationLinks.provisionedName()), and the prefix is not applied to it. A configured source the assertion did not carry falls back to the subject, with a warning.

        Parameters

        • record: RelationshipLike

          the federation relationship

        • flat: Record<string, string[]>

          the flattened incoming values

        • Optionalsubject: unknown

          the subject the protocol carried

        Returns UsernameChoice

        { username, raw, from, prefixed }