wso2-am

why does the WSO2 API Manager store have 2 url displayed on UI

谁说我不能喝 提交于 2019-12-11 05:25:23
问题 We have deployed an all-in-one instance of WSO2 API Manager. We have got ssl working and you can log in and see published APIs. We have set up the carbon.xml to have the external-facing address (apidev.example.com) and both /store/ and /publisher/ can be accessed from that address. However, the problem is the APIs published in the store are using the local hostname of dev.company.interal. This means that a user will sign to https://apidev.example.com/store click on an API and get redirected

WSO2 How to create custom mediation sequence to serve static content

核能气质少年 提交于 2019-12-11 05:13:44
问题 I'm trying to create an "pass-through" WSO2 API to serve some static files on an internal server to the outside. As I understand it, WSO2 requires me to configure multiple {resources} under /{context}/{version}/{resourcePath} . Assuming my context and version are 'files' and 'v1' I need to map these external paths to these internal paths on my backend server. /files/v1/js/api.js -> /js/api.js /files/v1/css/file.css -> /css/file.css /files/v1/api/2.0/auth/signin -> /api/2.0/auth/signin

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

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

WSO2 API Manager “error”: “no response from server”

笑着哭i 提交于 2019-12-11 01:13:53
问题 I have published API in WSO2 using swagger JSON. After publish I am trying to call rest api using swagger in APP Console. It says Response Body no content Response Code 0 Response Headers { "error": "no response from server" } There is no any error on server which will help me to understand problem. Here is the request URL which I am using in local server : https://192.168.1.118:8243/api/2.0/questions/1/answers?start=1&end=1&fields=answerId%2CanswerDescription%2CcreateDate 回答1: In my API

WSO2 Api Manager log Http request in log mediator

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 00:24:16
问题 Is there a way to include the http request remote host in the log mediator being used for a specific api? Having followed the instructions, i can log the soap message, but i have no info regarding the caller of the service. I currently use the following sequence definition: <sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In"> <log level="full"> <property name="TRACE" value="Gunet Mediation Extension"/> </log> </sequence> And the result i get when having a call is the