iya-sts
    Preparing search index...
    setPolicy: (
        roleName: string,
        source: { alfa?: string; document?: string },
        options?: { actor?: string },
    ) => EligibilityResult = ...

    Type Declaration

      • (
            roleName: string,
            source: { alfa?: string; document?: string },
            options?: { actor?: string },
        ): EligibilityResult
      • Writes a dynamic role's eligibility policy.

        Parameters

        • roleName: string

          the role's name

        • source: { alfa?: string; document?: string }

          document (XACML XML) or alfa (ALFA text), one of them

        • Optionaloptions: { actor?: string }

          actor

        Returns EligibilityResult

        { ok, policy, created }, or a refusal: no such role (STS-XACML-0311), a static role (0312), neither or both sources (0321), ALFA that does not parse (STS-XACML-0037), a document the store refused (its code), a reference the role would not take (0322)