Skip to content

Commit 34e21b0

Browse files
authored
feat!: remove federated connections tokensets, add network ACL auth0_managed field (#873)
### Changes #### ⚠️ Breaking Changes - **Federated Connections Tokensets removed** — the `users.federated_connections_tokensets` client and its `list`/`delete` methods are removed, along with the `FederatedConnectionTokenSet` and `ConnectionFederatedConnectionsAccessTokens` types. - **`federated_connections_access_tokens` field removed** — this optional field is no longer present on `ConnectionOptionsAzureAd`, `ConnectionOptionsCommonOidc`, `ConnectionOptionsGoogleApps`, `ConnectionPropertiesOptions`, and `UpdateConnectionOptions`. - **OAuth scopes removed** — `read:federated_connections_tokens` and `delete:federated_connections_tokens` are no longer valid values of `OauthScope`. - **`ClientSessionTransferDelegationDeviceBindingEnum` narrowed** — the `"asn"` value is removed; the enum now only accepts `"ip"`. #### Features - **`NetworkAclMatch`** — new optional `auth0_managed: Optional[List[str]]` field (serialized as `auth0_managed`), available on both the `match` and `not_match` rule blocks. This lets network ACL rules reference Auth0-managed lists when matching or excluding traffic. ### References N/A ### Testing Wiremock test fixtures were updated to reflect the removed federated connections tokensets endpoint and the new `auth0_managed` field. The existing unit and wire test suite should pass without errors. - [ ] This change adds unit test coverage - [ ] This change adds integration test coverage - [x] This change has been tested on the latest version of the platform/language or why not ### Checklist - [x] I have read the [Auth0 general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md) - [x] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md) - [x] All existing and new tests complete without errors
2 parents 232583d + f738491 commit 34e21b0

21 files changed

Lines changed: 107 additions & 940 deletions

.fern/replay.lock

Lines changed: 99 additions & 37 deletions
Large diffs are not rendered by default.

reference.md

Lines changed: 0 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -37575,148 +37575,6 @@ client.users.enrollments.get(
3757537575
</dl>
3757637576

3757737577

37578-
</dd>
37579-
</dl>
37580-
</details>
37581-
37582-
## Users FederatedConnectionsTokensets
37583-
<details><summary><code>client.users.federated_connections_tokensets.<a href="src/auth0.management/users/federated_connections_tokensets/client.py">list</a>(...) -> typing.List[FederatedConnectionTokenSet]</code></summary>
37584-
<dl>
37585-
<dd>
37586-
37587-
#### 📝 Description
37588-
37589-
<dl>
37590-
<dd>
37591-
37592-
<dl>
37593-
<dd>
37594-
37595-
List active federated connections tokensets for a provided user
37596-
</dd>
37597-
</dl>
37598-
</dd>
37599-
</dl>
37600-
37601-
#### 🔌 Usage
37602-
37603-
<dl>
37604-
<dd>
37605-
37606-
<dl>
37607-
<dd>
37608-
37609-
```python
37610-
from auth0.management import Auth0
37611-
from auth0.management.environment import Auth0Environment
37612-
37613-
client = Auth0(
37614-
token="<token>",
37615-
environment=Auth0Environment.DEFAULT,
37616-
)
37617-
37618-
client.users.federated_connections_tokensets.list(
37619-
id="id",
37620-
)
37621-
37622-
```
37623-
</dd>
37624-
</dl>
37625-
</dd>
37626-
</dl>
37627-
37628-
#### ⚙️ Parameters
37629-
37630-
<dl>
37631-
<dd>
37632-
37633-
<dl>
37634-
<dd>
37635-
37636-
**id:** `str` — User identifier
37637-
37638-
</dd>
37639-
</dl>
37640-
37641-
<dl>
37642-
<dd>
37643-
37644-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
37645-
37646-
</dd>
37647-
</dl>
37648-
</dd>
37649-
</dl>
37650-
37651-
37652-
</dd>
37653-
</dl>
37654-
</details>
37655-
37656-
<details><summary><code>client.users.federated_connections_tokensets.<a href="src/auth0.management/users/federated_connections_tokensets/client.py">delete</a>(...)</code></summary>
37657-
<dl>
37658-
<dd>
37659-
37660-
#### 🔌 Usage
37661-
37662-
<dl>
37663-
<dd>
37664-
37665-
<dl>
37666-
<dd>
37667-
37668-
```python
37669-
from auth0.management import Auth0
37670-
from auth0.management.environment import Auth0Environment
37671-
37672-
client = Auth0(
37673-
token="<token>",
37674-
environment=Auth0Environment.DEFAULT,
37675-
)
37676-
37677-
client.users.federated_connections_tokensets.delete(
37678-
id="id",
37679-
tokenset_id="tokenset_id",
37680-
)
37681-
37682-
```
37683-
</dd>
37684-
</dl>
37685-
</dd>
37686-
</dl>
37687-
37688-
#### ⚙️ Parameters
37689-
37690-
<dl>
37691-
<dd>
37692-
37693-
<dl>
37694-
<dd>
37695-
37696-
**id:** `str` — Id of the user that owns the tokenset
37697-
37698-
</dd>
37699-
</dl>
37700-
37701-
<dl>
37702-
<dd>
37703-
37704-
**tokenset_id:** `str` — The tokenset id
37705-
37706-
</dd>
37707-
</dl>
37708-
37709-
<dl>
37710-
<dd>
37711-
37712-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
37713-
37714-
</dd>
37715-
</dl>
37716-
</dd>
37717-
</dl>
37718-
37719-
3772037578
</dd>
3772137579
</dl>
3772237580
</details>

src/auth0/management/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@
366366
ConnectionExtIsSuspended,
367367
ConnectionExtIsSuspendedGoogleApps,
368368
ConnectionExtProfile,
369-
ConnectionFederatedConnectionsAccessTokens,
370369
ConnectionFieldsMap,
371370
ConnectionFieldsMapSaml,
372371
ConnectionFieldsMapSamlValue,
@@ -1861,7 +1860,6 @@
18611860
FedCmLoginGoogle,
18621861
FedCmLoginGooglePatch,
18631862
FedCmLoginPatch,
1864-
FederatedConnectionTokenSet,
18651863
FlowAction,
18661864
FlowActionActivecampaign,
18671865
FlowActionActivecampaignListContacts,
@@ -3561,7 +3559,6 @@
35613559
"ConnectionExtIsSuspended": ".types",
35623560
"ConnectionExtIsSuspendedGoogleApps": ".types",
35633561
"ConnectionExtProfile": ".types",
3564-
"ConnectionFederatedConnectionsAccessTokens": ".types",
35653562
"ConnectionFieldsMap": ".types",
35663563
"ConnectionFieldsMapSaml": ".types",
35673564
"ConnectionFieldsMapSamlValue": ".types",
@@ -5061,7 +5058,6 @@
50615058
"FedCmLoginGoogle": ".types",
50625059
"FedCmLoginGooglePatch": ".types",
50635060
"FedCmLoginPatch": ".types",
5064-
"FederatedConnectionTokenSet": ".types",
50655061
"FlowAction": ".types",
50665062
"FlowActionActivecampaign": ".types",
50675063
"FlowActionActivecampaignListContacts": ".types",
@@ -6773,7 +6769,6 @@ def __dir__():
67736769
"ConnectionExtIsSuspended",
67746770
"ConnectionExtIsSuspendedGoogleApps",
67756771
"ConnectionExtProfile",
6776-
"ConnectionFederatedConnectionsAccessTokens",
67776772
"ConnectionFieldsMap",
67786773
"ConnectionFieldsMapSaml",
67796774
"ConnectionFieldsMapSamlValue",
@@ -8273,7 +8268,6 @@ def __dir__():
82738268
"FedCmLoginGoogle",
82748269
"FedCmLoginGooglePatch",
82758270
"FedCmLoginPatch",
8276-
"FederatedConnectionTokenSet",
82778271
"FlowAction",
82788272
"FlowActionActivecampaign",
82798273
"FlowActionActivecampaignListContacts",

src/auth0/management/types/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@
411411
from .connection_ext_is_suspended import ConnectionExtIsSuspended
412412
from .connection_ext_is_suspended_google_apps import ConnectionExtIsSuspendedGoogleApps
413413
from .connection_ext_profile import ConnectionExtProfile
414-
from .connection_federated_connections_access_tokens import ConnectionFederatedConnectionsAccessTokens
415414
from .connection_fields_map import ConnectionFieldsMap
416415
from .connection_fields_map_saml import ConnectionFieldsMapSaml
417416
from .connection_fields_map_saml_value import ConnectionFieldsMapSamlValue
@@ -3042,7 +3041,6 @@
30423041
from .fed_cm_login_google import FedCmLoginGoogle
30433042
from .fed_cm_login_google_patch import FedCmLoginGooglePatch
30443043
from .fed_cm_login_patch import FedCmLoginPatch
3045-
from .federated_connection_token_set import FederatedConnectionTokenSet
30463044
from .flow_action import FlowAction
30473045
from .flow_action_activecampaign import FlowActionActivecampaign
30483046
from .flow_action_activecampaign_list_contacts import FlowActionActivecampaignListContacts
@@ -4808,7 +4806,6 @@
48084806
"ConnectionExtIsSuspended": ".connection_ext_is_suspended",
48094807
"ConnectionExtIsSuspendedGoogleApps": ".connection_ext_is_suspended_google_apps",
48104808
"ConnectionExtProfile": ".connection_ext_profile",
4811-
"ConnectionFederatedConnectionsAccessTokens": ".connection_federated_connections_access_tokens",
48124809
"ConnectionFieldsMap": ".connection_fields_map",
48134810
"ConnectionFieldsMapSaml": ".connection_fields_map_saml",
48144811
"ConnectionFieldsMapSamlValue": ".connection_fields_map_saml_value",
@@ -6303,7 +6300,6 @@
63036300
"FedCmLoginGoogle": ".fed_cm_login_google",
63046301
"FedCmLoginGooglePatch": ".fed_cm_login_google_patch",
63056302
"FedCmLoginPatch": ".fed_cm_login_patch",
6306-
"FederatedConnectionTokenSet": ".federated_connection_token_set",
63076303
"FlowAction": ".flow_action",
63086304
"FlowActionActivecampaign": ".flow_action_activecampaign",
63096305
"FlowActionActivecampaignListContacts": ".flow_action_activecampaign_list_contacts",
@@ -7951,7 +7947,6 @@ def __dir__():
79517947
"ConnectionExtIsSuspended",
79527948
"ConnectionExtIsSuspendedGoogleApps",
79537949
"ConnectionExtProfile",
7954-
"ConnectionFederatedConnectionsAccessTokens",
79557950
"ConnectionFieldsMap",
79567951
"ConnectionFieldsMapSaml",
79577952
"ConnectionFieldsMapSamlValue",
@@ -9446,7 +9441,6 @@ def __dir__():
94469441
"FedCmLoginGoogle",
94479442
"FedCmLoginGooglePatch",
94489443
"FedCmLoginPatch",
9449-
"FederatedConnectionTokenSet",
94509444
"FlowAction",
94519445
"FlowActionActivecampaign",
94529446
"FlowActionActivecampaignListContacts",

src/auth0/management/types/client_session_transfer_delegation_device_binding_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
import typing
44

5-
ClientSessionTransferDelegationDeviceBindingEnum = typing.Union[typing.Literal["ip", "asn"], typing.Any]
5+
ClientSessionTransferDelegationDeviceBindingEnum = typing.Union[typing.Literal["ip"], typing.Any]

src/auth0/management/types/connection_federated_connections_access_tokens.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/auth0/management/types/connection_options_azure_ad.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from .connection_ext_groups_azure_ad import ConnectionExtGroupsAzureAd
1717
from .connection_ext_is_suspended import ConnectionExtIsSuspended
1818
from .connection_ext_profile import ConnectionExtProfile
19-
from .connection_federated_connections_access_tokens import ConnectionFederatedConnectionsAccessTokens
2019
from .connection_icon_url_azure_ad import ConnectionIconUrlAzureAd
2120
from .connection_identity_api_azure_ad import ConnectionIdentityApiAzureAd
2221
from .connection_max_groups_to_retrieve import ConnectionMaxGroupsToRetrieve
@@ -260,7 +259,6 @@ class ConnectionOptionsAzureAd(ConnectionOptionsCommon):
260259
When false, prevents storing an alternative user ID. When true (default), this user ID is persisted in the user profile.
261260
"""
262261

263-
federated_connections_access_tokens: typing.Optional[ConnectionFederatedConnectionsAccessTokens] = None
264262
granted: typing.Optional[bool] = pydantic.Field(default=None)
265263
"""
266264
Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

src/auth0/management/types/connection_options_common_oidc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .connection_connection_settings import ConnectionConnectionSettings
1111
from .connection_domain_aliases import ConnectionDomainAliases
1212
from .connection_dpop_signing_alg_enum import ConnectionDpopSigningAlgEnum
13-
from .connection_federated_connections_access_tokens import ConnectionFederatedConnectionsAccessTokens
1413
from .connection_icon_url import ConnectionIconUrl
1514
from .connection_id_token_session_expiry_supported import ConnectionIdTokenSessionExpirySupported
1615
from .connection_id_token_signed_response_algs import ConnectionIdTokenSignedResponseAlgs
@@ -40,7 +39,6 @@ class ConnectionOptionsCommonOidc(UniversalBaseModel):
4039
connection_settings: typing.Optional[ConnectionConnectionSettings] = None
4140
domain_aliases: typing.Optional[ConnectionDomainAliases] = None
4241
dpop_signing_alg: typing.Optional[ConnectionDpopSigningAlgEnum] = None
43-
federated_connections_access_tokens: typing.Optional[ConnectionFederatedConnectionsAccessTokens] = None
4442
icon_url: typing.Optional[ConnectionIconUrl] = None
4543
id_token_session_expiry_supported: typing.Optional[ConnectionIdTokenSessionExpirySupported] = None
4644
id_token_signed_response_algs: typing.Optional[ConnectionIdTokenSignedResponseAlgs] = None

src/auth0/management/types/connection_options_google_apps.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from .connection_ext_groups_google_apps import ConnectionExtGroupsGoogleApps
1818
from .connection_ext_is_admin_google_apps import ConnectionExtIsAdminGoogleApps
1919
from .connection_ext_is_suspended_google_apps import ConnectionExtIsSuspendedGoogleApps
20-
from .connection_federated_connections_access_tokens import ConnectionFederatedConnectionsAccessTokens
2120
from .connection_handle_login_from_social_google_apps import ConnectionHandleLoginFromSocialGoogleApps
2221
from .connection_icon_url_google_apps import ConnectionIconUrlGoogleApps
2322
from .connection_options_common import ConnectionOptionsCommon
@@ -60,7 +59,6 @@ class ConnectionOptionsGoogleApps(ConnectionOptionsCommon):
6059

6160
ext_is_admin: typing.Optional[ConnectionExtIsAdminGoogleApps] = None
6261
ext_is_suspended: typing.Optional[ConnectionExtIsSuspendedGoogleApps] = None
63-
federated_connections_access_tokens: typing.Optional[ConnectionFederatedConnectionsAccessTokens] = None
6462
handle_login_from_social: typing.Optional[ConnectionHandleLoginFromSocialGoogleApps] = None
6563
icon_url: typing.Optional[ConnectionIconUrlGoogleApps] = None
6664
map_user_id_to_id: typing.Optional[bool] = pydantic.Field(default=None)

src/auth0/management/types/connection_properties_options.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from .connection_authentication_methods import ConnectionAuthenticationMethods
1212
from .connection_custom_scripts import ConnectionCustomScripts
1313
from .connection_dpop_signing_alg_enum import ConnectionDpopSigningAlgEnum
14-
from .connection_federated_connections_access_tokens import ConnectionFederatedConnectionsAccessTokens
1514
from .connection_gateway_authentication import ConnectionGatewayAuthentication
1615
from .connection_id_token_session_expiry_supported import ConnectionIdTokenSessionExpirySupported
1716
from .connection_id_token_signed_response_algs import ConnectionIdTokenSignedResponseAlgs
@@ -103,7 +102,6 @@ class ConnectionPropertiesOptions(UniversalBaseModel):
103102
upstream_params: typing.Optional[ConnectionUpstreamParams] = None
104103
set_user_root_attributes: typing.Optional[ConnectionSetUserRootAttributesEnum] = None
105104
gateway_authentication: typing.Optional[ConnectionGatewayAuthentication] = None
106-
federated_connections_access_tokens: typing.Optional[ConnectionFederatedConnectionsAccessTokens] = None
107105
password_options: typing.Optional[ConnectionPasswordOptions] = None
108106
assertion_decryption_settings: typing.Optional[ConnectionAssertionDecryptionSettings] = None
109107
id_token_signed_response_algs: typing.Optional[ConnectionIdTokenSignedResponseAlgs] = None

0 commit comments

Comments
 (0)