This repository has been archived by the owner on Feb 17, 2023. 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.
added viewlet manager for html head containing JavaScript basic auth …
…logout and redirect
- Loading branch information
Michael Howitz
committed
Mar 13, 2009
1 parent
81469e9
commit 9c3385b
Showing
8 changed files
with
222 additions
and
77 deletions.
There are no files selected for viewing
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,16 @@ | ||
<script type="text/javascript"><!-- | ||
// clear HTTP Authentication | ||
try { | ||
if (window.XMLHttpRequest) { | ||
var xmlhttp = new XMLHttpRequest(); | ||
// Send invalid credentials, then abort | ||
xmlhttp.open("GET", "@@", true, "logout", "logout"); | ||
xmlhttp.send(""); | ||
xmlhttp.abort(); | ||
} else if (document.execCommand) { | ||
// IE specific command | ||
document.execCommand("ClearAuthenticationCache"); | ||
} | ||
} catch(e) { } | ||
//--> | ||
</script> |
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,2 @@ | ||
<meta http-equiv="refresh" content="0;url=./" | ||
tal:attributes="content string:0;;url=${request/nextURL}" /> |
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
Oops, something went wrong.