[Yanel-dev] Access Policy for anonymous

Michael Wechner michael.wechner at wyona.com
Wed Feb 5 09:15:41 EST 2020


Hi Balz

You should be able to do such checks programmatically, whereas see for 
example

http://www.yanel.org/en/documentation/security/access-policies.html

src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java

getPolicyManager().authorize(path, identity, usecase))

Hope that helps

Michael



Am 05.02.20 um 14:16 schrieb basZero:
> Hi,
>
> maybe someone quickly knows this, was looking for it now for 15min, 
> didn't find out how to do it:
>
> How can I execute an access-policy check and test whether an anonymous 
> user would have the rights for a certain usecase?
>
> So in my .policy file, I have some usecases that are open for 
> anonymous (world), some usecases are not open. I need to test it:
>
>   <usecase id="myusecase1">
>     <world permission="true"/>
>   </usecase>
>   <usecase id="myusecase2">
>     <world permission="false"/>
>   </usecase>
>
> How would you do that?
>
> Cheers, Balz



More information about the Yanel-development mailing list