wso2

Refresh token returns invalid grant type

我与影子孤独终老i 提交于 2019-12-05 08:51:13
I'm trying to refresh the access token (based on https://docs.wso2.com/display/IS510/Refresh+Token+Grant ) obtained from wso2 identity server; the server returns an invalid grant type response { "error": "invalid_grant", "error_description": "Provided Authorization Grant is invalid" } The access token is obtained using the "authorization code" grant type with the openid scope. I've turned on the logging on the server; however, I'm not able to determine the reason for the invalid grant type response. How can i get the WSO2 Identity Server to refresh my access token using the refresh token? Logs

WSO2 API Manager 2.0 Log Error localhost:7712 (ssl thrift port)

笑着哭i 提交于 2019-12-05 07:45:28
问题 I have installed APIM and APIM Analytics in two different machines. I followed this guide to connect APIM to APIM Analytics. Analytics are working fine, I can see usage data in dashboards, but this error keeps showing once and again in log file ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://localhost:7712 {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} org

How to set tenant to header in mediator with WSO2 API Manager

余生颓废 提交于 2019-12-05 05:13:29
I have an API that requires the tenant as a header. If I create a custom in-sequence: <sequence name="WSO2AM--Ext--In"> <header name="X-Tenant-Id" scope="transport" action="set" expression="???????????????????" /> </sequence> Is there an expression that I can use to achieve this? Or should I resort to creating a per-API mediator to set it? PS: Looking at WSO2 source code ( CarbonTenantInfoConfigurator.java ), I found this fragment that could be useful as a hint: PrivilegedCarbonContext cc = PrivilegedCarbonContext.getThreadLocalCarbonContext(); String tenantDomain = cc.getTenantDomain(); int

How to debug WSO2 ESB code

主宰稳场 提交于 2019-12-05 01:35:19
How do you typically debug the ESB code? I am using log statements but they are kind of lost in system logs. Is there a better mechanism to be used? Thanks, You can do remote debugging from your IDE with ESB code. First start the ESB server script with debug option as follows. wso2server.sh -debug 5005 where the number is any port number used for remote debugging from your IDE. Then run debug in your IDE with whatever the port number you assigned. First, you have to setup debug configurations in your IDE which is can be learned using this wso2 article Then start the ESP server with debug

WSO2 ESB overwrites a ContentType property

情到浓时终转凉″ 提交于 2019-12-05 01:33:55
问题 I am working on the WSO2 ESB Proxy service, which involves exposing the internal RESTful service via SOAP endpoint on the ESB. My RESTful service requires Content-type = "application/rdf+xml". I tried setting it using all 3 properties mentioned in the documentation: messageType, ContentType and CONTENT_TYPE. However, the request Content-type still remains "application/xml". Here is an excerpt from my sequence that calls REST service: <property xmlns:ns="http://org.apache.synapse/xsd" name=

WSO2 Business Process bpel, error in gui with “if” component

我与影子孤独终老i 提交于 2019-12-05 01:23:13
问题 I currently work on a simple business process with the wso2 Business Process Server in Eclipse Developer Studio. I have created a little bpel process with an “if” condition. I got it to work on the server without problems. But, I had to make my “if” condition in the source code, I was not able to configure the if component per gui. I always get the following error when I click on the “Details” tab of the “if” component: An error has occurred. See error log for more details. org.eclipse.ui

WSO2 Community Experiences [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-04 23:33:15
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . In my current role I have been asked to evaluate a number of various SOA Governance stacks. One stack in particular, WSO2, caught my eye as it appeared to be enterprise-ready, and it had an open-source feel. On the WSO2 website,

Do Policy Intersection in WSO2ESB Class Mediator

牧云@^-^@ 提交于 2019-12-04 23:26:58
I've created a Class Mediator in which I want to intersect two policies. I've created the Class Mediator with Carbon Studio for Eclipse, which automatically adds some predefined libs to the build path of my project. One of the libs is neethi-2.0.4.wso2v1.jar. If I want to use the intersect-method I get an exception. If I have a look at the source I see that the intersect-method just throws an "UnsupportedOperationException". So the given neethi lib is useless for intersection, therefore I want to use the newest Neethi lib (aka neethi-3.0.2.lib) for intersection inside my class mediator. Could

wso2 carbon hacking - eclipse development environment set up steps

笑着哭i 提交于 2019-12-04 21:41:37
It would be great if the carbon source tree could be set up in eclipse so that eclipse can be used for building and running carbon. Is this possible? How do the WSO2 carbon developers set up their development environments? For example based on eclipse 4.3 RC2 Java EE: $ svn checkout http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.1.0 wso2carbon $ cd wso2carbon $ mvn install -Dmaven.test.skip=true (first ensure you have enough permgen space, e.g. set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M ) $ mvn eclipse:eclipse ensure eclipse M2_REPO variable points to your ~/.m2/repository folder

Client giving error when invoking a secured web service

百般思念 提交于 2019-12-04 21:16:18
I have written a client that invokes webservice. My client is: String publisherEPR = "https://abc:8280/services/ProviderPublication"; protected void publicationOpenSession(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("Inside publicationOpenSession"); date = new Date(); namespace = "http://www.openoandm.org/xml/ISBM/"; fac = OMAbstractFactory.getOMFactory(); OMNamespace ns = fac.createOMNamespace(namespace, "ns1"); OMElement result = null; channelURI = request.getParameter("TxtPublisher1ChannelURI"); textfield = request