TIBCO Mashery OAuth 2.0 implementation guides you how to create API along with various ways of obtaining access and generating tokens. Follow the below steps to know how Mashery OAuth 2.0 works.
Step 1: - First you need to create one API definition.
Step 2: -- Move to the API definitions and click on the desired API.
Step 3: -- A screen with a default method appears now.
Step 4: -- Go to Security Settings in left hand side of the menu bar
Step 5: -- You will see the Following things which shows that OAuth 2.0 as Disabled, it is wise to enable that.
Step 6: - After enabling the OAuth 2.0, follow the steps to enable things as shown below.
Step 7: - Now, just go back to the path “API Definitions /Acme OAuth” and click on the below mentioned button to create auth endpoint
After clicking on this token, you need to create one more endpoint and that will be visible now
Step 8: After enabling it, you need to click on the default endpoint
Step 9: - Click the default option and go to key and method Detection as shown below and configure like this and then hit save.
Step 10: Now, we need to create one package for the same definition. So, go to home: -- API Packages
Just create one new package and create one plan name Starter
Click on OAuth. Now, you need to create one plan under “Starter” as shown below.
To make it accessible, click the icon (settings).
Activate the mentioned options for the same.
Go to the access control and try to make the plan accessible to users
Next, go to Plan Designer and assign a package to particular API and endpoints as shown and then click Save .
Step :11 We need to update its IO Doc. Go to design and move to the Interactive Documentation