Claim Rule Errors RRS feed

  • Question

  • Hello,

    i am trying to make two claim rules which generates fullnames. one with a title and one without (if its empty). so iam trying the following:

    @RuleName = "Vor und Nachname und Titel in einem Feld"<u5:p></u5:p>

    c1:[Type == "schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"]<u5:p></u5:p>

    && c2:[Type == "schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"]<u5:p></u5:p>

    && c3:[Type == "schemas.xmlsoap.org/ws/2005/05/identity/claims/title"]<u5:p></u5:p>

    => issue(Type = "schemas.xmlsoap.org/ws/2005/05/identity/claims/CommonName", Value = c3.Value  + “  “ +c1.Value + "  " + c2.Value);

    <u5:p>--> throws an POLICY0029: Unexpeteced input Exception in the last line.</u5:p>

    @RuleName = "Vor und Nachname in einem Feld"<u5:p></u5:p>

    NOT EXISTS c3:[Type == "schemas.xmlsoap.org/ws/2005/05/identity/claims/title"]<u5:p></u5:p>

    &&c1:[Type == "schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"]<u5:p></u5:p>

    && c2:[Type == "schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"]<u5:p></u5:p>

    => issue(Type = "schemas.xmlsoap.org/ws/2005/05/identity/claims/CommonName", Value = c1.Value + "  " + c2.Value);<u5:p></u5:p>


    <u5:p>--> thows an POLICY0030 Error: Unexpetced identifier. i guess i have to use brackets for the "NOT EXISTS" Statement right?</u5:p>


    I think that will be really simple errors, but i have no test envoirement. 

    Would be great to get some hints

    Best regards

    Thursday, October 31, 2019 10:23 AM