Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.35 KB

File metadata and controls

20 lines (13 loc) · 1.35 KB

Test deployed service

  1. Testing Backend APIs directly with an Azure Active Directory Token

    • Generate Azure Active Directory token (Refer to steps 1 - 5) to call secure Apis of Azure Communication Services Authentication Hero sample.

    • Invoke the API Once you get the access token, make a GET request to /api/token endpoint with the access token as a Authorization Bearer header. Verify you get a successful status code (i.e. 200).

      curl --location --request GET 'https://<replace with URL on your provisioned App Service>/api/token  OR http://localhost:5000/api/token' \
      
      --header 'Authorization: Bearer <put access token here>'

      Note: If you are facing issues running the curl command, then try importing (File -> import -> raw text, paste the curl command and continue) the curl command in Postman and running it there

  2. Test the APIs using the MinimalClient (This will test the GET /api/token, and POST /api/user endpoints)

    • Please take a look at the MinimalClient README.md MinimalClient