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.