[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    Re: [Dev] [CARBON] [BPS] Getting permission array from AuthorizationManager not working for admin ro
From:       Milinda Perera <milindap () wso2 ! com>
Date:       2016-07-29 9:55:51
Message-ID: CANu4UTSXjfncnFtX+5sxxRi0VqHLM19BTwwPqNZ=3GzgiNhZ+Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all,

Similar problem exists with tenants also with jaggery[1] (since same used
in jaggery extentions). But that won't get working even after adding a new
roles for tenants.

[1] mail: [Jaggerry][BPS] Check user permission using jaggery user.User not
working for tenants

Thanks,
Milinda

On Fri, Jul 29, 2016 at 3:01 PM, Thusitha Thilina Dayaratne <
thusithad@wso2.com> wrote:

> Adding IS guys
> 
> On Fri, Jul 29, 2016 at 3:00 PM, Vinod Kavinda <vinod@wso2.com> wrote:
> 
> > Hi Team,
> > Any idea on this?
> > 
> > Regards,
> > Vinod
> > 
> > On Fri, Jul 29, 2016 at 12:15 PM, Vinod Kavinda <vinod@wso2.com> wrote:
> > 
> > > Hi,
> > > I'm trying to do $subject using getAllowedUIResourcesForUser() method.
> > > When only the admin role exists in the system, it always returns an empty
> > > array. It works fine after adding another role.
> > > 
> > > I'm using the following code block for this.
> > > 
> > > UserRealm userRealm = BPMNOSGIService.getUserRealm();
> > > String[] permissionArray =
> > > userRealm.getAuthorizationManager().getAllowedUIResourcesForUser(username,"/permission/admin/manage");
> > >  
> > > Am I missing something here? Is this a known bug?
> > > 
> > > Regards,
> > > Vinod
> > > 
> > > Vinod Kavinda
> > > Software Engineer
> > > *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
> > > Mobile : +94 (0) 712 415544
> > > Blog : http://soatechflicks.blogspot.com/
> > > [image: http://wso2.com/signature]
> > > <http://wso2.com/signature>
> > > 
> > > 
> > 
> > 
> > --
> > Vinod Kavinda
> > Software Engineer
> > *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
> > Mobile : +94 (0) 712 415544
> > Blog : http://soatechflicks.blogspot.com/
> > [image: http://wso2.com/signature]
> > <http://wso2.com/signature>
> > 
> > 
> 
> 
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
> 
> Mobile  +94712756809
> Blog      alokayasoya.blogspot.com
> About    http://about.me/thusithathilina
> <http://wso2.com/signature>
> 
> 


-- 
Milinda Perera
Senior Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032


[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div>Hi all,<br><br></div>Similar problem exists with \
tenants also with jaggery[1] (since same used in jaggery extentions). But that \
won&#39;t get working even after adding a new roles for tenants.<br><br>[1] mail: \
[Jaggerry][BPS] Check user permission using jaggery user.User not working for \
tenants<br><br></div>Thanks,<br></div>Milinda<br></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 29, 2016 at 3:01 PM, \
Thusitha Thilina Dayaratne <span dir="ltr">&lt;<a href="mailto:thusithad@wso2.com" \
target="_blank">thusithad@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Adding IS guys</div><div \
class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Jul 29, \
2016 at 3:00 PM, Vinod Kavinda <span dir="ltr">&lt;<a href="mailto:vinod@wso2.com" \
target="_blank">vinod@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Team,<div>Any idea on \
this?</div><div><br></div><div>Regards,</div><div>Vinod</div></div><div \
class="gmail_extra"><div><div><br><div class="gmail_quote">On Fri, Jul 29, 2016 at \
12:15 PM, Vinod Kavinda <span dir="ltr">&lt;<a href="mailto:vinod@wso2.com" \
target="_blank">vinod@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<div>I&#39;m trying to do $subject  using \
getAllowedUIResourcesForUser() method. When only the admin role exists in the system, \
it always returns an empty array. It works fine after adding another role.<br \
clear="all"><div><br></div><div>I&#39;m using the following code block for \
this.</div><div><br></div><font face="monospace, monospace">UserRealm userRealm = \
BPMNOSGIService.getUserRealm();<br>String[] permissionArray = \
userRealm.getAuthorizationManager().getAllowedUIResourcesForUser(username,&quot;/permission/admin/manage&quot;);</font></div><div><span \
style="font-family:monospace,monospace"><br></span></div><div><font face="arial, \
helvetica, sans-serif">Am I missing something here? Is this a known \
bug?</font></div><div><font face="arial, helvetica, \
sans-serif"><br></font></div><div><font face="arial, helvetica, \
sans-serif">Regards,</font></div><div><font face="arial, helvetica, \
sans-serif">Vinod</font></div><span><font color="#888888"><div><span \
style="font-family:monospace,monospace"><br></span></div><div><div><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr"><font color="#888888">Vinod Kavinda</font><br><div><font face="arial, \
helvetica, sans-serif"><font color="#999999">Software Engineer</font><font \
style="font-weight:bold" color="#000000">  </font></font></div><div><b \
style="font-size:12.8px;color:rgb(0,0,0);background-color:rgb(245,245,245)"><a \
href="http://www.wso2.com" target="_blank">WSO2 Inc. - lean . enterprise . middleware \
</a>.</b></div><div style="color:rgb(136,136,136)">Mobile :  <a \
href="tel:%2B94%20%280%29%20712%20415544" value="+94773451194" \
style="color:rgb(17,85,204)" target="_blank">+94 (0) 712 415544</a></div><div \
style="color:rgb(136,136,136)">Blog :  \
<a>http://soatechflicks.blogspot.com/</a></div><div style="color:rgb(136,136,136)"><a \
href="http://wso2.com/signature" target="_blank"><img \
src="http://c.content.wso2.com/signatures/wso2-signature-general.png" \
alt="http://wso2.com/signature"><br></a></div><div \
style="color:rgb(136,136,136)"><br></div></div></div></div></div></div></div></div></div></div>
 </div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><span><div \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><font color="#888888">Vinod \
Kavinda</font><br><div><font face="arial, helvetica, sans-serif"><font \
color="#999999">Software Engineer</font><font style="font-weight:bold" \
color="#000000">  </font></font></div><div><b \
style="font-size:12.8000001907349px;color:rgb(0,0,0);background-color:rgb(245,245,245)"><a \
href="http://www.wso2.com" target="_blank">WSO2 Inc. - lean . enterprise . middleware \
</a>.</b></div><div style="color:rgb(136,136,136)">Mobile :  <a \
href="tel:%2B94%20%280%29%20712%20415544" value="+94773451194" \
style="color:rgb(17,85,204)" target="_blank">+94 (0) 712 415544</a></div><div \
style="color:rgb(136,136,136)">Blog :  \
<a>http://soatechflicks.blogspot.com/</a></div><div style="color:rgb(136,136,136)"><a \
href="http://wso2.com/signature" target="_blank"><img \
src="http://c.content.wso2.com/signatures/wso2-signature-general.png" \
alt="http://wso2.com/signature"><br></a></div><div \
style="color:rgb(136,136,136)"><br></div></div></div></div></div></div></div></div></div></div>
 </span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span \
class="HOEnZb"><font color="#888888">-- <br><div \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
style="font-size:12.8000001907349px"><div><font color="#444444">Thusitha \
Dayaratne</font></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px">Software \
Engineer</span></div><div><span \
style="font-size:12.8000001907349px;color:rgb(136,136,136)">WSO2 Inc. - lean . \
enterprise . middleware |    </span><a href="http://wso2.com/" \
style="font-size:12.8000001907349px;color:rgb(17,85,204)" \
target="_blank">wso2.com</a><br></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px"><br></span></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px">Mobile   <a \
href="tel:%2B94712756809" value="+94712756809" \
target="_blank">+94712756809</a></span><br></div></div><div><font \
style="font-size:12.8000001907349px" color="#999999">Blog         </font><font \
color="#999999"><a href="http://alokayasoya.blogspot.com" \
target="_blank">alokayasoya.blogspot.com</a></font></div><div><font \
color="#999999">About </font>     <a href="http://about.me/thusithathilina" \
target="_blank">http://about.me/thusithathilina</a></div><div><a \
href="http://wso2.com/signature" target="_blank"><img \
src="http://c.content.wso2.com/signatures/wso2-signature-general.png" height="96" \
width="420"></a><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div>
 </font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span><font \
color="#888888"><span><font>Milinda Perera<br>Senior Software Engineer; <br>WSO2 Inc. \
<a href="http://wso2.com" target="_blank">http://wso2.com</a> \
,<br></font></span></font></span></div><span><font \
color="#888888"><span><font>Mobile: (+94) 714 115 \
032<br><br></font></span></font></span></div></div></div></div> </div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic