<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">AFAIK we don't have support for that,
      but hopefully we can add adapter option, which will add
      KeycloakPrincipal to threadLocal. Might be useful for
      frameworks/apps where the access to servletRequest is not
      possible. Could you create JIRA?<br>
      <br>
      Which web framework are you using btv? Do you at least have
      possibility to add servletFilter, which will put the
      KEycloakPrincipal to threadLocal, so you can access that in your
      app?<br>
      <br>
      Marek<br>
      <br>
      On 23/08/16 22:07, Stephen More wrote:<br>
    </div>
    <blockquote
cite="mid:CAL2vA_N__V3xvky=nWDRwcWW-iry3ydAE+8y4e9aCV34C4D+Zw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>I am familiar with the Apereo CAS Client, that project
            has an AssertionThreadLocalFilter that allows one to access
            the principal without having direct access to the web tier
            session<span style="color:rgb(150,152,150);font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;line-height:20px;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">.</span><br>
            <br>
            org.jasig.cas.client.validation.Assertion assertion =
            org.jasig.cas.client.util.AssertionHolder.getAssertion();<br>
            org.jasig.cas.client.authentication.AttributePrincipal
            principal = assertion.getPrincipal();<br>
            <br>
            <br>
          </div>
          Does keycloak have a similar function to access the
          org.keycloak.KeycloakPrincipal without access to the
          HttpServletRequest ?<br>
          <br>
        </div>
        -Thanks <br>
        <div>
          <div>
            <div>
              <div><br>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <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>