4 Replies Latest reply on Mar 24, 2009 3:39 PM by Rafael Neumann de Menezes

    Combining SPNEGO with custom made authentication?

    Claus Hausberger Newbie


      we want to integrate SPNEGO via JBoss Negotiation into our software.

      Currently our systems works like this:
      We set an apache in front of JBoss and use Basic authentication. If the users goes straight to the JBoss Webserver without going over Apache, a login formular is presentet.

      To check this, the software checks the HTTP header if Basis authentification was done and if not presents the login formular.
      This is all done in a Struts 1.3 action.

      We now plan to to the same with SPNEGO. That is, if SPNEGO works, no login formular will be shown. If SPNEGO fails or is not available, the login formular should be shown.

      Is there a way to check in the HTTP Header if SPNEGO was successful or done at all?

      Another idea that came to my mind is to enable SPNEGO for our application and then try to get the Principal in the above mentioned Struts action. If it's not null, SPNEGO should have been successful. Not sure if this would work.