Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10,065 changes: 9,928 additions & 137 deletions .fern/replay.lock

Large diffs are not rendered by default.

755 changes: 673 additions & 82 deletions reference.md

Large diffs are not rendered by default.

67 changes: 64 additions & 3 deletions src/auth0/management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@
ClientTokenExchangeTypeEnum,
ClientTokenVaultPrivilegedAccessWithCredentialId,
ClientTokenVaultPrivilegedAccessWithPublicKey,
ConflictSchema,
ConflictSchemaError,
ConnectedAccount,
ConnectedAccountAccessTypeEnum,
ConnectionAccessTokenUrloAuth1,
Expand Down Expand Up @@ -999,6 +1001,8 @@
CreateLogStreamSplunkRequestBody,
CreateLogStreamSumoRequestBody,
CreateOrganizationAllConnectionResponseContent,
CreateOrganizationClientRequestItem,
CreateOrganizationClientsResponseContent,
CreateOrganizationDiscoveryDomainResponseContent,
CreateOrganizationInvitationResponseContent,
CreateOrganizationResponseContent,
Expand Down Expand Up @@ -1871,6 +1875,8 @@
FedCmLoginGoogle,
FedCmLoginGooglePatch,
FedCmLoginPatch,
FedCmLoginGooglePatch,
FedCmLoginPatch,
FlowAction,
FlowActionActivecampaign,
FlowActionActivecampaignListContacts,
Expand Down Expand Up @@ -2500,6 +2506,7 @@
GetNetworkAclsResponseContent,
GetOrganizationAllConnectionResponseContent,
GetOrganizationByNameResponseContent,
GetOrganizationClientResponseContent,
GetOrganizationConnectionResponseContent,
GetOrganizationDiscoveryDomainByNameResponseContent,
GetOrganizationDiscoveryDomainResponseContent,
Expand Down Expand Up @@ -2597,6 +2604,7 @@
ListNetworkAclsOffsetPaginatedResponseContent,
ListOrganizationAllConnectionsOffsetPaginatedResponseContent,
ListOrganizationClientGrantsOffsetPaginatedResponseContent,
ListOrganizationClientsResponseContent,
ListOrganizationConnectionsOffsetPaginatedResponseContent,
ListOrganizationDiscoveryDomainsResponseContent,
ListOrganizationGroupRolesResponseContent,
Expand All @@ -2606,6 +2614,7 @@
ListOrganizationMemberRoleSourceGroupsResponseContent,
ListOrganizationMemberRolesOffsetPaginatedResponseContent,
ListOrganizationMembersPaginatedResponseContent,
ListOrganizationRoleGroupsResponseContent,
ListOrganizationRoleMembersResponseContent,
ListOrganizationsPaginatedResponseContent,
ListPhoneTemplatesResponseContent,
Expand All @@ -2615,7 +2624,8 @@
ListRoleGroupsResponseContent,
ListRolePermissionsOffsetPaginatedResponseContent,
ListRoleUsersPaginatedResponseContent,
ListRolesOffsetPaginatedResponseContent,
ListRolesCheckpointPaginatedResponseContent,
ListRolesResponseContent,
ListRulesOffsetPaginatedResponseContent,
ListScimConfigurationsResponseContent,
ListSelfServiceProfileCustomTextResponseContent,
Expand Down Expand Up @@ -2713,14 +2723,20 @@
NetworkAclsResponseContent,
NotFoundErrorBody,
NotFoundErrorBodyError,
NotFoundSchema,
NotFoundSchemaError,
OauthScope,
Organization,
OrganizationAccessLevelEnum,
OrganizationAccessLevelEnumWithNull,
OrganizationAllConnectionPost,
OrganizationBranding,
OrganizationBrandingColors,
OrganizationClient,
OrganizationClientAssociation,
OrganizationClientGrant,
OrganizationClientMetadata,
OrganizationClientMetadataOrganizationUsageEnum,
OrganizationConnection,
OrganizationConnectionInformation,
OrganizationDiscoveryDomain,
Expand Down Expand Up @@ -2825,7 +2841,9 @@
ResourceServerVerificationKeyPemCertificate,
RevokedSigningKeysResponseContent,
Role,
RoleGroup,
RoleMember,
RoleTypeEnum,
RoleUser,
RollbackActionModuleResponseContent,
RotateClientSecretResponseContent,
Expand Down Expand Up @@ -3060,6 +3078,7 @@
UpdateLogStreamResponseContent,
UpdateNetworkAclResponseContent,
UpdateOrganizationAllConnectionResponseContent,
UpdateOrganizationClientResponseContent,
UpdateOrganizationConnectionResponseContent,
UpdateOrganizationDiscoveryDomainResponseContent,
UpdateOrganizationResponseContent,
Expand Down Expand Up @@ -3207,6 +3226,8 @@
from .client import AsyncAuth0, Auth0
from .environment import Auth0Environment
from .event_streams import EventStreamsCreateRequest
from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient
from .token_provider import AsyncTokenProvider, TokenProvider
from .version import __version__
from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient
from .token_provider import AsyncTokenProvider, TokenProvider
Expand Down Expand Up @@ -3457,6 +3478,8 @@
"ClientTokenVaultPrivilegedAccessWithCredentialId": ".types",
"ClientTokenVaultPrivilegedAccessWithPublicKey": ".types",
"ConflictError": ".errors",
"ConflictSchema": ".types",
"ConflictSchemaError": ".types",
"ConnectedAccount": ".types",
"ConnectedAccountAccessTypeEnum": ".types",
"ConnectionAccessTokenUrloAuth1": ".types",
Expand Down Expand Up @@ -4211,6 +4234,8 @@
"CreateLogStreamSplunkRequestBody": ".types",
"CreateLogStreamSumoRequestBody": ".types",
"CreateOrganizationAllConnectionResponseContent": ".types",
"CreateOrganizationClientRequestItem": ".types",
"CreateOrganizationClientsResponseContent": ".types",
"CreateOrganizationDiscoveryDomainResponseContent": ".types",
"CreateOrganizationInvitationResponseContent": ".types",
"CreateOrganizationResponseContent": ".types",
Expand Down Expand Up @@ -4254,9 +4279,10 @@
"CspReportingEndpoints": ".types",
"CspReportingInfrastructure": ".types",
"CustomDomain": ".types",
"CustomDomainHeader": ".management_client",

