wso2 / carbon-apimgt

Apache License 2.0
165 stars 618 forks source link

Fix endpoint basic auth retrieval logic #12462

Closed lasanthaS closed 3 weeks ago

lasanthaS commented 4 weeks ago

Purpose

In APIM 3.0.0, the endpoint password is saved in a registry field named as endpointPassword, but in all other versions the field is named as endpointPpassword. This causes issues while migrating APIs from 3.0.0 to the latest versions.

This PR modifies the endpoint's basic auth credential retrieving logic to check for the endpointPpassword element as well as the endpointPpassword element.

Resolves https://github.com/wso2/api-manager/issues/2881