Get Access Token
The following methods will guide you through fetching a new access token in Postman
Method 1 - Getting Auth Token Inside a Request
- From any Postman request imported from Nortridge API swagger, go to the Authorization tab.
- Select OAuth 2.0 for TYPE
- Click on Get New Access Token
- Enter in the required fields for authentication.
- Click on Request Token
- If access is granted a new token will generate. Click on Use Token to apply the newly generated token to the request.
Method 2 - Creating a Separate Postman Request for a New Token
- Create a new POST request. Endpoint will be {Base_URL_Auth_Server}/core/connect/token
- Go to the Body and select x-www-form-urlencoded.
- Add the required keys and it's corresponding values required for Access Token request.
grant_type
value needs to bepassword
- Click on SEND to fetch the token. If successful you will get a JSON response. Token is returned in access_token
{
"access_token": "467d2cad0169a216dca26e2c77f67137",
"expires_in": 300,
"token_type": "Bearer"
}
- To use the token, go to any other POST or GET request.
- Go to the Authorization tab. Select Bearer Token for Type.
- Enter the newly acquired token in the Token field.
Updated almost 3 years ago