Check warning

Code scanning / CodeQL

Duplicate key in dict literal Warning

Dictionary key 'CustomDomainHeader' is subsequently
overwritten
.
"CustomDomainCustomClientIpHeader": ".types",
"CustomDomainCustomClientIpHeaderEnum": ".types",
"CustomDomainHeader": ".management_client",
"CustomDomainProvisioningTypeEnum": ".types",
"CustomDomainStatusFilterEnum": ".types",
"CustomDomainTlsPolicyEnum": ".types",
Expand Down Expand Up @@ -5085,8 +5111,10 @@
"ExtensibilityEmailProviderCredentials": ".types",
"FedCmLogin": ".types",
"FedCmLoginGoogle": ".types",
"FedCmLoginGooglePatch": ".types",

Check warning

Code scanning / CodeQL

Duplicate key in dict literal Warning

Dictionary key 'FedCmLoginGooglePatch' is subsequently
overwritten
.
"FedCmLoginPatch": ".types",

Check warning

Code scanning / CodeQL

Duplicate key in dict literal Warning

Dictionary key 'FedCmLoginPatch' is subsequently
overwritten
.
"FedCmLoginGooglePatch": ".types",
"FedCmLoginPatch": ".types",
"FlowAction": ".types",
"FlowActionActivecampaign": ".types",
"FlowActionActivecampaignListContacts": ".types",
Expand Down Expand Up @@ -5717,6 +5745,7 @@
"GetNetworkAclsResponseContent": ".types",
"GetOrganizationAllConnectionResponseContent": ".types",
"GetOrganizationByNameResponseContent": ".types",
"GetOrganizationClientResponseContent": ".types",
"GetOrganizationConnectionResponseContent": ".types",
"GetOrganizationDiscoveryDomainByNameResponseContent": ".types",
"GetOrganizationDiscoveryDomainResponseContent": ".types",
Expand Down Expand Up @@ -5816,6 +5845,7 @@
"ListNetworkAclsOffsetPaginatedResponseContent": ".types",
"ListOrganizationAllConnectionsOffsetPaginatedResponseContent": ".types",
"ListOrganizationClientGrantsOffsetPaginatedResponseContent": ".types",
"ListOrganizationClientsResponseContent": ".types",
"ListOrganizationConnectionsOffsetPaginatedResponseContent": ".types",
"ListOrganizationDiscoveryDomainsResponseContent": ".types",
"ListOrganizationGroupRolesResponseContent": ".types",
Expand All @@ -5825,6 +5855,7 @@
"ListOrganizationMemberRoleSourceGroupsResponseContent": ".types",
"ListOrganizationMemberRolesOffsetPaginatedResponseContent": ".types",
"ListOrganizationMembersPaginatedResponseContent": ".types",
"ListOrganizationRoleGroupsResponseContent": ".types",
"ListOrganizationRoleMembersResponseContent": ".types",
"ListOrganizationsPaginatedResponseContent": ".types",
"ListPhoneTemplatesResponseContent": ".types",
Expand All @@ -5834,7 +5865,8 @@
"ListRoleGroupsResponseContent": ".types",
"ListRolePermissionsOffsetPaginatedResponseContent": ".types",
"ListRoleUsersPaginatedResponseContent": ".types",
"ListRolesOffsetPaginatedResponseContent": ".types",
"ListRolesCheckpointPaginatedResponseContent": ".types",
"ListRolesResponseContent": ".types",
"ListRulesOffsetPaginatedResponseContent": ".types",
"ListScimConfigurationsResponseContent": ".types",
"ListSelfServiceProfileCustomTextResponseContent": ".types",
Expand Down Expand Up @@ -5934,14 +5966,20 @@
"NotFoundError": ".errors",
"NotFoundErrorBody": ".types",
"NotFoundErrorBodyError": ".types",
"NotFoundSchema": ".types",
"NotFoundSchemaError": ".types",
"OauthScope": ".types",
"Organization": ".types",
"OrganizationAccessLevelEnum": ".types",
"OrganizationAccessLevelEnumWithNull": ".types",
"OrganizationAllConnectionPost": ".types",
"OrganizationBranding": ".types",
"OrganizationBrandingColors": ".types",
"OrganizationClient": ".types",
"OrganizationClientAssociation": ".types",
"OrganizationClientGrant": ".types",
"OrganizationClientMetadata": ".types",
"OrganizationClientMetadataOrganizationUsageEnum": ".types",
"OrganizationConnection": ".types",
"OrganizationConnectionInformation": ".types",
"OrganizationDiscoveryDomain": ".types",
Expand Down Expand Up @@ -6048,7 +6086,9 @@
"ResourceServerVerificationKeyPemCertificate": ".types",
"RevokedSigningKeysResponseContent": ".types",
"Role": ".types",
"RoleGroup": ".types",
"RoleMember": ".types",
"RoleTypeEnum": ".types",
"RoleUser": ".types",
"RollbackActionModuleResponseContent": ".types",
"RotateClientSecretResponseContent": ".types",
Expand Down Expand Up @@ -6287,6 +6327,7 @@
"UpdateLogStreamResponseContent": ".types",
"UpdateNetworkAclResponseContent": ".types",
"UpdateOrganizationAllConnectionResponseContent": ".types",
"UpdateOrganizationClientResponseContent": ".types",
"UpdateOrganizationConnectionResponseContent": ".types",
"UpdateOrganizationDiscoveryDomainResponseContent": ".types",
"UpdateOrganizationResponseContent": ".types",
Expand Down Expand Up @@ -6685,6 +6726,8 @@
"ClientTokenVaultPrivilegedAccessWithCredentialId",
"ClientTokenVaultPrivilegedAccessWithPublicKey",
"ConflictError",
"ConflictSchema",
"ConflictSchemaError",
"ConnectedAccount",
"ConnectedAccountAccessTypeEnum",
"ConnectionAccessTokenUrloAuth1",
Expand Down Expand Up @@ -7439,6 +7482,8 @@
"CreateLogStreamSplunkRequestBody",
"CreateLogStreamSumoRequestBody",
"CreateOrganizationAllConnectionResponseContent",
"CreateOrganizationClientRequestItem",
"CreateOrganizationClientsResponseContent",
"CreateOrganizationDiscoveryDomainResponseContent",
"CreateOrganizationInvitationResponseContent",
"CreateOrganizationResponseContent",
Expand Down Expand Up @@ -7485,6 +7530,7 @@
"CustomDomainHeader",
"CustomDomainCustomClientIpHeader",
"CustomDomainCustomClientIpHeaderEnum",
"CustomDomainHeader",
"CustomDomainProvisioningTypeEnum",
"CustomDomainStatusFilterEnum",
"CustomDomainTlsPolicyEnum",
Expand Down Expand Up @@ -8315,6 +8361,8 @@
"FedCmLoginGoogle",
"FedCmLoginGooglePatch",
"FedCmLoginPatch",
"FedCmLoginGooglePatch",
"FedCmLoginPatch",
"FlowAction",
"FlowActionActivecampaign",
"FlowActionActivecampaignListContacts",
Expand Down Expand Up @@ -8945,6 +8993,7 @@
"GetNetworkAclsResponseContent",
"GetOrganizationAllConnectionResponseContent",
"GetOrganizationByNameResponseContent",
"GetOrganizationClientResponseContent",
"GetOrganizationConnectionResponseContent",
"GetOrganizationDiscoveryDomainByNameResponseContent",
"GetOrganizationDiscoveryDomainResponseContent",
Expand Down Expand Up @@ -9044,6 +9093,7 @@
"ListNetworkAclsOffsetPaginatedResponseContent",
"ListOrganizationAllConnectionsOffsetPaginatedResponseContent",
"ListOrganizationClientGrantsOffsetPaginatedResponseContent",
"ListOrganizationClientsResponseContent",
"ListOrganizationConnectionsOffsetPaginatedResponseContent",
"ListOrganizationDiscoveryDomainsResponseContent",
"ListOrganizationGroupRolesResponseContent",
Expand All @@ -9053,6 +9103,7 @@
"ListOrganizationMemberRoleSourceGroupsResponseContent",
"ListOrganizationMemberRolesOffsetPaginatedResponseContent",
"ListOrganizationMembersPaginatedResponseContent",
"ListOrganizationRoleGroupsResponseContent",
"ListOrganizationRoleMembersResponseContent",
"ListOrganizationsPaginatedResponseContent",
"ListPhoneTemplatesResponseContent",
Expand All @@ -9062,7 +9113,8 @@
"ListRoleGroupsResponseContent",
"ListRolePermissionsOffsetPaginatedResponseContent",
"ListRoleUsersPaginatedResponseContent",
"ListRolesOffsetPaginatedResponseContent",
"ListRolesCheckpointPaginatedResponseContent",
"ListRolesResponseContent",
"ListRulesOffsetPaginatedResponseContent",
"ListScimConfigurationsResponseContent",
"ListSelfServiceProfileCustomTextResponseContent",
Expand Down Expand Up @@ -9162,14 +9214,20 @@
"NotFoundError",
"NotFoundErrorBody",
"NotFoundErrorBodyError",
"NotFoundSchema",
"NotFoundSchemaError",
"OauthScope",
"Organization",
"OrganizationAccessLevelEnum",
"OrganizationAccessLevelEnumWithNull",
"OrganizationAllConnectionPost",
"OrganizationBranding",
"OrganizationBrandingColors",
"OrganizationClient",
"OrganizationClientAssociation",
"OrganizationClientGrant",
"OrganizationClientMetadata",
"OrganizationClientMetadataOrganizationUsageEnum",
"OrganizationConnection",
"OrganizationConnectionInformation",
"OrganizationDiscoveryDomain",
Expand Down Expand Up @@ -9276,7 +9334,9 @@
"ResourceServerVerificationKeyPemCertificate",
"RevokedSigningKeysResponseContent",
"Role",
"RoleGroup",
"RoleMember",
"RoleTypeEnum",
"RoleUser",
"RollbackActionModuleResponseContent",
"RotateClientSecretResponseContent",
Expand Down Expand Up @@ -9515,6 +9575,7 @@
"UpdateLogStreamResponseContent",
"UpdateNetworkAclResponseContent",
"UpdateOrganizationAllConnectionResponseContent",
"UpdateOrganizationClientResponseContent",
"UpdateOrganizationConnectionResponseContent",
"UpdateOrganizationDiscoveryDomainResponseContent",
"UpdateOrganizationResponseContent",
Expand Down
11 changes: 0 additions & 11 deletions src/auth0/management/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,7 @@ def __init__(
self._logging = logging

def get_headers(self) -> typing.Dict[str, str]:
py_version = platform.python_version()
version = sys.modules["auth0"].__version__

auth0_client = dumps({
"name": "auth0-python",
"version": version,
"env": {"python": py_version}
}).encode("utf-8")

headers: typing.Dict[str, str] = {
"User-Agent": f"Python/{py_version}",
"Auth0-Client": base64.b64encode(auth0_client).decode(),
**(self.get_custom_headers() or {}),
}
headers["Authorization"] = f"Bearer {self._get_token()}"
Expand Down
3 changes: 3 additions & 0 deletions src/auth0/management/organizations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
if typing.TYPE_CHECKING:
from . import (
client_grants,
clients,
connections,
discovery_domains,
enabled_connections,
Expand All @@ -18,6 +19,7 @@
)
_dynamic_imports: typing.Dict[str, str] = {
"client_grants": ".client_grants",
"clients": ".clients",
"connections": ".connections",
"discovery_domains": ".discovery_domains",
"enabled_connections": ".enabled_connections",
Expand Down Expand Up @@ -51,6 +53,7 @@ def __dir__():

__all__ = [
"client_grants",
"clients",
"connections",
"discovery_domains",
"enabled_connections",
Expand Down
Loading
Loading