getHeader("Authorization")

P

polilop

If the web browser and SPN is setup correctly, is it enough :

int index = -1;
public void getAuthorization( HttpServletResponse rsp)
{
String authorization = req.getHeader("Authorization");
if (authorization == null || (index = authorization.indexOf(' ')) == -1
|| !authorization.substring(0, index).equals("Negotiate")) {
rsp.reset();
rsp.setHeader("WWW-Authenticate", "Negotiate");
rsp.setContentLength(0);
rsp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
rsp.flushBuffer();

return null;
}
return authorization;

to get the Kerberos token from the requesting Browser
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top