Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7
SCIM resources serialization and validation with Pydantic
License
python-scim/scim2-models
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Pydantic models for SCIM schemas defined inRFC7643 andRFC7644.
This library provides utilities to parse and produce SCIM2 payloads, and handle them with native Python objects.It aims to be used as a basis to build SCIM2 servers and clients.
SCIM stands for System for Cross-domain Identity Management, and it is a provisioning protocol.Provisioning is the action of managing a set of resources across different services, usually users and groups.SCIM is often used between Identity Providers and applications in completion of standards like OAuth2 and OpenID Connect.It allows users and groups creations, modifications and deletions to be synchronized between applications.
pip install scim2-models
Check thetutorial and thereference for more details.
fromscim2_modelsimportUserimportdatetimepayload= {"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],"id":"2819c223-7f76-453a-919d-413861904646","userName":"bjensen@example.com","meta": {"resourceType":"User","created":"2010-01-23T04:56:22Z","lastModified":"2011-05-13T04:42:34Z","version":'W\\/"3694e05e9dff590"',"location":"https://example.com/v2/Users/2819c223-7f76-453a-919d-413861904646", },}user=User.model_validate(payload)assertuser.user_name=="bjensen@example.com"assertuser.meta.created==datetime.datetime(2010,1,23,4,56,22,tzinfo=datetime.timezone.utc)
scim2-models belongs in a collection of SCIM tools developed byYaal Coop,withscim2-client,scim2-tester andscim2-cli
About
SCIM resources serialization and validation with Pydantic
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.