1

我需要使用 OpenAM J2EE 代理实现身份验证。我正在使用 JBOSS v7.1.1。J2EE Agent (3.1.0) 的当前生产版本不支持 JBOSS 7(除非实施了 hack)。因此,我使用 Community 网站上的 3.2.0 SNAPSHOT 版本在 JBOSS 7.1.1 上运行 J2EE Agent。我成功地运行了代理。代理拦截初始(即不存在令牌时)请求并将其转发到 OpenAM 服务器。但是成功登录后从 OpenAM Server 重定向失败,并且代理调试日志中记录了以下消息。我的问题是是否有人设法让最新的 3.2.0 SNAPSHOT 版本在 JBOSS 7 上运行,以及请求拦截和重定向是否正常工作。

amFilter:08/23/2013 10:54:48:229 AM EDT: Thread[http--0.0.0.0-9100-1,5,main]
ERROR: URLFailoverHelper: No URL is available at this time
amFilter:08/23/2013 10:54:48:230 AM EDT: Thread[http--0.0.0.0-9100-1,5,main]
ERROR: AmFilter: a server error occurred.
[AgentException Stack]
com.sun.identity.agents.arch.AgentServerErrorException: No URL is available at this time
    at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:155)
    at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:82)
    at com.sun.identity.agents.filter.AmFilterRequestContext.getLoginURL(AmFilterRequestContext.java:835)
    at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:294)
    at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:267)
    at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:413)
    at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:395)
    at com.sun.identity.agents.filter.SSOTaskHandler.doSSOLogin(SSOTaskHandler.java:268)
    at com.sun.identity.agents.jboss.v40.AmJBossSSOTaskHandler.doSSOLogin(AmJBossSSOTaskHandler.java:76)
    at com.sun.identity.agents.filter.SSOTaskHandler.process(SSOTaskHandler.java:110)
    at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:194)
    at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:157)
    at com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(AmAgentBaseFilter.java:75)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
    at java.lang.Thread.run(Thread.java:722)

Firefox 浏览器抛出:302 已暂时移动。我相信它会陷入循环。

4

0 回答 0