Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
Describe the issue:
The UPDATE_CREDENTIAL_BY_ADMIN events are triggered even when a non-admin user updates the credentials. For the following scenarios
End user set password via forgot password feature
End user set password via SCIM /Me PATCH
The PRE_UPDATE_CREDENTIAL_BY_ADMIN event gets triggered
How to reproduce:
Reset the password using forget password[1], the PRE and POST UPDATE_CREDENTIAL_BY_ADMIN events are triggered.
Reset the password using scim2/Me PATCH, again the PRE and POST UPDATE_CREDENTIAL_BY_ADMIN events are triggered.
In the audit log the following is recorded. The Action=Change-Password-by-Administrator is wrong for the case of password update from SCIM2/Me endpoint.
This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!
Describe the issue: The UPDATE_CREDENTIAL_BY_ADMIN events are triggered even when a non-admin user updates the credentials. For the following scenarios
The PRE_UPDATE_CREDENTIAL_BY_ADMIN event gets triggered
How to reproduce:
In the audit log the following is recorded. The Action=Change-Password-by-Administrator is wrong for the case of password update from SCIM2/Me endpoint.
Expected behavior: For the above two scenarios, the normal UPDATE_CREDENTIAL events should get triggered.
Environment information :