This quickstart will provide an example of User and Group custom stores. SCIM's data model is extensive; resources often contain many attributes that applications have no interest in storing. The SimpleApp example demonstrates how you might build a custom store to handle just the attributes that your application requires.
The SimpleApp is compatible with both Azure AD and Okta implementations of SCIM.
SimpleApp is on GitHub at the following location.
The samples folder contains a 'Postman' folder that contains example SCIM requests. You can use these SCIM requests to exercise the SimpleApp. The folder contains two JSON files:-
To run the tests:
- Download & install Postman
- Import files from 'Postman' folder into postman
- Select the environment 'Rsk.ScimExamples.Env' on postman ui
- Just run the tests from the 'Rsk.ScimExamples' postman collection
The sample actions in the postman script cover the basic SCIM operations for managing resources by using the following HTTP verbs. (See screenshot above):
SimpleApp has a simple user interface. Running the SimpleApp will launch a browser containing the user interface.
The user interface displays an overview of existing users and roles.
The example uses Entity Framework (EF) with an in-memory provider, so no database setup is required. The files of interest are:-
The AppUserStore.cs and AppRoleStore.cs files contain a custom implementation of IScimStore