wso2

Modifying config registry resource content during mediation in WSO2 ESB

别来无恙 提交于 2019-12-11 03:33:25
问题 I have a scenario where I need to store simple counter in config registry and increment it at end of sequence flow. Reason we need to store in config registry is in case server get restarted we have last counter value persisted. Can someone suggest how to increment the counter in config registry ? 回答1: Sample javascript you can use in your mediation to save current message inside registry : <script language="js"><![CDATA[ importPackage(Packages.org.apache.synapse.config); mc.getConfiguration(

Disabling WSO2 Certificate Validation

人盡茶涼 提交于 2019-12-11 03:08:44
问题 I'm new to WSO2. I'm using the ESB Console, and I'm trying to add a WSDL-Based Proxy After entering the WSDL URL if I then try to Test URI , I receive the following error: Invalid WSDL URI (Unable to establish a connection) I'm not certain was the issue is, but I'm guessing that there is a problem with the issuer of the certificate. I would like to disable certificate validation to test that theory. So far, the only setting I can find is the following in the wso2esb-4.8.1/repository/conf

WSO2 API Manager Auth error content type

馋奶兔 提交于 2019-12-11 03:05:36
问题 I have WSO2 API Manager configured and everything seems to work fine. The only issues bothering me is that in case of an Auth exception, the API manager always returns the response with XML content type, e.g., <ams:fault xmlns:ams="http://wso2.org/apimanager/security"><ams:code>900904</ams:code><ams:message>Access Token Inactive</ams:message><ams:description>Access failure for API: /exchange, version: 1.0 with key: 1139a466ebfd825aca953ad7259b9f45</ams:description></ams:fault> In case of

WSO2 SSO always redirects to localhost:9443/samlsso

走远了吗. 提交于 2019-12-11 03:05:05
问题 I'm using WSO2 identity server (on port 9443) and enterprise service bus (ESB, on port 9444). I configured ESB to use IS SSO. But everytime I try to login into ESB it redirects me to IS and there it redirects me to URL localhost:9443/samlsso. I already tried changing this URL in identities.xml and carbon.xml without access. Where can I configure the redirection address? In carbon.xml I specified the hostname as "HostName" and "MgtHostName". But IS still uses localhost. Thanks! 回答1: Ok, I

RSA Public Key of WSO2carbon

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:57:58
问题 I am generating JWT token from WSOAM which is then passed as a header to API. I have my API created in nodejs and I am using jsonwebtoken plugin to verify and decode the JWT. I am unable to find RSA Public key of Wso2carbon to verify/decode the token. Please help me as how to generate the RSA Public key or where should I find this key ? 回答1: All WSO2 products use the default public/private key pairs installed into wso2carbon.jks keystore file found in <WSO2_AM>/repository/resources/security

WSO2 API Manager as 2 instance all-in-one setup

社会主义新天地 提交于 2019-12-11 02:38:17
问题 I have recently deployed WSO2 API Manager (2.0.0) as 2 instance all-in-one clustered (using Hazelcast AWS scheme) with mysql datasource as specified in this link Since, not able to find a complete step by step installation guide for this setup. I would like to clarify few areas that I am not too sure of. Depsync via SVN - since this will be manger to manger nodes (instead of manager to worker nodes) both will have <AutoCommit>true</AutoCommit> . Should we have any concern on this? DAS -

WSO2 API Manager - context management

你说的曾经没有我的故事 提交于 2019-12-11 02:37:32
问题 Can we reuse the context of an api that has been deleted? I am looking at the scenario, where someone accidentally deleted the api and want to recreate it. Or reuse the context for different purpose. Currently, when I try do the same, I get an error - Error occurred while adding the API. A duplicate API already exists for "your api" Is this a bug? 回答1: You should be able to use. But i think there is a reported bug regarding this.(not sure though) We will fix in the future release. But please,

wso2 - handlers and sequence

房东的猫 提交于 2019-12-11 01:51:53
问题 For WSO2 api manager, what is the difference or relation between handlers and sequence. I want to put some conditions for each api to follow. Based on condition it will check if api request has passed the condition or not. I am not sure for this if I need to use sequence or handlers. 回答1: This answer assumes that by "sequence" the user means "mediation sequence," which are run via the APIManagerExtensionHandler handler (mediation can be global or per-API, but to the best of my knowledge it is

wso2 calling API's without token

我与影子孤独终老i 提交于 2019-12-11 01:42:42
问题 I am managing my APIs using WSO2 API Mananger.Till now every API were private and can be accessed using an access token. The new use cases some API's which is purely public. Any one can access them anonymously. Just a GET,POST,PUT wihtout any token/access details should work. I exposed API's via WSO2 API Manager without any scopes. Tried to access them without any token ;but its not working.It says required oAuth credentails not found. Is there anything else to do to expose APIs so that they

Source of WSO2 Identity Server Service Pack

喜夏-厌秋 提交于 2019-12-11 01:42:29
问题 Is the source of service pack 1 for WSO2 Identity Server 5.0.0 publicly available? Where can I find the source in the SVN repository? 回答1: There aren't any source code for Service Pack. A Service pack is generated by aggregating patches provided for a product in WSO2. 来源: https://stackoverflow.com/questions/28063425/source-of-wso2-identity-server-service-pack