Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SCIM resources serialization and validation with Pydantic

License

NotificationsYou must be signed in to change notification settings

python-scim/scim2-models

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.

What's SCIM anyway?

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.

Installation

pip install scim2-models

Usage

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

Stars

Watchers

Forks

Sponsor this project

 

Contributors7

Languages


[8]ページ先頭

©2009-2025 Movatter.jp