<div dir="ltr">Ok, I'll give that a try.<div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-16 12:47 GMT+02:00 Stian Thorgersen <span dir="ltr"><<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, at least that's what I'd do<br>
<span class="im HOEnZb"><br>
----- Original Message -----<br>
> From: "Thorsten" <<a href="mailto:thorsten315@gmx.de">thorsten315@gmx.de</a>><br>
</span><div class="HOEnZb"><div class="h5">> To: "Stian Thorgersen" <<a href="mailto:stian@redhat.com">stian@redhat.com</a>><br>
> Cc: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> Sent: Thursday, April 16, 2015 11:36:36 AM<br>
> Subject: Re: [keycloak-user] Get user roles in AngularJS from WildFly adapter<br>
><br>
> So do I need to create two applications for the realm then? One for the<br>
> JAX-RS part with "Access Type" of "Bearer Only" and one for the Angular UI<br>
> with type "Public"?<br>
><br>
> 2015-04-16 11:18 GMT+02:00 Stian Thorgersen <<a href="mailto:stian@redhat.com">stian@redhat.com</a>>:<br>
><br>
> ><br>
> ><br>
> > ----- Original Message -----<br>
> > > From: "Thorsten" <<a href="mailto:thorsten315@gmx.de">thorsten315@gmx.de</a>><br>
> > > To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> > > Sent: Thursday, April 16, 2015 11:05:46 AM<br>
> > > Subject: [keycloak-user] Get user roles in AngularJS from WildFly adapter<br>
> > ><br>
> > > I have a WAR application that packages some JAX-RS services and an<br>
> > AngularJS<br>
> > > UI talking to them. No classic HTML/JSF stuff at all.<br>
> > ><br>
> > > The app is running on WildFly and the Keycloak adapter with<br>
> > authentication is<br>
> > > already working and I can e.g. secure the JAX-RS endpoints with<br>
> > > @RolesAllowed etc.<br>
> > ><br>
> > > My question is now what the recommended way is to get user role<br>
> > information<br>
> > > in the AngularJS part of the app? Since the authentication is not done<br>
> > in JS<br>
> > > I don't think keycloak.js would work? Can/should the keycloak.js adapter<br>
> > get<br>
> > > combined with the WildFly adapter or is there a different way to get<br>
> > > something like kc.hasRealmRole() to work?<br>
> ><br>
> > Use keycloak.js to authenticate your AngularJS app<br>
> ><br>
> > ><br>
> > > Thanks<br>
> > ><br>
> > > _______________________________________________<br>
> > > keycloak-user mailing list<br>
> > > <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> > > <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> ><br>
><br>
</div></div></blockquote></div><br></div>