Endpoint security modal displays incorrect data after custom parameter edit/delete
Description
After editing a custom parameter name or deleting parameters in the OAuth endpoint security settings, the edit parameter row displays incorrect data, which can be confusing and may lead to misconfiguration.
Steps to Reproduce
Scenario 1:
- Add the following endpoint security configuration to a production or sandbox endpoint of an API:
- Set the endpoint security type to OAuth2 - Client Credentials.
- Fill in the mandatory fields.
- Click Add New Parameter, add three custom parameters, and click Save.
- Reopen the endpoint security dialog box and delete the second custom parameter.
- Click the Edit button for the second custom parameter.
- The dialog will display the details of the deleted custom parameter instead of the correct data.
Scenario 2:
- Add the following endpoint security configuration to a production or sandbox endpoint of an API:
- Set the endpoint security type to OAuth2 - Client Credentials.
- Fill in the mandatory fields.
- Click Add New Parameter, add three custom parameters, and click Submit.
- Reopen the endpoint security dialog box and click the Edit button for the first custom parameter.
- Edit the name of the parameter and click Save.
- Click the Edit button for what is now the second custom parameter.
- The dialog will display an incorrect parameter name and value.
https://github.com/user-attachments/assets/945b5869-b606-420b-bebc-709f520c943a
https://github.com/user-attachments/assets/f87dbbc5-3ec0-46b5-8089-6949f9a96f25
Version
4.5.0
Environment Details (with versions)
N/A
Hi @Piumal1999 , this looks interesting! Shall I take this up and start working on it for Hacktoberfest?
Hi @Piumal1999 ,I’d like to reserve this issue. I can work on fixing the parameter edit/delete handling so that the correct parameter data is always displayed in the OAuth endpoint security dialog.
Hi @Piumal1999 , I would like to work on this issue. Could you please assign it to me?
Since @rdwaynedehoedt requested first, you could start on this. I'll assing this to you
@chamilaadhi Thanks a lot for assigning this to me!
Hi @rdwaynedehoedt how is the progress of this issue?
Hi @rdwaynedehoedt have you started working on this issue already? Appreciate if you can provide regular updates here.
Hi @vimukthiwaththegama are you still interested in taking this issue?
Hi @tharikaGitHub ! If its still open, I'd love to give it a try
Hi @developer-diganta Sure Thanks. I have assigned the issue to you. You can start working on it.
Hi @developer-diganta Do you have any update on the progress of this issue?