How To Get an AppToApp Token?
Last updated
Last updated
Open Postman. In this example the following version is used v7.23.0.
Go to “Preferences” in the main navigation and select “certificates” tab.
Postman’s native apps provide a way to view and set SSL certificates on a per domain basis.
3. To manage your client certificates, click the wrench icon on the right side of the header toolbar, choose “Settings”, and select the Certificates tab.
4. To add a new client certificate, click the Add Certificate link.
5. In the Host field, enter the domain (without protocol) of the request URL for which you want to use the certificate, for example, https://test-ktbankag.identityserver.apigo.market/
.
6. You can also specify a custom port to associate with this domain in the Port field. This is optional. If left empty, the default HTTPS port (443) will be used.
7. Choose your client certificate file in the CRT file field. Currently, Postman only supports the CRT format. Support for other formats (like PFX) will come soon.
8. Choose your client certificate key file in the KEY file field.
If you used a passphrase while generating the client certificate, you’ll need to supply the passphrase in the Passphrase field. Otherwise, leave it blank.
Once your certificate is added, it should appear in the client certificates list.
Note
You should not have multiple certificates set for the same domain. If you have multiple ones set, only the last one added will be used.
9. Add a body: customerId with the value of your API Key (ClientId)
10. Run the request with the following result. auth_req_id is available in the response body.
11. Test the request with the previous parameters.
12. Open the Postman Console (Main Navigation –> View –> Show Postman console)
13. Re-run the request and see the results in the postman console to verification
If you make a request to a configured domain, the certificate will automatically be sent with the request, provided you make the request over HTTPS.
Use https to make sure the certificate is sent.