-
Open your API Portal in a new browser tab and log in with your developer account.
If you closed the tab from earlier and don’t have it bookmarked, you can follow these steps to find your API Portal URL:
-
Click on the
API Products
tab. -
Notice that the old
inventory
product is no longer available. It has been replaced by your newThink Inventory
product. -
Click on the
Think Inventory
product.Note:
There is no need to re-subscribe your application! Using theReplace
state change control migrated your subscription for you, so you’re already entitled to the API’s contained in the new Product’s Default Plan - including theoauth
API. -
Click on the
inventory
API from the palette menu on the left. -
Select the
GET /Items
operation. Notice that we now have an additional OAuth security requirement defined. -
Scroll down to browse the invocation form.
-
Select your subscribed application from the
Client ID
drop-down menu. -
Paste your secret into the
Client secret
field. -
In the
Username
andPassword
fields, you can enter any text.Note:
Recall that when we configured the OAuth API, we provided an Authentication URL as the method for validating the user credentials. The URL that we provided will respond back OK with any credentials. -
Click on the
Authorize
button to obtain an OAuth token.The API Portal will call out to the OAuth Token URL with your client credentials and user credentials.
The OAuth API which you built in lab 3 will intercept the request, validate the credentials, and generate a token.
-
Click on the
Call operation
button to invoke the API. The request will include the OAuth bearer token in theAuthorization
header. -
To prove that the token is being validated, you can either remove or modify the contents of the
Access Token
field, then click theCall operation
button again and see the401 Unauthorized
error response.
Continue
Proceed to Lab 5 - Advanced API Assembly.