<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Also, how does your login button work?  Are you calling
    HttpServletRequest.authenticate()?<br>
    <br>
    <div class="moz-cite-prefix">On 4/1/2016 1:45 PM, Bill Burke wrote:<br>
    </div>
    <blockquote cite="mid:56FEB3A7.7080306@redhat.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      Which adapter are you using?  I'll log a jira after I know this
      information.<br>
      <br>
      <div class="moz-cite-prefix">On 3/31/2016 5:01 PM, LEONARDO NUNES
        wrote:<br>
      </div>
      <blockquote cite="mid:D3231660.27416%25leo.nunes@ojc.com.br"
        type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <div>Hi everyone,</div>
        <div><br>
        </div>
        <div>I have a page1 that it's access is not restricted, at the
          page1 I have a Login button that directs to Keycloak and the
          redirect_uri is the page1.</div>
        <div>After I login and get redirect to page1, I try to access
          the logged in user information with req.getUserPrincipal() but
          this method returns NULL at this moment.</div>
        <div>If I navigate to a page that it's url is restricted and
          then return to the non-restricted page,
          then req.getUserPrincipal() returns the user object.</div>
        <div><br>
        </div>
        <div>I noticed that I have to go to a restricted page before
          being able to access the user information at a non-restricted
          page.</div>
        <div><br>
        </div>
        <div>The ticket below solved the problem of not accessing the
          user information at a non-restricted page, but still have this
          case when the user logged in at non-restricted page.</div>
        <div><a moz-do-not-send="true"
            href="https://issues.jboss.org/browse/KEYCLOAK-2518">https://issues.jboss.org/browse/KEYCLOAK-2518</a></div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>
            <div>-- </div>
          </div>
        </div>
        <div>Leonardo</div>
        <hr style="height:1px;color:#C4C4C4;">
        <div style="font-family:Arial;color:#848484;font-size:11px;"><i>Esta

            mensagem pode conter informação confidencial e/ou
            privilegiada. Se você não for o destinatário ou a pessoa
            autorizada a receber esta mensagem, não poderá usar, copiar
            ou divulgar as informações nela contidas ou tomar qualquer
            ação baseada nessas informações. Se você recebeu esta
            mensagem por engano, por favor avise imediatamente o
            remetente, respondendo o e-mail e em seguida apague-o.
            Agradecemos sua cooperação. <br>
            <br>
            This message may contain confidential and/or privileged
            information. If you are not the addressee or authorized to
            receive this for the addressee, you must not use, copy,
            disclose or take any action based on this message or any
            information herein. If you have received this message in
            error, please advise the sender immediately by reply e-mail
            and delete this message. Thank you for your cooperation</i></div>
        <i><i> </i></i> <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
keycloak-user mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a moz-do-not-send="true" 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>
      <pre class="moz-signature" cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://bill.burkecentral.com">http://bill.burkecentral.com</a></pre>
      <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>
    <pre class="moz-signature" cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a class="moz-txt-link-freetext" href="http://bill.burkecentral.com">http://bill.burkecentral.com</a></pre>
  </body>
</html>