Quantcast
Channel: Sanjeewa Malalgoda's Blog
Browsing all 220 articles
Browse latest View live

How to use Authorization code grant type (Oauth 2.0) with WSO2 API Manager 1.8.0

1. Create API in WSO2 API Manager publisher and create application in API store. When you create application give some call back url as follows. http://localhost:9764/playground2/oauth2clientSince i'm...

View Article


Image may be NSFW.
Clik here to view.

Deploy WSO2 API Manager across multiple datacenters - High availability for...

Here in this post i will discuss how we can deploy WSO2 API Manager across multiple data centers.Problems with normal clustered deployment across multiple data centers.The databases are accessed (by...

View Article


How to add API using curl commands using 3 steps in UI design/implement/manage

 Listing these instructions as it can help to anyone.Create a API with the normal add api with design/implement/manage calls. Execute following three commands so the API will be created, this is how we...

View Article

Planning large scale API Management deployment with clustering - WSO2 API...

When we do capacity we need to consider several factors. Here i will take basic use case as scenario and explain production recommendations.With default configuration we can have following TPS per...

View Article

How to import, export APIs with WSO2 API Manager 1.9.0

API Manager 1.9.0 we have introduced API import/export capability. With that we will be able to to download API from one platform and export it to other platform.With this feature we will retrieve all...

View Article


How to enable AWS based clustering mode in WSO2 Carbon products (WSO2 API...

To try aws based clustering on AWS you can change the membership scheme to AWS, and then provide the following parameters in the clustering section of the axis2.xml file. Before you try this on API...

View Article

Enable debug logs and check token expire time in WSO2 API Manager

To do that you can enable debug logs for following class.org.wso2.carbon.apimgt.impl.dao.ApiMgtDAOThen it will print following loglog.debug("Checking Access token: " + accessToken + " for validity." +...

View Article

WSO2 API Manager CORS support and how it works with API gateway - APIM 1.8.0

According to wiki cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts, JavaScript, etc.) on a web page to be requested from another domain outside the...

View Article


How to send specific status code and message based on different...

In WSO2 API Manager all authentication faliures will hit auth failure handler. There you will be able to change message body, content, header based on internal error codes.As example if we got resource...

View Article


How to write custom throttle handler to throttle requests based on IP address...

Please find the sample source code for custom throttle handler to throttle requests based on IP address. Based on your requirements you can change the logic here.package...

View Article

Image may be NSFW.
Clik here to view.

How to add secondry user store domain name to SAML response from shibboleth...

When we configure shibboleth as identity provider in WSO2 Identity server as described in this article(http://xacmlinfo.org/2014/12/04/federatation-shibboleth/) deployment would be something like...

View Article

How to change endpoit configurations, timeouts of already created large...

How to add additional properties for already create APIs. Sometimes in deployments we may need to change endpoint configurations and some other parameters after we created them.For this we can go to...

View Article

How to use SAML2 grant type to generate access tokens in web applications...

Exchanging SAML2 bearer tokens with OAuth2 (SAML extension grant type)SAML 2.0 is an XML-based protocol. It uses security tokens containing assertions to pass information about an enduser between a...

View Article


How to get MD5SUM of all files available in conf directory

We can use following command to get MD5SUM of all files available in the system. We can use this approach to check status of configuration file of multiple servers and check those are same or not.find...

View Article

Image may be NSFW.
Clik here to view.

How to handle ditributed counter across cluster when each node contribute to...

Handle throttling in distributed environment is bit tricky task. For this we need to maintain time window and counters per instance and also those counters should be shared across cluster as well....

View Article


How to minimize solr idexing time(registry artifact loading time) in newly...

In API Management platform sometimes we need to add store and publisher nodes to cluster. But if you have large number of resources in registry solr indexing will take some time.Solr indexing will be...

View Article

How to avoid getting incorrect access tokens due to constraint violation when...

Sometimes you may see following behavior when we have very high load on token API.1. Call https://localhost:8243/token2. Get constraint error.{org.wso2.carbon.identity.oauth2.dao.TokenPersistenceTask}...

View Article


How to increase time out value in WSO2 API Manager

When we increase timeout value in API Manager we have to set 3 properties.1) Global timeout defined in synapse.properties (\repository\conf\synapse.properties)...

View Article

How to install Redis in ubuntu and send event

Please follow below instructions to install and use RedisType following commands in command line.wget http://download.redis.io/releases/redis-stable.tar.gztar xzf redis-stable.tar.gzcd...

View Article

Sample data source configuration for WSO2 Servers to connect jdbc using LDAP

Please find following sample data source configuration to access jdbc using LDAP connection.       <datasource>            <name>DATASOURCE_NAME</name>...

View Article
Browsing all 220 articles
Browse latest View live