wso2

How to create a .NET client for a wso2 Secure Token Service

旧时模样 提交于 2020-01-14 08:42:07
问题 I need to create a .NET client for a wso2 Secure Token Service. Normally I would create a simple console or WinForm project adding a Service Reference to it. The exposed WSDL would be turned in a set of classes that I can use to query the service and to properly manage its response. Unfortunately, the generated request and response classes are empty: just the class declaration without any property or method. This is similar to the behaviour described in this other (unanswered) Stack Overflow

I am unable to get the list of services with in the applicaton i.e.; wso2 governance registry? I am working with binary code

牧云@^-^@ 提交于 2020-01-14 05:34:53
问题 I am trying to get the list of services which are in the resource path /_system/governance/trunk/services. So initially I am trying to get the resource using registry api. I tried in two ways. one way is `CarbonContext cCtx = CarbonContext.getCurrentContext(); Registry registry = cCtx.getRegistry(RegistryType.SYSTEM_CONFIGURATION); String registryType = request.getParameter("registryType"); if(registryType != null) { registry = cCtx.getRegistry(RegistryType.valueOf(registryType)); } String

WSO2 API Manager 1.8 - Trying out XACML - Error creating the policy

空扰寡人 提交于 2020-01-14 03:27:49
问题 I am trying to see how XACML can be used with the API Manager for controlling access to some of the resources. I have followed the blog post here, http://wso2.com/library/articles/2014/02/use-of-wso2-api-manager-to-validate-fine-grained-policy-decisions-using-xacml/ I have also tried following one more post from the following link, http://niranjankaru.blogspot.fr/2014/11/user-role-based-access-to-api-using.html Also, I have gone through most of the Stackoverflow question regarding this topic.

Adding custom handler to specific API wso2 API-Manager

会有一股神秘感。 提交于 2020-01-13 18:05:29
问题 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 回答1: You can use API custom properties for this. Add a custom property (e.g. auth_mode=Inhouse )

WSO2 - disable HTTPS

☆樱花仙子☆ 提交于 2020-01-13 06:09:10
问题 How can I disable HTTPS for WSO2 Api Manager (admin/gw/other components)? We want to SSL-terminate on our front load-balancers - and not on the end WSO2-products. If I visit port 9763 I'll get redirected to 9443. We're running 2.1.0 deployed with the docker-images. 回答1: You have to do the following, Go to the $WSO2_HOME/repository/conf and open carbon.xml, and uncomment <EnableHTTPAdminConsole>true</EnableHTTPAdminConsole> Disable secure cookie parameter in $WSO2_HOME/repository/conf/tomcat

Wso2IS skip authenticationendpoint/login.do

坚强是说给别人听的谎言 提交于 2020-01-11 10:58:27
问题 Using java client, I have generated the SAMLRequest string Is there a way to post the whole data, and skip the IdentityServer login page? With the data which I pass, has to meet the authentication for SSO and then generate Oauth2Token. 回答1: You can use request path authentication and send the username, password in the same request, which will give you the SAML assertion. You can later use SAML2 bearer grant type to exchange that assertion to an oauth token. 来源: https://stackoverflow.com

How to create a custom asset-attributes.hbs for each new artifact for the STORE?

ε祈祈猫儿з 提交于 2020-01-11 10:21:30
问题 Im using WSO2 Governance Registry 5.2.0. When I create a new artifact type, it containt a lot of new fields (You create and define this XML in the CARBON ADMIN CONSOLE). So in the PUBLISHER you can see the new fields, create and consult a new item of the artifact. But the problem is in the STORE, I cannot see the this new fields. So in order to do this, I made the custom fields available by modifying GREG_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/greg-store-defaults

wso2 identity server - user self registration

空扰寡人 提交于 2020-01-11 06:46:10
问题 I'm rewording a question that I previously posted here. The default functionality for WSO2 Identity Server is to allow users to register user accounts for themselves. However, this is undesirable for my company. We only want to allow an administrator to create user accounts. Is it possible to disable the user self registration functionality in wso2 identity server? 回答1: Yes, you can remove this feature from the WSO2 Identity Server. Go to Configure --> Features --> Installed Features -->

getPayloadJSON returning an empty object

删除回忆录丶 提交于 2020-01-11 03:46:39
问题 I am doing some very simple script mediation as a test to see if I can change the payload being returned by my server. My unmediated payload comes out as: {"origin":"202.37.75.130"} Then I try doing a very simple check to see whether get and set work for payloads: <script language="js"> var older = mc.getPayloadJSON(); var newer=older; mc.setPayloadJSON(newer); </script> My result from this is: {"jsonObject":""} I have done testing that shows that setPayloadJSON() works, which means that my

How to deploy wso2 esb on websphere?

 ̄綄美尐妖づ 提交于 2020-01-10 05:36:04
问题 Is it possible to deploy WSO2 ESB 4.9.0 on websphere application server ? Last example found on google is from 2008 ... How is created the required war file ? Thanks 回答1: From WSO2 Carbon platform 4.0.0 release onwards WSO2 has dropped the official support for hosting WSO2 products on third party containers. So there is no official reference on how to run WSO2 products in third-party containers like WebSphere. One of the main reasons for this is the fact that the WSO2 Carbon container itself