| 1 |
|
| 2 |
|
| 3 |
import datetime as dt |
| 4 |
import typing |
| 5 |
|
| 6 |
import pydantic |
| 7 |
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel |
| 8 |
from .scim_mapping_item import ScimMappingItem |
| 9 |
|
| 10 |
|
| 11 |
class ScimConfiguration(UniversalBaseModel): |
| 12 |
connection_id: str = pydantic.Field() |
| 13 |
""" |
| 14 |
The connection's identifier |
| 15 |
""" |
| 16 |
|
| 17 |
connection_name: str = pydantic.Field() |
| 18 |
""" |
| 19 |
The connection's name |
| 20 |
""" |
| 21 |
|
| 22 |
strategy: str = pydantic.Field() |
| 23 |
""" |
| 24 |
The connection's strategy |
| 25 |
""" |
| 26 |
|
| 27 |
tenant_name: str = pydantic.Field() |
| 28 |
""" |
| 29 |
The tenant's name |
| 30 |
""" |
| 31 |
|
| 32 |
user_id_attribute: str = pydantic.Field() |
| 33 |
""" |
| 34 |
User ID attribute for generating unique user ids |
| 35 |
""" |
| 36 |
|
| 37 |
mapping: typing.List[ScimMappingItem] = pydantic.Field() |
| 38 |
""" |
| 39 |
The mapping between auth0 and SCIM |
| 40 |
""" |
| 41 |
|
| 42 |
created_at: dt.datetime = pydantic.Field() |
| 43 |
""" |
| 44 |
The ISO 8601 date and time the SCIM configuration was created at |
| 45 |
""" |
| 46 |
|
| 47 |
updated_on: dt.datetime = pydantic.Field() |
| 48 |
""" |
| 49 |
The ISO 8601 date and time the SCIM configuration was last updated on |
| 50 |
""" |
| 51 |
|
| 52 |
if IS_PYDANTIC_V2: |
| 53 |
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) |
| 54 |
else: |
| 55 |
|
| 56 |
class Config: |
| 57 |
frozen = True |
| 58 |
smart_union = True |
| 59 |
extra = pydantic.Extra.allow |