Re: [Dev] [IS][XACML] Introducing a Custom functionId

2017-10-09 Thread Isuranga Perera
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  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 
> 
>
>
>
> On Thu, Oct 5, 2017 at 7:20 PM, Isuranga Perera  > 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
>>*/repository/components/lib* directory
>>- Created "balana-config.xml" file with the following content and
>>copied it into */repository/conf/security*
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>> *> defaultAttributeFactory="attr" defaultCombiningAlgFactory="comb"
>> defaultFunctionFactory="func">  > class="org.wso2.balana.finder.impl.CurrentEnvModule"/>
>>  > class="org.wso2.balana.finder.impl.SelectorModule"/>  > name="attr" useStandardDatatypes="true"/> > useStandardFunctions="true">  > class="org.wso2.xacml.permissions.PermissionEvalFunction"/>
>>> useStandardAlgorithms="true" />*
>>
>>- Set property
>>
>>*PDP.Balana.Config.Enable=true *in
>>*/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


Re: [Dev] [IS][XACML] Introducing a Custom functionId

2017-10-07 Thread Farasath Ahamed
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 




On Thu, Oct 5, 2017 at 7:20 PM, Isuranga Perera 
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
>*/repository/components/lib* directory
>- Created "balana-config.xml" file with the following content and
>copied it into */repository/conf/security*
>
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
> * defaultAttributeFactory="attr" defaultCombiningAlgFactory="comb"
> defaultFunctionFactory="func">   class="org.wso2.balana.finder.impl.CurrentEnvModule"/>
>   class="org.wso2.balana.finder.impl.SelectorModule"/>   name="attr" useStandardDatatypes="true"/>  useStandardFunctions="true">   class="org.wso2.xacml.permissions.PermissionEvalFunction"/>
> useStandardAlgorithms="true" />*
>
>- Set property
>
>*PDP.Balana.Config.Enable=true *in
>*/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


Re: [Dev] [IS][XACML] Introducing a Custom functionId

2017-10-06 Thread Johann Nallathamby
Will someone be able to shed some light on this issue sooner than later,
because Isuranga is trying to contribute a useful feature to WSO2 IS, which
is discussed in [1].

[1] [IAM] Restful API to Evaluate Permission Tree in IS

Regards,
Johann.

On Thu, Oct 5, 2017 at 7:22 PM, Johann Nallathamby  wrote:

> *[+Asela, IAM Team]*
>
> On Thu, Oct 5, 2017 at 7:20 PM, Isuranga Perera  > 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
>>*/repository/components/lib* directory
>>- Created "balana-config.xml" file with the following content and
>>copied it into */repository/conf/security*
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>> *> defaultAttributeFactory="attr" defaultCombiningAlgFactory="comb"
>> defaultFunctionFactory="func">  > class="org.wso2.balana.finder.impl.CurrentEnvModule"/>
>>  > class="org.wso2.balana.finder.impl.SelectorModule"/>  > name="attr" useStandardDatatypes="true"/> > useStandardFunctions="true">  > class="org.wso2.xacml.permissions.PermissionEvalFunction"/>
>>> useStandardAlgorithms="true" />*
>>
>>- Set property
>>
>>*PDP.Balana.Config.Enable=true *in
>>*/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
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Senior Lead Solutions Engineer
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Lead Solutions Engineer
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][XACML] Introducing a Custom functionId

2017-10-05 Thread Johann Nallathamby
*[+Asela, IAM Team]*

On Thu, Oct 5, 2017 at 7:20 PM, Isuranga Perera 
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
>*/repository/components/lib* directory
>- Created "balana-config.xml" file with the following content and
>copied it into */repository/conf/security*
>
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
> * defaultAttributeFactory="attr" defaultCombiningAlgFactory="comb"
> defaultFunctionFactory="func">   class="org.wso2.balana.finder.impl.CurrentEnvModule"/>
>   class="org.wso2.balana.finder.impl.SelectorModule"/>   name="attr" useStandardDatatypes="true"/>  useStandardFunctions="true">   class="org.wso2.xacml.permissions.PermissionEvalFunction"/>
> useStandardAlgorithms="true" />*
>
>- Set property
>
>*PDP.Balana.Config.Enable=true *in
>*/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
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Lead Solutions Engineer
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS][XACML] Introducing a Custom functionId

2017-10-05 Thread Isuranga Perera
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
   */repository/components/lib* directory
   - Created "balana-config.xml" file with the following content and copied
   it into */repository/conf/security*


>
>
>
>
>
>
>
>
>
>
>
>
>
*  
  
   *

   - Set property

   *PDP.Balana.Config.Enable=true *in
   */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