<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      The main point of Keycloak is to provide SSO for browser based
      apps. BASIC authentication is currently supported just for REST
      endpoints, so no authentication popup. And it's generally not
      recommended. So if you have opportunity to redesign and avoid
      BASIC authentication and authentication popup, that would be the
      preferred way IMO.<br>
      <br>
      Otherwise if you really need BASIC authentication with the popup,
      then it will be better to avoid use Keycloak adapter at all in
      your WAR. Instead you can likely use Tomcat JAAS realm and
      configure the Keycloak JAAS login module (probably
      DirectAccessGrantsLoginModule) -
<a class="moz-txt-link-freetext" href="https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/jaas.html">https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/jaas.html</a><br>
      <br>
      Marek<br>
      <br>
      Not sure why you want authentication popup? <br>
      On 14/06/16 00:01, Dragan Jotanovic wrote:<br>
    </div>
    <blockquote
cite="mid:CAJSsW4pYziNVK4D8y+10TMnx-JjzmwMzBtcMp=P1dFSD12us4A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi there,
        <div><br>
        </div>
        <div>I have a war application deployed to tomcat that is
          currently secured with BASIC authentication through tomcat's
          realm. When I try to access secured page, the authentication
          popup appears.</div>
        <div>I would like to switch to keycloak securitu but I'm not
          sure if it is possible to configure keycloak to force this
          authentication popup.</div>
        <div>I tried setting it up but when I try to access the secured
          page, instead of authentication popup I am redirected to
          keycloak page "<span
            style="color:rgb(51,51,51);font-family:&quot;Helvetica
            Neue&quot;,Helvetica,&quot;Segoe
            UI&quot;,Arial,freesans,sans-serif,&quot;Apple Color
            Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI
            Symbol&quot;;font-size:16px;line-height:25.6px">Client is
            not allowed to initiate browser login with given
            response_type. Standard flow is disabled for the client.</span>"</div>
        <div>I've followed the instructions from <a
            moz-do-not-send="true"
href="https://github.com/keycloak/keycloak/tree/master/examples/basic-auth"><a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak/tree/master/examples/basic-auth">https://github.com/keycloak/keycloak/tree/master/examples/basic-auth</a></a>
          and <a moz-do-not-send="true"
href="http://keycloak.github.io/docs/userguide/keycloak-server/html/ch08.html#tomcat-adapter">http://keycloak.github.io/docs/userguide/keycloak-server/html/ch08.html#tomcat-adapter</a>.</div>
        <div><br>
        </div>
        <div>Is it possible to setup tomcat and keycloak so that the
          authentication popup would be forced to appear?</div>
        <div><br>
        </div>
        <div>Thanks</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>