Skip to content
Open
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
6 changes: 3 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2344,7 +2344,7 @@ client.clients.update(
<dl>
<dd>

**allowed_logout_urls:** `typing.Optional[typing.Sequence[str]]` — URLs that are valid to redirect to after logout from Auth0.
**allowed_logout_urls:** `typing.Optional[typing.Sequence[str]]` — URLs that are valid to redirect to after logout from Auth0

</dd>
</dl>
Expand Down Expand Up @@ -11969,7 +11969,7 @@ client.self_service_profiles.create(
<dl>
<dd>

**allowed_strategies:** `typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]]` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`]
**allowed_strategies:** `typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]]` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]

</dd>
</dl>
Expand Down Expand Up @@ -12227,7 +12227,7 @@ client.self_service_profiles.update(
<dl>
<dd>

**allowed_strategies:** `typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]]` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `keycloak-samlp`, `pingfederate`]
**allowed_strategies:** `typing.Optional[typing.Sequence[SelfServiceProfileAllowedStrategyEnum]]` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]

</dd>
</dl>
Expand Down
8 changes: 4 additions & 4 deletions src/auth0/management/actions/modules/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def list(
_items = _parsed_response.modules
_has_next = True
_get_next = lambda: self.list(
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down Expand Up @@ -649,7 +649,7 @@ def list_actions(
_has_next = True
_get_next = lambda: self.list_actions(
id,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down Expand Up @@ -885,7 +885,7 @@ async def list(

async def _get_next():
return await self.list(
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down Expand Up @@ -1453,7 +1453,7 @@ async def list_actions(
async def _get_next():
return await self.list_actions(
id,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down
4 changes: 2 additions & 2 deletions src/auth0/management/actions/modules/versions/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def list(
_has_next = True
_get_next = lambda: self.list(
id,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down Expand Up @@ -409,7 +409,7 @@ async def list(
async def _get_next():
return await self.list(
id,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down
4 changes: 2 additions & 2 deletions src/auth0/management/actions/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def list(
trigger_id=trigger_id,
action_name=action_name,
deployed=deployed,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
installed=installed,
request_options=request_options,
Expand Down Expand Up @@ -887,7 +887,7 @@ async def _get_next():
trigger_id=trigger_id,
action_name=action_name,
deployed=deployed,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
installed=installed,
request_options=request_options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def list(
_has_next = True
_get_next = lambda: self.list(
trigger_id,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down Expand Up @@ -297,7 +297,7 @@ async def list(
async def _get_next():
return await self.list(
trigger_id,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down
4 changes: 2 additions & 2 deletions src/auth0/management/actions/versions/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def list(
_has_next = True
_get_next = lambda: self.list(
action_id,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down Expand Up @@ -396,7 +396,7 @@ async def list(
async def _get_next():
return await self.list(
action_id,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
request_options=request_options,
)
Expand Down
11 changes: 11 additions & 0 deletions src/auth0/management/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import httpx
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .core.logging import LogConfig, Logger
from .environment import Auth0Environment

if typing.TYPE_CHECKING:
Expand Down Expand Up @@ -88,6 +89,9 @@ class Auth0:
httpx_client : typing.Optional[httpx.Client]
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.

logging : typing.Optional[typing.Union[LogConfig, Logger]]
Configure logging for the SDK. Accepts a LogConfig dict with 'level' (debug/info/warn/error), 'logger' (custom logger implementation), and 'silent' (boolean, defaults to True) fields. You can also pass a pre-configured Logger instance.

Examples
--------
from auth0 import Auth0
Expand All @@ -108,6 +112,7 @@ def __init__(
timeout: typing.Optional[float] = None,
follow_redirects: typing.Optional[bool] = True,
httpx_client: typing.Optional[httpx.Client] = None,
logging: typing.Optional[typing.Union[LogConfig, Logger]] = None,
):
_defaulted_timeout = (
timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read
Expand All @@ -125,6 +130,7 @@ def __init__(
if follow_redirects is not None
else httpx.Client(timeout=_defaulted_timeout),
timeout=_defaulted_timeout,
logging=logging,
)
self._actions: typing.Optional[ActionsClient] = None
self._branding: typing.Optional[BrandingClient] = None
Expand Down Expand Up @@ -549,6 +555,9 @@ class AsyncAuth0:
httpx_client : typing.Optional[httpx.AsyncClient]
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.

logging : typing.Optional[typing.Union[LogConfig, Logger]]
Configure logging for the SDK. Accepts a LogConfig dict with 'level' (debug/info/warn/error), 'logger' (custom logger implementation), and 'silent' (boolean, defaults to True) fields. You can also pass a pre-configured Logger instance.

Examples
--------
from auth0 import AsyncAuth0
Expand All @@ -569,6 +578,7 @@ def __init__(
timeout: typing.Optional[float] = None,
follow_redirects: typing.Optional[bool] = True,
httpx_client: typing.Optional[httpx.AsyncClient] = None,
logging: typing.Optional[typing.Union[LogConfig, Logger]] = None,
):
_defaulted_timeout = (
timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read
Expand All @@ -586,6 +596,7 @@ def __init__(
if follow_redirects is not None
else httpx.AsyncClient(timeout=_defaulted_timeout),
timeout=_defaulted_timeout,
logging=logging,
)
self._actions: typing.Optional[AsyncActionsClient] = None
self._branding: typing.Optional[AsyncBrandingClient] = None
Expand Down
4 changes: 2 additions & 2 deletions src/auth0/management/clients/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def update(
Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients

allowed_logout_urls : typing.Optional[typing.Sequence[str]]
URLs that are valid to redirect to after logout from Auth0.
URLs that are valid to redirect to after logout from Auth0

jwt_configuration : typing.Optional[ClientJwtConfiguration]

Expand Down Expand Up @@ -1589,7 +1589,7 @@ async def update(
Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients

allowed_logout_urls : typing.Optional[typing.Sequence[str]]
URLs that are valid to redirect to after logout from Auth0.
URLs that are valid to redirect to after logout from Auth0

jwt_configuration : typing.Optional[ClientJwtConfiguration]

Expand Down
8 changes: 4 additions & 4 deletions src/auth0/management/clients/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def list(
_get_next = lambda: self.list(
fields=fields,
include_fields=include_fields,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
include_totals=include_totals,
is_global=is_global,
Expand Down Expand Up @@ -949,7 +949,7 @@ def update(
Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients

allowed_logout_urls : typing.Optional[typing.Sequence[str]]
URLs that are valid to redirect to after logout from Auth0.
URLs that are valid to redirect to after logout from Auth0

jwt_configuration : typing.Optional[ClientJwtConfiguration]

Expand Down Expand Up @@ -1447,7 +1447,7 @@ async def _get_next():
return await self.list(
fields=fields,
include_fields=include_fields,
page=page + len(_items or []),
page=page + 1,
per_page=per_page,
include_totals=include_totals,
is_global=is_global,
Expand Down Expand Up @@ -2214,7 +2214,7 @@ async def update(
Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients

allowed_logout_urls : typing.Optional[typing.Sequence[str]]
URLs that are valid to redirect to after logout from Auth0.
URLs that are valid to redirect to after logout from Auth0

jwt_configuration : typing.Optional[ClientJwtConfiguration]

Expand Down
18 changes: 13 additions & 5 deletions src/auth0/management/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
if typing.TYPE_CHECKING:
from .api_error import ApiError
from .client_wrapper import AsyncClientWrapper, BaseClientWrapper, SyncClientWrapper
from .custom_pagination import AsyncCustomPager, SyncCustomPager
from .datetime_utils import serialize_datetime
from .file import File, convert_file_dict_to_httpx_tuples, with_content_type
from .http_client import AsyncHttpClient, HttpClient
from .http_response import AsyncHttpResponse, HttpResponse
from .jsonable_encoder import jsonable_encoder
from .logging import ConsoleLogger, ILogger, LogConfig, LogLevel, Logger, create_logger
from .pagination import AsyncPager, SyncPager
from .pydantic_utilities import (
IS_PYDANTIC_V2,
Expand All @@ -31,24 +31,28 @@
_dynamic_imports: typing.Dict[str, str] = {
"ApiError": ".api_error",
"AsyncClientWrapper": ".client_wrapper",
"AsyncCustomPager": ".custom_pagination",
"AsyncHttpClient": ".http_client",
"AsyncHttpResponse": ".http_response",
"AsyncPager": ".pagination",
"BaseClientWrapper": ".client_wrapper",
"ConsoleLogger": ".logging",
"FieldMetadata": ".serialization",
"File": ".file",
"HttpClient": ".http_client",
"HttpResponse": ".http_response",
"ILogger": ".logging",
"IS_PYDANTIC_V2": ".pydantic_utilities",
"LogConfig": ".logging",
"LogLevel": ".logging",
"Logger": ".logging",
"RequestOptions": ".request_options",
"SyncClientWrapper": ".client_wrapper",
"SyncCustomPager": ".custom_pagination",
"SyncPager": ".pagination",
"UniversalBaseModel": ".pydantic_utilities",
"UniversalRootModel": ".pydantic_utilities",
"convert_and_respect_annotation_metadata": ".serialization",
"convert_file_dict_to_httpx_tuples": ".file",
"create_logger": ".logging",
"encode_query": ".query_encoder",
"jsonable_encoder": ".jsonable_encoder",
"parse_obj_as": ".pydantic_utilities",
Expand Down Expand Up @@ -85,24 +89,28 @@ def __dir__():
__all__ = [
"ApiError",
"AsyncClientWrapper",
"AsyncCustomPager",
"AsyncHttpClient",
"AsyncHttpResponse",
"AsyncPager",
"BaseClientWrapper",
"ConsoleLogger",
"FieldMetadata",
"File",
"HttpClient",
"HttpResponse",
"ILogger",
"IS_PYDANTIC_V2",
"LogConfig",
"LogLevel",
"Logger",
"RequestOptions",
"SyncClientWrapper",
"SyncCustomPager",
"SyncPager",
"UniversalBaseModel",
"UniversalRootModel",
"convert_and_respect_annotation_metadata",
"convert_file_dict_to_httpx_tuples",
"create_logger",
"encode_query",
"jsonable_encoder",
"parse_obj_as",
Expand Down
Loading
Loading