[英]Session Times out with AD authentication on Jboss
我正在舊的EJB 1.1 / webwork / jboss應用程序上實現Active Directory身份驗證,並且我已用AD的API方法替換了此代碼,現在登錄后應用程序就會超時。 這是下面的代碼。
在廣告之前:
AuthenticationManager securityMgr = (AuthenticationManager) securityCtx.lookup("securityMgr");
SimplePrincipal principal = new SimplePrincipal(_username);
char[] passwordChars = null;
if (_password != null)
passwordChars = _password.toCharArray();
securityMgr.isValid(principal, passwordChars);
廣告后:
UserInfo userInfo = com.authenticate.SingleSignOn.userAuthentication ("https://urllink/webservice.asmx/userAuthentication", _username, _password, "appname", "DEV", isNotExternal);
因此,一旦我登錄並重定向到包含以下代碼的頁面
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=/app/login.begin.action">
這又將我帶到下面的Java代碼
if (!getRequest().getSession().isNew()) {
getRequest().getSession().invalidate();
}
return SUCCESS: ( In webwork it will take to waht ever page you put for success in properties file here it is login page)
問題是,一旦我使用AD登錄,它就會將我重定向到登錄頁面。 我想知道我是否在這里缺少什么,請指出正確的方向。
我發現問題出在我項目中的其他庫之一
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.