wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
821 stars 767 forks source link

User defined endpoint mediator #13490

Open ggianoglio opened 1 month ago

ggianoglio commented 1 month ago

With this update, any user can publish an API with a custom mediator that authenticate the endpoint. The mediator must be deployed as JAR in the API manager instance.

The user can publish the API with Publisher API (https://localhost:9443/api/am/publisher/v4/apis) passing the custom endpoint security configuration

      "endpoint_security": {
            "sandbox": {
                "type": "userDefined",
                "enabled": true,
                "customParameters": {
                    "parameter": "value",
                    "boolparameter": true,
[...]
                }
            }
        }

In this case, the sandbox endpoint is secured by the user defined mediator with the specified parameters.

CLAassistant commented 1 month ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.