User Tools

Site Tools


dev:app_store_example_with_postman

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:app_store_example_with_postman [2016/08/24 09:46] sudev:app_store_example_with_postman [2020/12/03 09:32] (current) su
Line 16: Line 16:
 //This returns info about the logged-in user.// //This returns info about the logged-in user.//
  
-{{ :dev:postman01.png?direct&300 |}}+{{ :dev:postman01.png?direct&600 |}}
  
 If you attempt to execute this directly, you will receive an unauthorized error like the following: If you attempt to execute this directly, you will receive an unauthorized error like the following:
Line 28: Line 28:
 This is because the App Store %%API%% is secured using OAuth2.  This is because the App Store %%API%% is secured using OAuth2. 
  
-To prepare an authorization request, select "Authorization", type "OAuth 2.0" and click "Get New Access Token".+To prepare an authorization request, select: **Authorization OAuth 2.0**
  
-{{ :dev:postman02.png?direct&300 |}}+Specify "add authorization data to request headers"
 + 
 +{{ :dev:postman01b.png?direct&600 |}} 
 + 
 +Then click **Get New Access Token**.
  
 You will be prompted for the following Authorization parameters: You will be prompted for the following Authorization parameters:
  
 +{{ :dev:postman02.png?direct&600 |}}
 +
 +^ Grant Type | Authorization Code |
 +^ Call Back %%URL%% | %%https://app.getpostman.com/oauth2/callback%% |
 ^ Auth %%URL%% | %%https://appstore.intelligentplant.com/AuthorizationServer/OAuth/Authorize%% | ^ Auth %%URL%% | %%https://appstore.intelligentplant.com/AuthorizationServer/OAuth/Authorize%% |
 ^ Access Token %%URL%% | %%https://appstore.intelligentplant.com/AuthorizationServer/OAuth/Token%% | ^ Access Token %%URL%% | %%https://appstore.intelligentplant.com/AuthorizationServer/OAuth/Token%% |
Line 39: Line 47:
 ^ Client Secret | [We'll give you this if you ask] | ^ Client Secret | [We'll give you this if you ask] |
 ^ Scope | %%UserInfo%% | ^ Scope | %%UserInfo%% |
-Grant Type Authorization Code |+Client AuthenticationSend as Basic Auth header | 
  
 This returns an Access Token. This returns an Access Token.
  
-{{ :dev:postman03.png?direct&300 |}}+{{ :dev:postman03.png?direct&600 |}}
  
 Select "Use Token", try sending the %%API%% request again, and this time we get the %%UserInfo%% result. Select "Use Token", try sending the %%API%% request again, and this time we get the %%UserInfo%% result.
  
-{{ :dev:postman04.png?direct&300 |}}+{{ :dev:postman04.png?direct&600 |}}
  
  
dev/app_store_example_with_postman.1472031997.txt.gz · Last modified: 2016/08/24 09:46 by su