Posts

Showing posts with the label Kerberos SSO SPNEGO JDK HTTP Client

Some help with Kerberos SSO

Oracle Java SE 1.6 has an inbuild HTTP client that now supports SPNEGO Negotiate HTTP authentication scheme, with the Kerberos as well as NTLM mechanism. We can harness this client and use it in place of Internet Explorer (IE) to troubleshoot Kerberos SSO issues against Weblogic instance. This makes sense as one faces great challenge in making IE run in debug mode so that one can see what is going on behind the scene. Using JSE HTTP client, we can enable debug flags and see lot of "relevant" information easily. Here you go! 1. We will code a simple JAVA class that will use JSE 1.6 HTTP API (to turn itself into an HTTP client). Here is the sample class: 1: import java.io.BufferedReader; 2: import java.io.InputStream; 3: import java.io.InputStreamReader; 4: import java.net.URL; 5: import java.net.CookieHandler; 6: import java.net.CookieManager; 7: import java.net.CookiePolicy; 8: public class JSEHTTPClient{ 9: public static vo...