Repository navigation
How to Capture and Securely Store Plaintext Passwords During Password Update/Reset in Keycloak? #36727
Unanswered
Raj-Ranveer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary of the Use Case
We are trying to capture plaintext passwords whenever a user updates or resets their password in Keycloak. The captured passwords will then be securely stored in an external system for use in specific business processes. However, the current challenge is extracting the plaintext password from Keycloak during these flows.
The two key scenarios we need to address are:
The business requirement driving this need is that we must use the same password across multiple open-source applications, including MongoDB, PostgreSQL, Grafana, and others. This consistency is necessary to ensure a unified user experience and simplify password management across the stack.
The focus is solely on capturing the plaintext password during these actions; secure storage is already planned once the password is captured.
Environment Details
Approaches Tried
session.getContext().getHttpRequest().getDecodedFormParameters().getFirst("password")in the provider.Current Challenge
The main blocker is how to capture the plaintext password during the Update Password and Forgot Password/Reset Password flows.
We need a reliable way to capture the plaintext password during these flows, as this is critical for synchronizing passwords across multiple open-source applications.
Desired Outcome
We need a reliable way to capture the plaintext password during the password update/reset flows, without compromising security.
Questions for the Community
All reactions