<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 26, 2014 at 4:20 PM, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On 2014-05-26, Matthias Wessendorf wrote:<br>

&gt; On Mon, May 26, 2014 at 2:10 PM, Bruno Oliveira &lt;<a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; Good morning peeps, after the latest change[1] correct me if I&#39;m wrong. But<br>
&gt; &gt; I think KC and UPS will do pretty much what we need.<br>
&gt; &gt;<br>
&gt; &gt; We have a push admin and the super user on KC side enabled. Let me know<br>
&gt; &gt; if that is what you need and I will take a look at viewer role.<br>
&gt; &gt;<br>
&gt;<br>
&gt; One thing that I noticed: when I login as &#39;admin&#39;, I don&#39;t see the<br>
&gt; applications created by &#39;user&#39;<br>
&gt; I think with that change, the &#39;admin&#39; is the overall Keycloak-Admin.<br>
<br>
</div>With the recent changes we have 2 admins:<br>
<br>
- KC admin<br>
- UPS admin<br>
<br>
I think the UPS admin should have the visibility of all applications<br>
created, right? I will look at this.<br></blockquote><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">* super-user: in charge of managing the UPS realm (including users); can see _ALL_ push applications  (that&#39;s the &#39;admin&#39; in Sebi&#39;s older gist)</div>
<div style="font-family:arial,sans-serif;font-size:13px">* PushAdmin: Someone that can manage applications and variants, but is not able to add new users; he also sees only his applications/variants etc (that&#39;s the &#39;developer&#39; in sebisolder  gist)</div>
</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><br>
&gt;<br>
&gt;<br>
&gt; I had a chat w/ Stian in the past, for the above mentioned<br>
&gt; &quot;super-user&quot; (which is leveraging the Keycloak realm) Stian and I were<br>
&gt; thinking of a &quot;Super User&quot;, that simply has not all permissions. For<br>
&gt; instance, it would have:<br>
&gt; * AdminRoles.VIEW_USERS<br>
&gt; * AdminRoles.MANAGE_USERS<br>
&gt;<br>
&gt; But it would not have the &quot;AdminRoles.ADMIN&quot; role. As we don&#39;t need to have<br>
&gt; that guy/super-user being able to create realms or other applications, just<br>
&gt; the &quot;user access&quot; items.<br>
&gt;<br>
&gt; I guess that&#39;s why we did see the &#39;remove()&#39; before<br>
<br>
</div>I understand the permission scope restriction for KC admin<br>
(aka super-user). But if we remove the admin, how could you login to manage<br>
users/roles?<br></blockquote><div><br></div><div>The &quot;super-admin&quot; would be still able to manage the realm, but he would be no longer a &#39;real&#39; KC admin, by removing the &#39;AdminRoles.ADMIN&#39; role, that&#39;s what Stian and I were talking in the past.</div>
<div>Perhaps he can say a bit more</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class=""><div class="h5"><br>
&gt;<br>
&gt; -Matthias<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; [1] -<br>
&gt; &gt;<br>
&gt; &gt; <a href="https://github.com/aerogear/aerogear-unifiedpush-server/commit/3e118b1c758493942ef2a00e1541302a03e5519c" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/commit/3e118b1c758493942ef2a00e1541302a03e5519c</a><br>

&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On 2014-05-21, Matthias Wessendorf wrote:<br>
&gt; &gt; &gt; Just a thought... regarding those two roles &#39;PushAdmin&#39; and &#39;Super-User&#39;,<br>
&gt; &gt; &gt; IMO the Super-user should be able to see all apps (and their variants,<br>
&gt; &gt; &gt; including registered devices).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Wed, May 21, 2014 at 2:55 PM, Bruno Oliveira &lt;<a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Thank you Matthias, I will look at it and return back with more<br>
&gt; &gt; &gt; &gt; questions if necessary.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On 2014-05-21, Matthias Wessendorf wrote:<br>
&gt; &gt; &gt; &gt; &gt; Hello,<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; yes - the handling is done by Keycloak itself; Last time we looked at<br>
&gt; &gt; &gt; &gt; user<br>
&gt; &gt; &gt; &gt; &gt; management, we had the following in terms of roles:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; <a href="https://gist.github.com/sebastienblanc/6547605" target="_blank">https://gist.github.com/sebastienblanc/6547605</a><br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Not sure the names of these roles are great.... let&#39;s see<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Basically I think the role definition in the gist still addresses<br>
&gt; &gt; most of<br>
&gt; &gt; &gt; &gt; &gt; what we want to archive:<br>
&gt; &gt; &gt; &gt; &gt; * super-user: in charge of managing the UPS realm (including users);<br>
&gt; &gt; can<br>
&gt; &gt; &gt; &gt; &gt; see _ALL_ push applications  (that&#39;s the admin in Sebi&#39;s gist)<br>
&gt; &gt; &gt; &gt; &gt; * PushAdmin: Someone that can manage applications and variants, but<br>
&gt; &gt; is<br>
&gt; &gt; &gt; &gt; not<br>
&gt; &gt; &gt; &gt; &gt; able to add new users; he also sees only his applications/variants<br>
&gt; &gt; etc<br>
&gt; &gt; &gt; &gt; &gt; (that&#39;s the developer in sebis gist)<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; The gist also contains a &#39;Viewer&#39; role - At this point I am not sure<br>
&gt; &gt; we<br>
&gt; &gt; &gt; &gt; do<br>
&gt; &gt; &gt; &gt; &gt; really need this. My impression is that if we have PushAdmins for our<br>
&gt; &gt; &gt; &gt; 1.0.0<br>
&gt; &gt; &gt; &gt; &gt; community release that will be enough.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; -Matthias<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; On Tue, May 20, 2014 at 10:02 PM, Bruno Oliveira &lt;<br>
&gt; &gt; <a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a><br>
&gt; &gt; &gt; &gt; &gt;wrote:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; Good morning peeps,<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; Before I jump in <a href="https://issues.jboss.org/browse/AGPUSH-639" target="_blank">https://issues.jboss.org/browse/AGPUSH-639</a>. I<br>
&gt; &gt; would<br>
&gt; &gt; &gt; &gt; &gt; &gt; like to understand what do you guys want say with this issue.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; Currently Keycloak already has its own user/roles managements.<br>
&gt; &gt; What do<br>
&gt; &gt; &gt; &gt; &gt; &gt; you guys are looking for? Any specific requirements?<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; abstractj<br>
&gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
&gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; &gt; &gt; &gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt; Matthias Wessendorf<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; &gt; &gt; &gt; &gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; &gt; &gt; &gt; &gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
&gt; &gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; &gt; &gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; abstractj<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
&gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; &gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Matthias Wessendorf<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; &gt; &gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; &gt; &gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; aerogear-dev mailing list<br>
&gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; abstractj<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; aerogear-dev mailing list<br>
&gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
<br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
--<br>
<br>
abstractj<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>