Skip to content

Test Your SCIM Endpoint

Marcus Carvalho edited this page Feb 27, 2020 · 14 revisions

Test Your SCIM Endpoint

Provided below are test cases that you can use to ensure that your SCIM endpoint is compliant with the SCIM RFC.

All the endpoints are are at the {host}/scim/ directory and can be interacted with standard HTTP requests. The /scim/ route can be modified in the ControllerConstant.cs file located in AzureADProvisioningSCIMreference > ScimReferenceApi > Controllers.

Configure Postman

  1. Download the Postman client.
  2. Import the Postman collection by copying the link https://aka.ms/ProvisioningPostman and pasting it into Postman as shown below: Postman
  3. Create a Postman environment for testing by specifying the following variables below:
    • If running the project locally using IIS Express:
      Variable Value
      Server localhost
      Port :44359 (* Don't forget the ':')
      API scim
    • If running the project locally using Kestrel:
      Variable Value
      Server localhost
      Port :5001 (* Don't forget the ':')
      API scim
    • If hosting the endpoint in Azure:
      Variable Value
      Server scimreferenceapi19.azurewebsites.net
      Port (* leave it blank)
      API scim

Run the Postman Tests

The SCIM endpoints are secured, before you connecting you need to get a security token. In the sample code, you can use the {host}/scim/token endpoint to generate a self-signed token. Use "Get Key" from the Postman Collection to send a GET request to the token endpoint and retrieve the security token (the resulting token will be stored in the "token" variable and used in the subsequent requests). Postman

Testing Users

Testing Groups

Clone this wiki locally