How to use Loader.io to perform load test for OAuth2 flows - Part 1

[Loader.io](https://loader.io) is a free load testing service that allows you to load test

Posted by RITVN on December 18, 2017

How to use Loader.io to test performance for OAuth2

Phan Binh Minh (PBM), senior QA of the Safewhere team, knows a thing or two about doing load testing which she wrote about in this post.

Loader.io is a free load testing service that allows you to load test your web-apps and apis with huge amount of concurrent connections.

Beside web-interface, Loader.io also supports API to register and verify testing domains, create and run tests, view summary result data, and access a list of IP addresses that loader might send requests to your app from during a test.

With very simple steps, I can easily setup, run a test and view the test result:

  1. Add your target host: use the web-interface or API to register your app for testing
  2. Run a test
  3. Watch the test in real-time

This post will walk you through how to use Loader.io to test performance for OAuth2 flows: refresh token flow and client credentials flow.

Set up target host

After registering a free Loader.io account, I need to register a target host that will be tested by clicking [+ New Host]

loader-io-new-host

Enter domain of the web application and click [Next: Verify] to make sure Loader.io can reach the domain

loader-io-verify-host

Loader.io needs to verify that the domain belongs to us. I can do this by downloading the verification token file and uploading it to our server. Click on the [Verify] button to do verification.

loader-io-verification

If all are done correctly, loader.io will display a successful result:

loader-io-successful

We are hiring

Would you like to work with the coolest IT guys in Vietnam? Apply to one of the following jobs:

C# / .Net Developer
Senior / Specialist
1000 – 3000 USD

Job requires a high level of technical skills and experience within Microsoft technologies and offers high salary, exciting projects, and constant challenges in terms of technology and design.

Tell me more
Xamarin Developer
Experienced
800 – 1500 USD

Want to have fun developing innovative Xamarin products? We are developing a number of exciting games and social applications of our own as well as supporting third party clients.

Tell me more
Technical Writer
Advanced English
2000 – 4000 USD

Job requires both good English as well as the ability to understand complex technical subjects and systems. You will mainly be writing SEO articles and guidelines for our many products.

Tell me more
Front-End Developers
Experienced
1000 – 2500 USD

We are looking to fill Developer positions with a new team that uses JavaScript, TypeScript, HTML5, AngularJS.
Knowing Ionic framework or NodeJs is a plus, but is not mandatory.

Tell me more
.NET/WPF Developers
Advanced English
1000 – 3000 USD

2 Senior Developer positions in an Offshore Development Center team. You will work directly with a Danish Project Manager at our Vietnam office. The initial project is for a multinational French company.

Tell me more
Ruby/Cucumber QA/Test engineering
Advanced English
1000 – 2000 USD

1 Senior QA/Test Engineer in an Offshore Development Center team. You will work directly with a Danish Project Manager at our Vietnam office. The initial project is for a multinational French company.

Tell me more