OAuth 2.0 Load testing with Wso2IS 4.0.0

15 Nov

This is simple Jmeter sample to do the load testing on Oauth 2.0 with wso2 identity server
Download jmeter script here.

First you have to register any application on IS as follows (no need to host the application)

Take the client_ID and Client_Secret then encode to Base64 format. You can easily do it by using the following url –
ex:/ Client_ID:Client_Secret

Thread Group – oauth_get_access_token_thread_group
Here we are request the access token buy using the generated base64 encoded value
We are sending 10 oauth request to take the “access token” so first you have to register the 10 applications in IS as follows

Generate the base64 encoded value for each application and place those in jmeter script under “authorization

What the jmere is doing –

1. Sending the request with base64 encoded value and take the “access token”
2. Save those access token in variable
3. Send validation request with those saved access tokens

In the Jmeter script you have to configure following stuff as well under “wso2_oauth_load_test” Test plan

Leave a comment

Posted by on November 15, 2012 in Identity Server, java, wso2


Tags: , , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: