(Optional) Testing the Cognito server

Test the built-in Amazon Cognito server by sending a request.

  1. Right click in the code block of a method, and select Run Test(s) from the popup menu.

    The Web API Tester is launched.

  2. In the Web API Tester, click the plus (+) sign to create a new request:

    URL: http://localhost:5000/Cognito/getToken

    HTTP method: POST

    Content-Type: application/json

    Request:

    {"username":"admin@test.com", "password":"appeon123", "ClientSecret":"1prlm08gm3aptlokcbai88ekiegff9mqbc98nhebfart5g4a3cr2"}
    
  3. Click Send to send the request, and the API returns the token information if validation is successful.