wso2

Adding custom handler to specific API wso2 API-Manager

旧时模样 提交于 2019-12-05 19:47:00
I need to add a custom handler and APIAuthenticationHandler to a specific API and it needs to be added below the handler class="org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler"/> (Note that APIAuthenticationHandler is called twice here, it's a custom requirement) How can I do this programmatically by editing the velocity_template.xml I'm using API-Manager 2.00 Thank you You can use API custom properties for this. Add a custom property (e.g. auth_mode=Inhouse ) to the API and then based on that, update the handler section in the velocity template like this. <Handlers>

WSO2 API Manager, invalid. unable to find valid certification path to requested target

我的梦境 提交于 2019-12-05 18:33:44
I have launched WSO2 API Manager locally. I'm trying to add API endpoint with https connecttion. It shows me that kind of error. It shows me Invalid. unable to find valid certification path to requested target error message. Then I have downloaded certificate, which is cer file from website and in carbon page I have imported certificate to wso2carbon keystore: After that I restart my WSO2 API Manager and try to test this endpoint and it still throws me that error. What did I miss? Console show that kind of error: [2017-06-12 21:12:18,362] ERROR - APIProviderHostObject Error occurred while

hostname in certificate didn't match:<>!=<> WSO2 APIM

孤者浪人 提交于 2019-12-05 18:02:35
I have a https endpoint and I need to access it from wso2 API manager. (uses 1.10).I already added the certificate files to "client-truststore.jks" file. But now it gives an error as follows. hostname in certificate didn't match:<ip>!=<entry name>. I have already updated the axis2.xml file as follows also. <parameter name="HostnameVerifier">AllowAll</parameter> How can I solve this issue with WSO2 APIManager to access this https backend service The CN of the certificate should match with the hostname of the URL. You get above error when they don't match. 来源: https://stackoverflow.com/questions

Programmatically add custom handler in WSO2 API Manager

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 17:59:25
I create and subscribe new APIs through an automated process that uses WSO2 API Manager's Publisher and Store HTTP APIs respectively. I have custom handlers that I then map to my APIs by editing the XML files in <APIM_HOME>/repository/deployment/server/synapse-configs/default/api . Is there a way to programmatically map the handlers to the newly created APIs so that I don't have to edit the XML manually? In other words, an API or other method to see the current handlers for an API, and add/remove? I assume you do not want to edit API XML manually for all the APIs to engage a custom handler.

how to compare integer properties in filter mediation in wso2 esb?

折月煮酒 提交于 2019-12-05 16:24:28
i am new in wso2 esb and define 3 service that return integer value and use filter mediator to rout from one to another , but not correct work and in filter mode always return false my source is : <sequence xmlns="http://ws.apache.org/ns/synapse" name="SeqOne"> <log level="full"/> <property xmlns:ns="http://org.apache.synapse/xsd" xmlns:m0="http://tempuri.org/" name="CParam" expression="//m0:SumSerViseResponse/m0:SumSerViseResult" scope="default" type="INTEGER"/> <log level="custom"> <property xmlns:ns="http://org.apache.synapse/xsd" name="CParam" expression="$ctx:CParam"/> </log> <property

How to avoid endpoint suspension in wso2 esb when actual end point is down

感情迁移 提交于 2019-12-05 15:35:48
I am using message store to store the message in case the actual end point is down. My proxy uses vfs transport, i.e it will read the message from the file and deliver to end point. In case the end point is down it will store the message in configured activemq. My configuration is working fine when i kept single file. While keeping more files(i.e more messages) and end point is down only first few message get stored others are lost. Even i searched a lot of content most of them suggesting it is due to End point suspension error. I tried to avoid that, but still the same result. How to solve

Setting up WSO2 EMM

筅森魡賤 提交于 2019-12-05 15:18:25
I am trying to setup WSO2 EMM V2.0.1. I was able to set it up on my live server and follow all the instruction provided from here WSO2 Getting Started till I got to Configuring Android BKS I configured all settings provided and my https which is working fine. So, I then moved to adding a User, first thing I noticed was that Email Configuration not working. So, I can't add users with there email. Then I noticed that I can't even enrol users. I tried to test user login on the mobile device using username: admin, password: password and I'm getting this error Trust anchor for certification path

How to delete tenants in WSO2 Identity Server?

柔情痞子 提交于 2019-12-05 12:54:39
In v 4.6.0, we cannot delete tenats through the UI, only disable. However, I see there is a deleteTenant method on the TenantMgtAdminService soap service. I have tried to call this service, but I get an error. From the logs, it has: {org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService} - Error deleting tenant with domain: test7.tenant and tenant id: 136. {org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService} java.lang.NullPointerException at org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.deleteTenant(TenantMgtAdminService.java:520) Looking at the source code, I think this

WSO2 api manager stops after 1000 sync call with large payload

泪湿孤枕 提交于 2019-12-05 12:11:52
I have a server which can send response of any size. When I make calls of with response size 1MB the WSO2 api manger works fine. (1000 requests per minute) When we make same calls with response size of 10MB the WSO2 api manager initially cuts down the size of responnse and finally becomes 0 sized responses. With 1000 requests per minute only first 28 requests response back with 10MB others are lesser size. I have tried hitting the backend service directly with 10MB response sizes and all the responses are 10MB. Here is my server.js (written for nodejs) var http = require("http"); var url =

Cross domain problems with WSO2 API Manager

∥☆過路亽.° 提交于 2019-12-05 10:30:42
We have develop some APIs for a client and we have published them through API Manager. We have provided the client with some code examples on PHP which work fine. The only problem is that they are using those APIs through AJAX in a different domain to the one associated with AM. Is this a cross domain problem? I have tried setting the apache server in front of API Manager with the following headers, so that cross domain is allowed Access-Control-Allow-Credentials: true Access-Control-Allow-Headers: Authorization, Content-Type, Accept Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS