feat!: phone provider protection, FedCM & native social login config (breaking: user date fields, clients.update login types)#868
Open
fern-api[bot] wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
clients.update()social/FedCM request types changed —native_social_loginandfedcm_loginonclients.update()(PATCH /api/v2/clients/{id}) changed fromNativeSocialLogin/FedCmLogintoNativeSocialLoginPatch/FedCmLoginPatch.clients.create()still uses the non-patch types, so create and update now require different types for the same logical field. Code passing the old types toupdate()must switch to the*Patchvariants.UserDateSchemaremoved — user date fields nowdatetime— theUserDateSchematype (Union[str, Dict[str, Any]]) is deleted and no longer exported fromauth0.management.types.created_at,updated_at,last_login,last_password_reset, andmultifactor_last_modifiedonGetUserResponseContent,CreateUserResponseContent,UpdateUserResponseContent, andUserResponseSchemaare nowOptional[datetime.datetime]. Code that read these as strings/dicts must update.Type Changes
fedcm_login(read:FedCmLogin/FedCmLoginGoogle; write:FedCmLoginPatch/FedCmLoginGooglePatch) on create/update/response, gating the Google One Tap prompt in New Universal Login viafedcm_login.google.is_enabled.NativeSocialLoginPatchwrappingapple/facebook/googlepatch variants (eachenabled: Optional[bool]) forclients.update().token_vault_privileged_accessfield on create/update/response, typedClientTokenVaultPrivilegedAccessWithPublicKey(create) andClientTokenVaultPrivilegedAccessWithCredentialId(update), each withcredentials+ip_allowlist.cross_app_access_requesting_appfield (CrossAppAccessRequestingApp{active: bool}) onconnections.create()/update(), OIDC/Okta request types, and all connection response types.id_token_session_expiry_supported(boolean) on OIDC/Okta connection options for create/update/response (OIDC/Okta strategies only).user_idwidened toUnion[str, int]— onUserIdentitySchema,UserIdentity, andDeleteUserIdentityResponseContentItem, fixing Pydantic errors on numeric (e.g. GitHub) identity IDs.auth_email_by_codevalue inEmailTemplateNameEnum.attack_protection.phone_provider_protectionsub-client withget()/patch(type=...)(GET/PATCH /attack-protection/phone-provider-protection); newPhoneProviderProtectionBackoffStrategyEnum(exponential/none) and response types.Bug Fixes
keys.signing,organizations(connections, enabled connections, members, member roles),roles.permissions,self_service_profiles.sso_ticket,user_attribute_profiles, andusers(connected accounts, organizations, permissions, roles) now raise a typedNotFoundErroron 404 instead of an unhandled parse error.