Introduction
Having trouble with your POST or CURL requests to the token endpoint? This guide provides a step-by-step walkthrough to help you test your connection using Postman. Whether you're a developer or a system administrator, this guide will help you diagnose and resolve issues effectively.
Table of Contents
1. Prerequisites
-
Download and install Postman if you haven't already.
-
Have your API credentials and endpoint details handy.
2. Open Postman
Launch the Postman application on your computer.
3. Configure Request Type and Endpoint
-
In Postman, select the POST request type from the dropdown menu.
-
Enter your token endpoint URL in the address bar. For example, https://stg-id.singpass.gov.sg/token.
-
Make sure the x-www-form-urlencoded option is selected.
4. Set Request Body
-
Navigate to the Body tab in Postman.
-
Key in your parameters in unencoded format. The parameters may include:
-
client_id
-
grant_type
-
client_assertion_type
-
code
-
scope
-
redirect_uri
-
client_assertion
-
5. Configure Headers
Go to the `Headers` tab in Postman.
-
Add the necessary headers as per your API specifications.
-
Create another parameter for `charset` with value as specified in our specifications
6. Send the Request
-
Once all configurations are set, click the Send button.
-
You should receive a response from the endpoint. Analyze the response to diagnose any issues or confirm that the connection is working as expected.
7. Conclusion
By following these steps, you should be able to test your token endpoint connection effectively. If you encounter any issues, refer back to this guide and double-check your configurations. Happy testing!
Comments
0 comments
Please sign in to leave a comment.