This post is intended to show you robust functionality of Local Test Manager(LTE) . Here, we are creating a Native OAuth Provider using Local Test Environment (LTE) and API Designer replicating the steps shown in this knowledge center tutorial- NativeOauthProviderTutorial

The pre-requisite for following this post is you have installed LTE and it’s running. If you haven’t installed yet, here’s the blog post detailing the installation steps – https://developer.ibm.com/apiconnect/2019/08/23/intall-local-test/

I have installed the LTE and it is running


  • Now, login into LTE as admin user. I’m using “apicnew” as a wrapper to differentiate the different versions installed.

$apic login –server https://localhost:2000 –username admin –password 7iron-hide –realm admin/default-idp-1


  • Before, we start creating Authentication URL user registry, you will need the integration information of the authentication url

  $apic integrations:list-all –server https://localhost:2000


  •  Create the user registry file. In this example, I have created user registry httpur.yaml that contains authentication url integration information for admin porg. You have successfully completed steps 1 – 6 in the tutorial (link above)

$apic user-registries:create –server https://localhost:2000 –org admin httpur.yml


  • Create an oauth provider of type native. I have created the oauth provider oauthapp.yml file for admin porg. With this you have successfully completed steps 7 – 18 in the tutorial.
  • $apic oauth-providers:create –server https://localhost:2000 –org admin oauthapp.yml


  • Now that I have configured my oauth provide, I have to configure my sandbox catalog. Before that, login as shavon

$apic login –server https://localhost:2000 –username shavon –password 7iron-hide –realm provider/default-idp-2


  • Here I have a catalog setting file sboauth.yml containing the oauth provider url information. With this you have successfully completed steps 19-26 in the tutorial.
  • $apic configured-oauth-providers:create –server https://localhost:2000 –org localtest –catalog sandbox –scope catalog sboauth.yml


  • Open the API Designer connecting to LTE. Open an API and go to security tab. As seen from the screenshot, I’m able to select the oauth provider “oauthapp” that we just created.


The yaml files used in this demo can be found in this  repository

With LTE you can manage authentication and security of APIs locally on your laptop without having to connect to API Manager cloud instance. Developers can enjoy the ability to develop and test APIs independently with LTE.

Get started here to install LTE and try out these exciting features.

Join The Discussion

Your email address will not be published. Required fields are marked *