iya-sts
    Preparing search index...

    Variable claimFor

    claimFor: (who: any) => {} = claimFor

    Type Declaration

      • (who: any): {}
      • Builds the roles claim for a token or assertion: the configured roles the party holds, under roles.claimName.

        Built-in roles are never carried, and a party with no configured role gets no claim at all.

        Parameters

        • who: any

          the security context, as for rolesOf()

        Returns {}

        { <claimName>: [roles] }, or null when the claim is off, empty or the register failed