| 1 |
|
| 2 |
|
| 3 |
import typing |
| 4 |
|
| 5 |
import pydantic |
| 6 |
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel |
| 7 |
from .linked_client_configuration import LinkedClientConfiguration |
| 8 |
|
| 9 |
|
| 10 |
class ExpressConfiguration(UniversalBaseModel): |
| 11 |
""" |
| 12 |
Application specific configuration for use with the OIN Express Configuration feature. |
| 13 |
""" |
| 14 |
|
| 15 |
initiate_login_uri_template: str = pydantic.Field() |
| 16 |
""" |
| 17 |
The URI users should bookmark to log in to this application. Variable substitution is permitted for the following properties: organization_name, organization_id, and connection_name. |
| 18 |
""" |
| 19 |
|
| 20 |
user_attribute_profile_id: str = pydantic.Field() |
| 21 |
""" |
| 22 |
The ID of the user attribute profile to use for this application. |
| 23 |
""" |
| 24 |
|
| 25 |
connection_profile_id: str = pydantic.Field() |
| 26 |
""" |
| 27 |
The ID of the connection profile to use for this application. |
| 28 |
""" |
| 29 |
|
| 30 |
enable_client: bool = pydantic.Field() |
| 31 |
""" |
| 32 |
When true, all connections made via express configuration will be enabled for this application. |
| 33 |
""" |
| 34 |
|
| 35 |
enable_organization: bool = pydantic.Field() |
| 36 |
""" |
| 37 |
When true, all connections made via express configuration will have the associated organization enabled. |
| 38 |
""" |
| 39 |
|
| 40 |
linked_clients: typing.Optional[typing.List[LinkedClientConfiguration]] = pydantic.Field(default=None) |
| 41 |
""" |
| 42 |
List of client IDs that are linked to this express configuration (e.g. web or mobile clients). |
| 43 |
""" |
| 44 |
|
| 45 |
okta_oin_client_id: str = pydantic.Field() |
| 46 |
""" |
| 47 |
This is the unique identifier for the Okta OIN Express Configuration Client, which Okta will use for this application. |
| 48 |
""" |
| 49 |
|
| 50 |
admin_login_domain: str = pydantic.Field() |
| 51 |
""" |
| 52 |
This is the domain that admins are expected to log in via for authenticating for express configuration. It can be either the canonical domain or a registered custom domain. |
| 53 |
""" |
| 54 |
|
| 55 |
oin_submission_id: typing.Optional[str] = pydantic.Field(default=None) |
| 56 |
""" |
| 57 |
The identifier of the published application in the OKTA OIN. |
| 58 |
""" |
| 59 |
|
| 60 |
if IS_PYDANTIC_V2: |
| 61 |
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) |
| 62 |
else: |
| 63 |
|
| 64 |
class Config: |
| 65 |
frozen = True |
| 66 |
smart_union = True |
| 67 |
extra = pydantic.Extra.allow |