有时在wildfly 10.1.0.Final高可用性集群上登录不起作用

时间:2016-11-29 12:56:49

标签: security java-ee login wildfly jaas

我请求安全页面和wildfly将我重定向到登录页面。在我输入凭证后,它会将我重定向到安全页面。但有时没有任何反应,我留在登录页面。并且日志中没有错误。

web.xml具有可分发标记。会话复制已启用并正常工作。为了测试我使用nginx而没有粘性会话,它将每个请求发送到另一个节点。如果登录成功,它运作良好。但有时我会遇到此登录问题。粘性会话无济于事。使用mod_cluster的Apache没有帮助。当只有一个节点正在运行时,问题也存在。

你有什么想法吗?

日志:

12:47:10,265 TRACE [default task-1] [org.jboss.security] PBOX00200: Begin isValid, principal: org.wildfly.extension.undertow.security.AccountImpl$AccountPrincipal@18f4e, cache entry: null
12:47:10,389 TRACE [default task-1] [org.jboss.security] PBOX00209: defaultLogin, principal: org.wildfly.extension.undertow.security.AccountImpl$AccountPrincipal@18f4e
12:47:10,389 TRACE [default task-1] [org.jboss.security] PBOX00221: Begin getAppConfigurationEntry(test-policy), size: 6
12:47:10,389 TRACE [default task-1] [org.jboss.security] PBOX00224: End getAppConfigurationEntry(test-policy), AuthInfo: AppConfigurationEntry[]:
[0]
LoginModule Class: my.test.auth.RSADatabaseServerLoginModule
ControlFlag: LoginModuleControlFlag: required
Options:
name=dsJndiName, value=...
name=principalsQuery, value=...
name=keyStoreAlias, value=...
name=hashUserPassword, value=true
name=rolesQuery, value=...
name=keyStorePath, value=...
name=hashAlgorithm, value=...

12:47:10,393 DEBUG [default task-1] [my.test.auth.RSADatabaseServerLoginModule] Initializing started
12:47:10,393 TRACE [default task-1] [org.jboss.security] PBOX00236: Begin initialize method
12:47:10,393 DEBUG [default task-1] [org.jboss.security] PBOX00281: Password hashing activated, algorithm: ..., encoding: BASE64, charset: null, callback: null, storeCallBack: null
12:47:10,393 TRACE [default task-1] [org.jboss.security] PBOX00262: Module options [dsJndiName: ..., principalsQuery: ..., rolesQuery: ..., suspendResume: true]
12:47:10,413 DEBUG [default task-1] [my.test.auth.RSADatabaseServerLoginModule] Initializing finished
12:47:10,413 DEBUG [default task-1] [my.test.auth.RSADatabaseServerLoginModule] Login started
12:47:10,413 TRACE [default task-1] [org.jboss.security] PBOX00240: Begin login method
12:47:10,421 DEBUG [default task-1] [my.test.auth.RSADatabaseServerLoginModule] Creating password hash started
12:47:10,426 DEBUG [default task-1] [my.test.auth.RSADatabaseServerLoginModule] Creating password hash finished
12:47:10,426 TRACE [default task-1] [org.jboss.security] PBOX00263: Executing query SELECT ... as Password ...
12:47:10,433 TRACE [default task-1] [org.jboss.security] PBOX00241: End login method, isValid: true
12:47:10,433 DEBUG [default task-1] [my.test.auth.RSADatabaseServerLoginModule] Login finished with true
12:47:10,433 DEBUG [default task-1] [my.test.auth.RSADatabaseServerLoginModule] Commit started
12:47:10,433 TRACE [default task-1] [org.jboss.security] PBOX00242: Begin commit method, overall result: true
12:47:10,433 TRACE [default task-1] [org.jboss.security] PBOX00263: Executing query SELECT ... as Role ...
12:47:10,435 TRACE [default task-1] [org.jboss.security] PBOX00263: Executing query SELECT ... as Role ...
12:47:10,442 DEBUG [default task-1] [my.test.auth.RSADatabaseServerLoginModule] Commit finished with true
12:47:10,442 TRACE [default task-1] [org.jboss.security] PBOX00210: defaultLogin, login context: javax.security.auth.login.LoginContext@44f3c60b, subject: Subject(1679664219).principals=org.jboss.security.SimplePrincipal@926329001(gel)org.jboss.security.SimpleGroup@309931210(Roles(members:MANAGER))org.jboss.security.SimpleGroup@309931210(CallerPrincipal(members:gel))
12:47:10,443 TRACE [default task-1] [org.jboss.security] PBOX00207: updateCache, input subject: Subject(1679664219).principals=org.jboss.security.SimplePrincipal@926329001(gel)org.jboss.security.SimpleGroup@309931210(Roles(members:MANAGER))org.jboss.security.SimpleGroup@309931210(CallerPrincipal(members:gel)), cached subject: Subject(129825702).principals=org.jboss.security.SimplePrincipal@926329001(gel)org.jboss.security.SimpleGroup@309931210(Roles(members:MANAGER))org.jboss.security.SimpleGroup@309931210(CallerPrincipal(members:gel))
12:47:10,444 TRACE [default task-1] [org.jboss.security] PBOX00208: Inserted cache info: org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@58959e96
12:47:10,444 TRACE [default task-1] [org.jboss.security] PBOX00201: End isValid, result = true
12:47:10,533 TRACE [default task-1] [org.jboss.security] PBOX00354: Setting security roles ThreadLocal: null

0 个答案:

没有答案