Keycloak 忘记密码链接无法打开任何表格输入密码

问题描述 投票:0回答:2

我使用最新的 keycloak 映像 jboss/keycloak:4.5.0.Final 创建了一个新的 docker。创建了新的领域和客户端,并添加了忘记密码所有其他默认设置。 然后我创建了一个新用户,在尝试登录时,我单击了忘记密码。 它通过邮件发送了一个重置密码的链接。 我点击了链接,它显示一条消息“您的帐户已更新。”

我希望它能提供一个表格来允许输入新密码。 我尝试在网络和 keycloak 文档中进行搜索,但没有任何关于在单击忘记密码链接时不显示输入新密码的情况的信息。

请帮助确定我做错了什么?

从 keycloak 记录日志:

keycloak_1        | 13:21:20,066 TRACE [org.keycloak.events] (default task-21) type=SEND_RESET_PASSWORD, realmId=test, clientId=test-web, userId=3acdea4a-f035-4eec-a417-dd6dfc314cce, ipAddress=192.168.1.216, auth_method=openid-connect, auth_type=code, 
redirect_uri=http://localhost:343, code_id=b694032d-c7f3-499d-a531-46834025898e, [email protected], [email protected], requestUri=http://192.168.1.216:81/auth/realms/test/login-actions/reset-credentials?session_code=0bPI4Z2HKMtGqtzVvc9ph5T7j9QfehIJLt-m_10uxic&execution=2842aded-c525-427c-ba13-96dd4d4db903&client_id=test-web&tab_id=iHtfvDaO_Us, cookies=
[KC_RESTART=eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJiMjk2NDk0OS1jMjAwLTRkNDMtOWYyOC1mZjU2YWU3ZDhhOGMifQ.eyJjaWQiOiJhbXN5cy13ZWIiLCJwdHkiOiJvcGVuaWQtY29ubmVjdCIsInJ1cmkiOiJodHRwOi8vbG9jYWxob3N0OjM0MyIsImFjdCI6IkFVVEhFTlRJQ0FURSIsIm5vdGVzIjp7ImlzcyI6Imh0
dHA6Ly8xOTIuMTY4LjEuMjE2OjgxL2F1dGgvcmVhbG1zL2Ftc3lzIiwicmVzcG9uc2VfdHlwZSI6ImNvZGUiLCJyZWRpcmVjdF91cmkiOiJodHRwOi8vbG9jYWxob3N0OjM0MyIsImNvZGVfY2hhbGxlbmdlX21ldGhvZCI6InBsYWluIn19.Hs8K3iAe2mofUpx48G8wznEtIczLC2hIhEDeQjc88XM, AUTH_SESSION_ID=b694032d-c7f3-499d-a531-46834025898e.1b2a99930ee9]
keycloak_1        | 13:21:20,066 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) reset browser login from authenticator: reset-credential-email
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.cache.infinispan.RealmCacheSession] (default task-21) client by id cache hit: test-web
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.cache.infinispan.RealmCacheSession] (default task-21) client by id cache hit: test-web
keycloak_1        | 13:21:20,066 DEBUG [org.keycloak.authentication.AuthenticationProcessor] (default task-21) Forked authSession Ae49PjFP1C4 from authSession iHtfvDaO_Us . Client: test-web, Root session: b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,066 TRACE [org.keycloak.models.cache.infinispan.RealmCacheSession] (default task-21) client by id cache hit: test-web
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.AuthenticationProcessor] (default task-21) AUTHENTICATE
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.AuthenticationProcessor] (default task-21) AUTHENTICATE ONLY
keycloak_1        | 13:21:20,067 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,067 TRACE [org.keycloak.models.cache.infinispan.RealmCacheSession] (default task-21) client by id cache hit: test-web
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) processFlow
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) check execution: auth-cookie requirement: ALTERNATIVE
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) authenticator: auth-cookie
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) invoke authenticator.authenticate: auth-cookie
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.services.managers.AuthenticationManager] (default task-21) Could not find cookie: KEYCLOAK_IDENTITY
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) authenticator ATTEMPTED: auth-cookie
keycloak_1        | 13:21:20,067 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) check execution: auth-spnego requirement: DISABLED
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) execution is processed
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) check execution: identity-provider-redirector requirement: ALTERNATIVE
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) authenticator: identity-provider-redirector
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) invoke authenticator.authenticate: identity-provider-redirector
keycloak_1        | 13:21:20,067 TRACE [org.keycloak.authentication.authenticators.browser.IdentityProviderAuthenticator] (default task-21) No default provider set or kc_idp_hint query parameter provided
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) authenticator ATTEMPTED: identity-provider-redirector
keycloak_1        | 13:21:20,067 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) check execution: null requirement: ALTERNATIVE
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) execution is flow
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) processFlow
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) check execution: auth-username-password-form requirement: REQUIRED
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) authenticator: auth-username-password-form
keycloak_1        | 13:21:20,067 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) invoke authenticator.authenticate: auth-username-password-form
keycloak_1        | 13:21:20,067 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,067 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,068 TRACE [org.keycloak.models.cache.infinispan.RealmCacheSession] (default task-21) client by id cache hit: test-web
keycloak_1        | 13:21:20,085 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-21) authenticator CHALLENGE: auth-username-password-form
keycloak_1        | 13:21:20,087 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,087 TRACE [org.keycloak.models.sessions.infinispan.InfinispanKeycloakTransaction] (default task-21) Adding cache operation: REPLACE on b694032d-c7f3-499d-a531-46834025898e
keycloak_1        | 13:21:20,088 TRACE [org.keycloak.models.cache.infinispan.RealmCacheSession] (default task-21) client by id cache hit: test-web
keycloak_1        | 13:21:20,089 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-21) JtaTransactionWrapper  commit
keycloak_1        | 13:21:20,089 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-21) JtaTransactionWrapper end
keycloak_1        | 13:21:20,179 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-21) new JtaTransactionWrapper
keycloak_1        | 13:21:20,180 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-21) was existing? false
keycloak_1        | 13:21:20,185 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-21) JtaTransactionWrapper  commit
keycloak_1        | 13:21:20,185 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-21) JtaTransactionWrapper end
docker jboss keycloak
2个回答
0
投票

我向 jboss keycloak jira 报告了它,他们接受了它作为一个问题 https://issues.jboss.org/browse/KEYCLOAK-8571


0
投票

检查此文档:我遇到了同样的问题

https://www.keycloak.org/docs/latest/server_admin/#enabling-forgot-password

我们需要启用更新密码选项 how to enable change password option in keycloak after forget password

© www.soinside.com 2019 - 2024. All rights reserved.