Hi All,

This is an issue with entitlement  component. You can find issue[1] and
PR[2].

[1] https://wso2.org/jira/browse/IDENTITY-6648
[2] https://github.com/wso2/carbon-identity-framework/pull/1112

Best Regards
Isuranga Perera

On Sat, Oct 7, 2017 at 5:53 PM, Farasath Ahamed <farasa...@wso2.com> wrote:

> How did you try to use the function you registered?
> Can you provide a sample?
>
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 <https://twitter.com/farazath619>
> <http://wso2.com/signature>
>
>
>
> On Thu, Oct 5, 2017 at 7:20 PM, Isuranga Perera <isurangamper...@gmail.com
> > wrote:
>
>> Hi All,
>>
>> I'm trying to introduce a new XACML function in IS 5.3. This is the
>> procedure I followed so far.
>>
>>    - Create the new class by extending the *FunctionBase* abstract class.
>>    - Created a jar file and copied it into
>>    *<IS_HOME>/repository/components/lib* directory
>>    - Created "balana-config.xml" file with the following content and
>>    copied it into *<IS_HOME>/repository/conf/security*
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>> *<conf defaultPDP="pdp"
>> defaultAttributeFactory="attr" defaultCombiningAlgFactory="comb"
>> defaultFunctionFactory="func"> <pdp name="pdp">     <attributeFinderModule
>> class="org.wso2.balana.finder.impl.CurrentEnvModule"/>
>>  <attributeFinderModule
>> class="org.wso2.balana.finder.impl.SelectorModule"/> </pdp> <attributeFactory
>> name="attr" useStandardDatatypes="true"/> <functionFactory name="func"
>> useStandardFunctions="true">     <condition>         <function
>> class="org.wso2.xacml.permissions.PermissionEvalFunction"/>
>>  </condition> </functionFactory> <combiningAlgFactory name="comb"
>> useStandardAlgorithms="true" /></config>*
>>
>>    - Set property
>>
>>    *PDP.Balana.Config.Enable=true *in
>>    *<IS_HOME>/repository/conf/identity/entitlement.properties*
>>
>> But when I tried to use that functionId in a policy it throws an
>> Exception saying functionId doesn't exist. It seems even my config file is
>> not parsed.
>> Appreciate any help.
>>
>> Best Regards,
>> Isuranga Perera
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to