Debian Codegraph @

src/auth0/management/types/resource_server.py

raw symbols SCIP
1 # This file was auto-generated by Fern from our API Definition.
2
3 import typing
4
5 import pydantic
6 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7 from .resource_server_authorization_policy import ResourceServerAuthorizationPolicy
8 from .resource_server_consent_policy_enum import ResourceServerConsentPolicyEnum
9 from .resource_server_proof_of_possession import ResourceServerProofOfPossession
10 from .resource_server_scope import ResourceServerScope
11 from .resource_server_subject_type_authorization import ResourceServerSubjectTypeAuthorization
12 from .resource_server_token_dialect_response_enum import ResourceServerTokenDialectResponseEnum
13 from .resource_server_token_encryption import ResourceServerTokenEncryption
14 from .signing_algorithm_enum import SigningAlgorithmEnum
15
16
17 class ResourceServer(UniversalBaseModel):
18 id: typing.Optional[str] = pydantic.Field(default=None)
19 """
20 ID of the API (resource server).
21 """
22
23 name: typing.Optional[str] = pydantic.Field(default=None)
24 """
25 Friendly name for this resource server. Can not contain `<` or `>` characters.
26 """
27
28 is_system: typing.Optional[bool] = pydantic.Field(default=None)
29 """
30 Whether this is an Auth0 system API (true) or a custom API (false).
31 """
32
33 identifier: typing.Optional[str] = pydantic.Field(default=None)
34 """
35 Unique identifier for the API used as the audience parameter on authorization calls. Can not be changed once set.
36 """
37
38 scopes: typing.Optional[typing.List[ResourceServerScope]] = pydantic.Field(default=None)
39 """
40 List of permissions (scopes) that this API uses.
41 """
42
43 signing_alg: typing.Optional[SigningAlgorithmEnum] = None
44 signing_secret: typing.Optional[str] = pydantic.Field(default=None)
45 """
46 Secret used to sign tokens when using symmetric algorithms (HS256).
47 """
48
49 allow_offline_access: typing.Optional[bool] = pydantic.Field(default=None)
50 """
51 Whether refresh tokens can be issued for this API (true) or not (false).
52 """
53
54 allow_online_access: typing.Optional[bool] = pydantic.Field(default=None)
55 """
56 Whether Online Refresh Tokens can be issued for this API (true) or not (false).
57 """
58
59 allow_online_access_with_ephemeral_sessions: typing.Optional[bool] = pydantic.Field(default=None)
60 """
61 Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false).
62 """
63
64 skip_consent_for_verifiable_first_party_clients: typing.Optional[bool] = pydantic.Field(default=None)
65 """
66 Whether to skip user consent for applications flagged as first party (true) or not (false).
67 """
68
69 token_lifetime: typing.Optional[int] = pydantic.Field(default=None)
70 """
71 Expiration value (in seconds) for access tokens issued for this API from the token endpoint.
72 """
73
74 token_lifetime_for_web: typing.Optional[int] = pydantic.Field(default=None)
75 """
76 Expiration value (in seconds) for access tokens issued for this API via Implicit or Hybrid Flows. Cannot be greater than the `token_lifetime` value.
77 """
78
79 enforce_policies: typing.Optional[bool] = pydantic.Field(default=None)
80 """
81 Whether authorization polices are enforced (true) or unenforced (false).
82 """
83
84 token_dialect: typing.Optional[ResourceServerTokenDialectResponseEnum] = None
85 token_encryption: typing.Optional[ResourceServerTokenEncryption] = None
86 consent_policy: typing.Optional[ResourceServerConsentPolicyEnum] = None
87 authorization_details: typing.Optional[typing.List[typing.Any]] = None
88 proof_of_possession: typing.Optional[ResourceServerProofOfPossession] = None
89 subject_type_authorization: typing.Optional[ResourceServerSubjectTypeAuthorization] = None
90 authorization_policy: typing.Optional[ResourceServerAuthorizationPolicy] = None
91 client_id: typing.Optional[str] = pydantic.Field(default=None)
92 """
93 The client ID of the client that this resource server is linked to
94 """
95
96 if IS_PYDANTIC_V2:
97 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
98 else:
99
100 class Config:
101 frozen = True
102 smart_union = True
103 extra = pydantic.Extra.allow