Reputation: 3472
How could I return in Playframework 1.x Unauthorized response with Negotiate header?
This doesn't work:
response.status = Http.StatusCode.UNAUTHORIZED;
response.setHeader("WWW-Authenticate", "Negotiate");
render();
Upvotes: 2
Views: 119
Reputation: 632
Try this:
response.status = Http.StatusCode.UNAUTHORIZED;
response.setHeader("WWW-Authenticate","DEMOHEADER");
renderText("Hello PLay");//renderHtml("<p>Hello Play</p>")
Upvotes: 1