<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    oh when you said: <br>
    <pre wrap="">use-resource-role-mappings

it is only available through the keycloak.json

Nothing from Keycloak Admin UI allows you to set the options, so have the installation file ready with everything ?
</pre>
    <pre class="moz-signature" cols="72">Regards,

Johan Bos</pre>
    <div class="moz-cite-prefix">Le 16/12/2015 16:33, Johan Bos a
      écrit :<br>
    </div>
    <blockquote cite="mid:5671843A.7010006@c6.eu" type="cite">So it is
      one or the other.
      <br>
      The switch is at realm level or per clients?
      <br>
      <br>
      As I tend to make realm role for securing the clients only and
      client/resource roles for internal client management, I should be
      fine
      <br>
      <br>
      Still It would help to have some merging/mapping so from client we
      don't have to so much rely on KeyCloak implementation to test
      roles... Issue is that realm role can have same name as client
      role. But once there is always some pitfall to avoid.
      <br>
      <br>
      Thanks
      <br>
      <br>
      Regards,
      <br>
      <br>
      Johan Bos
      <br>
      <br>
      Le 16/12/2015 15:45, Bill Burke a écrit :
      <br>
      <blockquote type="cite">See use-resource-role-mappings switch:
        <br>
        <br>
        If set to true, the getResourceAccess("resource-name") roles
        will be
        <br>
        mapped into isUserInRole, otherwise getRealmAccess is mapped
        into
        <br>
        isUserInRole
        <br>
        <br>
        Not the best I know.  We've been meaning to add some sort of
        role
        <br>
        mapping facility to the adapter.
        <br>
        <br>
        On 12/16/2015 9:17 AM, Johan Bos wrote:
        <br>
        <blockquote type="cite">Why is
          HttpRequest.isUserInRole(&lt;role&gt;) not capable to return
          true when
          <br>
          the role is present in the AccessToken.getRealmAccess?
          <br>
          <br>
          Regards,
          <br>
          <br>
          Johan Bos
          <br>
          <br>
          Le 16/12/2015 15:09, Bill Burke a écrit :
          <br>
          <blockquote type="cite">AccessToken.getResourceAccess or
            AccessToken.getRealmAccess
            <br>
            <br>
            On 12/16/2015 4:51 AM, Tim Dudgeon wrote:
            <br>
            <blockquote type="cite">Its not clear to me how you get the
              assigned roles from the AccessToken.
              <br>
              For instance, is the realm has configured the user to have
              roles "user"
              <br>
              and "editor" how do I find these in the AccessToken?
              <br>
              <br>
              Tim
              <br>
              <br>
              On 07/12/2015 02:53, Bill Burke wrote:
              <br>
              <blockquote type="cite">For Java
                HttpServletRequest.isUserInRole() works.  If you
                typecast the
                <br>
                principal to KeycloakPrincipal you can obtain the
                AccessToken.
                <br>
                <br>
                On 12/6/2015 5:39 PM, Pavel Maslov wrote:
                <br>
                <blockquote type="cite">Hi everyone,
                  <br>
                  <br>
                  <br>
                  Do Keycloak adapters support user authorization? I
                  mean, of course
                  <br>
                  they
                  <br>
                  do :) For example, the API I have secured with
                  Keycloak receives a
                  <br>
                  Keycloak access token from the client. How can I
                  validate the token
                  <br>
                  (check user roles) in my code? I am interested in the
                  Java
                  <br>
                  (wildfly) and
                  <br>
                  Javascript adapters.
                  <br>
                  <br>
                  Manually I am using jwt.io <a class="moz-txt-link-rfc2396E" href="http://jwt.io">&lt;http://jwt.io&gt;</a> to
                  check the token. I am
                  <br>
                  just
                  <br>
                  curious if the Keycloak adapters support smth similar
                  out of the box.
                  <br>
                  <br>
                  Thank you for your answers.
                  <br>
                  <br>
                  <br>
                  Regards,
                  <br>
                  Pavel Maslov, MS
                  <br>
                  <br>
                  <br>
                  _______________________________________________
                  <br>
                  keycloak-user mailing list
                  <br>
                  <a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
                  <br>
                  <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a>
                  <br>
                  <br>
                </blockquote>
              </blockquote>
              _______________________________________________
              <br>
              keycloak-user mailing list
              <br>
              <a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
              <br>
              <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a>
              <br>
              <br>
            </blockquote>
          </blockquote>
          <br>
          <br>
          _______________________________________________
          <br>
          keycloak-user mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
          <br>
          <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a>
          <br>
          <br>
        </blockquote>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>