This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix kerberos from-based authentication.
Using a servlet to generate the login form was causing the NegotiationAuthenticator valve to return the wrong response code, halting the SPNego process and preventing ticket based authentication (if available) from taking effect. Replaced the servlet with a jsp file which doesn't have the same problem. Static files work too (.html) but there is a need to dynamically generate the redirection url.
- Loading branch information
Carlos A. Munoz
committed
Nov 12, 2013
1 parent
c4152ef
commit 2e954a8
Showing
3 changed files
with
15 additions
and
78 deletions.
There are no files selected for viewing
66 changes: 0 additions & 66 deletions
66
zanata-war/src/main/java/org/zanata/servlet/KerberosLoginFormServlet.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% | ||
String queryStr = request.getQueryString(); // keep the original request's | ||
// query string | ||
if (queryStr != null && !queryStr.isEmpty()) { | ||
queryStr = "?" + queryStr; | ||
} | ||
%> | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="0; url=sign_in<%=queryStr%>"> | ||
</head> | ||
</html> |