Eazy
Eazy

Reputation: 3472

Playframework 1.x Unauthorized response with Negotiate header

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

Answers (1)

Didar Burmaganov
Didar Burmaganov

Reputation: 632

Try this:

response.status = Http.StatusCode.UNAUTHORIZED;
response.setHeader("WWW-Authenticate","DEMOHEADER");
renderText("Hello PLay");//renderHtml("<p>Hello Play</p>")

Upvotes: 1

Related Questions