auth0 6.4.0 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +3 -3
- data/.fern/replay.lock +7 -1
- data/.version +1 -1
- data/CHANGELOG.md +9 -0
- data/examples/ruby-api/Gemfile.lock +1 -1
- data/lib/auth0/attack_protection/brute_force_protection/types/update_brute_force_settings_request_content.rb +2 -0
- data/lib/auth0/attack_protection/captcha_policies/client.rb +210 -0
- data/lib/auth0/attack_protection/captcha_policies/types/create_attack_protection_captcha_policy_request_content.rb +21 -0
- data/lib/auth0/attack_protection/captcha_policies/types/update_attack_protection_captcha_policy_request_content.rb +23 -0
- data/lib/auth0/attack_protection/client.rb +5 -0
- data/lib/auth0/client.rb +5 -0
- data/lib/auth0/client_grants/client.rb +72 -0
- data/lib/auth0/client_grants/types/search_client_grants_request_parameters.rb +23 -0
- data/lib/auth0/client_profiles/client.rb +233 -0
- data/lib/auth0/client_profiles/types/create_client_profile_request_content.rb +17 -0
- data/lib/auth0/client_profiles/types/list_client_profiles_request_parameters.rb +13 -0
- data/lib/auth0/client_profiles/types/update_client_profile_request_content.rb +19 -0
- data/lib/auth0/clients/client.rb +81 -0
- data/lib/auth0/clients/types/create_client_request_content.rb +2 -0
- data/lib/auth0/clients/types/search_clients_request_parameters.rb +23 -0
- data/lib/auth0/clients/types/update_client_request_content.rb +4 -0
- data/lib/auth0/email_templates/client.rb +14 -2
- data/lib/auth0/experimentation/experiments/client.rb +0 -46
- data/lib/auth0/experimentation/experiments/types/update_experiment_request_parameters.rb +2 -0
- data/lib/auth0/experimentation/feature_flags/client.rb +0 -45
- data/lib/auth0/experimentation/feature_flags/types/update_feature_flag_request_content.rb +2 -0
- data/lib/auth0/experimentation/segments/types/update_segment_request_content.rb +2 -0
- data/lib/auth0/internal/types/model.rb +15 -6
- data/lib/auth0/roles/client.rb +2 -1
- data/lib/auth0/tenants/settings/types/update_tenant_settings_request_content.rb +4 -0
- data/lib/auth0/types/{update_feature_flag_status_response_content.rb → attack_protection_captcha_policy.rb} +5 -4
- data/lib/auth0/types/attack_protection_captcha_policy_action.rb +24 -0
- data/lib/auth0/types/attack_protection_captcha_policy_action_input.rb +24 -0
- data/lib/auth0/types/attack_protection_captcha_policy_match.rb +12 -0
- data/lib/auth0/types/brute_force_protection_form_submission_mode_enum.rb +12 -0
- data/lib/auth0/types/captcha_active_provider_enum.rb +17 -0
- data/lib/auth0/types/captcha_policy_action_arkose.rb +16 -0
- data/lib/auth0/types/captcha_policy_action_arkose_input.rb +18 -0
- data/lib/auth0/types/captcha_policy_action_auth_challenge.rb +10 -0
- data/lib/auth0/types/captcha_policy_action_friendly_captcha.rb +10 -0
- data/lib/auth0/types/captcha_policy_action_friendly_captcha_input.rb +12 -0
- data/lib/auth0/types/captcha_policy_action_hcaptcha.rb +10 -0
- data/lib/auth0/types/captcha_policy_action_hcaptcha_input.rb +12 -0
- data/lib/auth0/types/captcha_policy_action_recaptcha_enterprise.rb +12 -0
- data/lib/auth0/types/captcha_policy_action_recaptcha_enterprise_input.rb +14 -0
- data/lib/auth0/types/captcha_policy_action_recaptcha_v2.rb +10 -0
- data/lib/auth0/types/captcha_policy_action_recaptcha_v2input.rb +12 -0
- data/lib/auth0/types/captcha_policy_action_simple_captcha.rb +8 -0
- data/lib/auth0/types/cimd_external_metadata_created_by_enum.rb +12 -0
- data/lib/auth0/types/client.rb +4 -0
- data/lib/auth0/types/client_anonymous_session_transfer_network_binding_enum.rb +13 -0
- data/lib/auth0/types/client_external_metadata_status_enum.rb +12 -0
- data/lib/auth0/types/client_grant_sort_field_enum.rb +12 -0
- data/lib/auth0/types/client_oidc_support_patch.rb +14 -0
- data/lib/auth0/types/client_profile.rb +21 -0
- data/lib/auth0/types/client_profile_apply_policy.rb +12 -0
- data/lib/auth0/types/client_profile_apply_policy_external_metadata_created_by_enum.rb +11 -0
- data/lib/auth0/types/client_profile_apply_policy_external_metadata_type_enum.rb +11 -0
- data/lib/auth0/types/client_profile_client_configuration.rb +18 -0
- data/lib/auth0/types/client_profile_client_configuration_organization_discovery_method_enum.rb +12 -0
- data/lib/auth0/types/client_profile_client_configuration_organization_discovery_methods.rb +10 -0
- data/lib/auth0/types/client_profile_client_configuration_organization_require_behavior.rb +10 -0
- data/lib/auth0/types/client_profile_client_configuration_organization_require_behavior_enum.rb +13 -0
- data/lib/auth0/types/client_profile_client_configuration_organization_usage.rb +10 -0
- data/lib/auth0/types/client_profile_client_configuration_organization_usage_enum.rb +13 -0
- data/lib/auth0/types/client_profile_client_configuration_refresh_token.rb +14 -0
- data/lib/auth0/types/client_profile_client_configuration_require_proof_of_possession.rb +10 -0
- data/lib/auth0/types/client_profile_description.rb +23 -0
- data/lib/auth0/types/client_profile_id.rb +23 -0
- data/lib/auth0/types/client_profile_name.rb +23 -0
- data/lib/auth0/types/client_profile_refresh_token_idle_token_lifetime.rb +10 -0
- data/lib/auth0/types/client_profile_refresh_token_leeway.rb +10 -0
- data/lib/auth0/types/client_profile_refresh_token_token_lifetime.rb +10 -0
- data/lib/auth0/types/client_search_response.rb +139 -0
- data/lib/auth0/types/client_sort_field_enum.rb +12 -0
- data/lib/auth0/types/connection_profile_provisioning.rb +2 -0
- data/lib/auth0/types/connection_profile_provisioning_google_workspace.rb +10 -0
- data/lib/auth0/types/connection_profile_provisioning_google_workspace_sync_users.rb +23 -0
- data/lib/auth0/types/connection_profile_strategy_overrides_provisioning.rb +2 -0
- data/lib/auth0/types/connection_response_common.rb +6 -6
- data/lib/auth0/types/connection_response_content_ad.rb +2 -2
- data/lib/auth0/types/connection_response_content_adfs.rb +2 -2
- data/lib/auth0/types/connection_response_content_amazon.rb +2 -2
- data/lib/auth0/types/connection_response_content_apple.rb +2 -2
- data/lib/auth0/types/connection_response_content_auth0.rb +2 -2
- data/lib/auth0/types/connection_response_content_auth0oidc.rb +2 -2
- data/lib/auth0/types/connection_response_content_azure_ad.rb +2 -2
- data/lib/auth0/types/connection_response_content_baidu.rb +2 -2
- data/lib/auth0/types/connection_response_content_bitbucket.rb +2 -2
- data/lib/auth0/types/connection_response_content_bitly.rb +2 -2
- data/lib/auth0/types/connection_response_content_box.rb +2 -2
- data/lib/auth0/types/connection_response_content_custom.rb +2 -2
- data/lib/auth0/types/connection_response_content_daccount.rb +2 -2
- data/lib/auth0/types/connection_response_content_dropbox.rb +2 -2
- data/lib/auth0/types/connection_response_content_dwolla.rb +2 -2
- data/lib/auth0/types/connection_response_content_email.rb +2 -2
- data/lib/auth0/types/connection_response_content_evernote.rb +2 -2
- data/lib/auth0/types/connection_response_content_evernote_sandbox.rb +2 -2
- data/lib/auth0/types/connection_response_content_exact.rb +2 -2
- data/lib/auth0/types/connection_response_content_facebook.rb +2 -2
- data/lib/auth0/types/connection_response_content_fitbit.rb +2 -2
- data/lib/auth0/types/connection_response_content_git_hub.rb +2 -2
- data/lib/auth0/types/connection_response_content_google_apps.rb +2 -2
- data/lib/auth0/types/connection_response_content_google_o_auth2.rb +2 -2
- data/lib/auth0/types/connection_response_content_instagram.rb +2 -2
- data/lib/auth0/types/connection_response_content_ip.rb +2 -2
- data/lib/auth0/types/connection_response_content_line.rb +2 -2
- data/lib/auth0/types/connection_response_content_linkedin.rb +2 -2
- data/lib/auth0/types/connection_response_content_o_auth1.rb +2 -2
- data/lib/auth0/types/connection_response_content_o_auth2.rb +2 -2
- data/lib/auth0/types/connection_response_content_office365.rb +2 -2
- data/lib/auth0/types/connection_response_content_oidc.rb +2 -2
- data/lib/auth0/types/connection_response_content_okta.rb +2 -2
- data/lib/auth0/types/connection_response_content_paypal.rb +2 -2
- data/lib/auth0/types/connection_response_content_paypal_sandbox.rb +2 -2
- data/lib/auth0/types/connection_response_content_ping_federate.rb +2 -2
- data/lib/auth0/types/connection_response_content_planning_center.rb +2 -2
- data/lib/auth0/types/connection_response_content_salesforce.rb +2 -2
- data/lib/auth0/types/connection_response_content_salesforce_community.rb +2 -2
- data/lib/auth0/types/connection_response_content_salesforce_sandbox.rb +2 -2
- data/lib/auth0/types/connection_response_content_saml.rb +2 -2
- data/lib/auth0/types/connection_response_content_sharepoint.rb +2 -2
- data/lib/auth0/types/connection_response_content_shop.rb +2 -2
- data/lib/auth0/types/connection_response_content_shopify.rb +2 -2
- data/lib/auth0/types/connection_response_content_sms.rb +2 -2
- data/lib/auth0/types/connection_response_content_soundcloud.rb +2 -2
- data/lib/auth0/types/connection_response_content_thirty_seven_signals.rb +2 -2
- data/lib/auth0/types/connection_response_content_twitter.rb +2 -2
- data/lib/auth0/types/connection_response_content_untappd.rb +2 -2
- data/lib/auth0/types/connection_response_content_vkontakte.rb +2 -2
- data/lib/auth0/types/connection_response_content_weibo.rb +2 -2
- data/lib/auth0/types/connection_response_content_windows_live.rb +2 -2
- data/lib/auth0/types/connection_response_content_wordpress.rb +2 -2
- data/lib/auth0/types/connection_response_content_yahoo.rb +2 -2
- data/lib/auth0/types/connection_response_content_yandex.rb +2 -2
- data/lib/auth0/types/create_client_response_content.rb +4 -0
- data/lib/auth0/types/create_segment_response_content.rb +2 -0
- data/lib/auth0/types/enabled_features_enum.rb +1 -0
- data/lib/auth0/types/event_stream_cloud_event_connection_created_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_connection_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_connection_updated_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_group_created_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_group_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_group_member_added_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_group_member_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_group_role_assigned_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_group_role_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_group_updated_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_object.rb +2 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level.rb +18 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level0enum.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level1enum.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level2enum.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_object_organization_member_access_level3enum.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_previous_object.rb +2 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_l_1dbe67.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_l_4de563.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_l_7087fd.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_l_a4ce06.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_added_previous_object_organization_member_access_level.rb +18 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_removed_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object.rb +2 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level.rb +18 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level0enum.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level1enum.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level2enum.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_object_organization_member_access_level3enum.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_previous_object.rb +2 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_3669df.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_55f897.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_66926d.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_88dadc.rb +11 -0
- data/lib/auth0/types/event_stream_cloud_event_org_connection_updated_previous_object_organization_member_access_level.rb +18 -0
- data/lib/auth0/types/event_stream_cloud_event_org_created_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_group_role_assigned_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_group_role_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_member_added_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_member_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_member_role_assigned_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_member_role_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_org_updated_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_user_created_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_user_deleted_cloud_event.rb +1 -1
- data/lib/auth0/types/event_stream_cloud_event_user_updated_cloud_event.rb +1 -1
- data/lib/auth0/types/get_brute_force_settings_response_content.rb +2 -0
- data/lib/auth0/types/get_client_response_content.rb +4 -0
- data/lib/auth0/types/get_segment_response_content.rb +2 -0
- data/lib/auth0/types/get_tenant_settings_response_content.rb +4 -0
- data/lib/auth0/types/list_attack_protection_captcha_policies_response_content.rb +23 -0
- data/lib/auth0/types/list_client_profiles_paginated_response_content.rb +12 -0
- data/lib/auth0/types/oauth_scope.rb +4 -0
- data/lib/auth0/types/preview_cimd_metadata_response_content.rb +2 -0
- data/lib/auth0/types/role_owner_id.rb +23 -0
- data/lib/auth0/types/role_owner_id_filter.rb +23 -0
- data/lib/auth0/types/rotate_client_secret_response_content.rb +4 -0
- data/lib/auth0/types/search_client_grants_response_content.rb +11 -0
- data/lib/auth0/types/search_clients_response_content.rb +11 -0
- data/lib/auth0/types/search_organization.rb +0 -2
- data/lib/auth0/types/segment.rb +2 -0
- data/lib/auth0/types/segment_status_enum.rb +12 -0
- data/lib/auth0/types/system_role_owner_id.rb +11 -0
- data/lib/auth0/types/update_brute_force_settings_response_content.rb +2 -0
- data/lib/auth0/types/update_client_response_content.rb +4 -0
- data/lib/auth0/types/update_segment_response_content.rb +2 -0
- data/lib/auth0/types/update_tenant_settings_response_content.rb +4 -0
- data/lib/auth0/version.rb +1 -1
- data/lib/auth0.rb +84 -5
- data/wiremock/wiremock-mappings.json +479 -91
- metadata +85 -6
- data/lib/auth0/experimentation/experiments/types/update_experiment_status_request_content.rb +0 -15
- data/lib/auth0/experimentation/feature_flags/types/update_feature_flag_status_request_content.rb +0 -15
- data/lib/auth0/types/update_experiment_status_response_content.rb +0 -45
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
module Auth0
|
|
4
4
|
module Types
|
|
5
|
-
|
|
5
|
+
# An attack protection policy override for CAPTCHA.
|
|
6
|
+
class AttackProtectionCaptchaPolicy < Internal::Types::Model
|
|
6
7
|
field :id, -> { String }, optional: false, nullable: false
|
|
7
8
|
|
|
8
9
|
field :name, -> { String }, optional: false, nullable: false
|
|
9
10
|
|
|
10
11
|
field :description, -> { String }, optional: true, nullable: false
|
|
11
12
|
|
|
12
|
-
field :
|
|
13
|
+
field :priority, -> { Integer }, optional: false, nullable: false
|
|
13
14
|
|
|
14
|
-
field :
|
|
15
|
+
field :match, -> { Auth0::Types::AttackProtectionCaptchaPolicyMatch }, optional: false, nullable: false
|
|
15
16
|
|
|
16
|
-
field :
|
|
17
|
+
field :action, -> { Auth0::Types::AttackProtectionCaptchaPolicyAction }, optional: false, nullable: false
|
|
17
18
|
|
|
18
19
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
19
20
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# CAPTCHA configuration override stored for this policy.
|
|
6
|
+
class AttackProtectionCaptchaPolicyAction < Internal::Types::Model
|
|
7
|
+
field :active_provider_id, -> { Auth0::Types::CaptchaActiveProviderEnum }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :simple_captcha, -> { Auth0::Types::CaptchaPolicyActionSimpleCaptcha }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :auth_challenge, -> { Auth0::Types::CaptchaPolicyActionAuthChallenge }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :recaptcha_v2, -> { Auth0::Types::CaptchaPolicyActionRecaptchaV2 }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :recaptcha_enterprise, -> { Auth0::Types::CaptchaPolicyActionRecaptchaEnterprise }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :hcaptcha, -> { Auth0::Types::CaptchaPolicyActionHcaptcha }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :friendly_captcha, -> { Auth0::Types::CaptchaPolicyActionFriendlyCaptcha }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :arkose, -> { Auth0::Types::CaptchaPolicyActionArkose }, optional: true, nullable: false
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# CAPTCHA configuration override for this policy.
|
|
6
|
+
class AttackProtectionCaptchaPolicyActionInput < Internal::Types::Model
|
|
7
|
+
field :active_provider_id, -> { Auth0::Types::CaptchaActiveProviderEnum }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :simple_captcha, -> { Auth0::Types::CaptchaPolicyActionSimpleCaptcha }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :auth_challenge, -> { Auth0::Types::CaptchaPolicyActionAuthChallenge }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :recaptcha_v2, -> { Auth0::Types::CaptchaPolicyActionRecaptchaV2Input }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :recaptcha_enterprise, -> { Auth0::Types::CaptchaPolicyActionRecaptchaEnterpriseInput }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :hcaptcha, -> { Auth0::Types::CaptchaPolicyActionHcaptchaInput }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :friendly_captcha, -> { Auth0::Types::CaptchaPolicyActionFriendlyCaptchaInput }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :arkose, -> { Auth0::Types::CaptchaPolicyActionArkoseInput }, optional: true, nullable: false
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Traffic matching criteria for the policy. Exactly one of auth0_managed or geo_country_codes must be specified.
|
|
6
|
+
class AttackProtectionCaptchaPolicyMatch < Internal::Types::Model
|
|
7
|
+
field :auth0managed, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "auth0_managed"
|
|
8
|
+
|
|
9
|
+
field :geo_country_codes, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
module CaptchaActiveProviderEnum
|
|
6
|
+
extend Auth0::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
SIMPLE_CAPTCHA = "simple_captcha"
|
|
9
|
+
AUTH_CHALLENGE = "auth_challenge"
|
|
10
|
+
RECAPTCHA_V2 = "recaptcha_v2"
|
|
11
|
+
RECAPTCHA_ENTERPRISE = "recaptcha_enterprise"
|
|
12
|
+
HCAPTCHA = "hcaptcha"
|
|
13
|
+
FRIENDLY_CAPTCHA = "friendly_captcha"
|
|
14
|
+
ARKOSE = "arkose"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Arkose Labs provider configuration.
|
|
6
|
+
class CaptchaPolicyActionArkose < Internal::Types::Model
|
|
7
|
+
field :site_key, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :client_subdomain, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :verify_subdomain, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :fail_open, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Arkose Labs provider configuration.
|
|
6
|
+
class CaptchaPolicyActionArkoseInput < Internal::Types::Model
|
|
7
|
+
field :site_key, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :secret, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :client_subdomain, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :verify_subdomain, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :fail_open, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Auth Challenge CAPTCHA provider configuration.
|
|
6
|
+
class CaptchaPolicyActionAuthChallenge < Internal::Types::Model
|
|
7
|
+
field :fail_open, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Friendly Captcha provider configuration.
|
|
6
|
+
class CaptchaPolicyActionFriendlyCaptchaInput < Internal::Types::Model
|
|
7
|
+
field :site_key, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :secret, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# hCaptcha provider configuration.
|
|
6
|
+
class CaptchaPolicyActionHcaptchaInput < Internal::Types::Model
|
|
7
|
+
field :site_key, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :secret, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# reCAPTCHA Enterprise provider configuration.
|
|
6
|
+
class CaptchaPolicyActionRecaptchaEnterprise < Internal::Types::Model
|
|
7
|
+
field :site_key, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :project_id, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# reCAPTCHA Enterprise provider configuration.
|
|
6
|
+
class CaptchaPolicyActionRecaptchaEnterpriseInput < Internal::Types::Model
|
|
7
|
+
field :site_key, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :project_id, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :api_key, -> { String }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# reCAPTCHA v2 provider configuration.
|
|
6
|
+
class CaptchaPolicyActionRecaptchaV2Input < Internal::Types::Model
|
|
7
|
+
field :site_key, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :secret, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
data/lib/auth0/types/client.rb
CHANGED
|
@@ -123,6 +123,8 @@ module Auth0
|
|
|
123
123
|
|
|
124
124
|
field :anonymous_sessions, -> { Auth0::Types::AnonymousSessions }, optional: true, nullable: false
|
|
125
125
|
|
|
126
|
+
field :enforce_anon_session_transfer_network_binding, -> { Auth0::Types::ClientAnonymousSessionTransferNetworkBindingEnum }, optional: true, nullable: false
|
|
127
|
+
|
|
126
128
|
field :third_party_security_mode, -> { Auth0::Types::ClientThirdPartySecurityModeEnum }, optional: true, nullable: false
|
|
127
129
|
|
|
128
130
|
field :redirection_policy, -> { Auth0::Types::ClientRedirectionPolicyEnum }, optional: true, nullable: false
|
|
@@ -135,6 +137,8 @@ module Auth0
|
|
|
135
137
|
|
|
136
138
|
field :external_metadata_created_by, -> { Auth0::Types::ClientExternalMetadataCreatedByEnum }, optional: true, nullable: false
|
|
137
139
|
|
|
140
|
+
field :external_metadata_status, -> { Auth0::Types::ClientExternalMetadataStatusEnum }, optional: true, nullable: false
|
|
141
|
+
|
|
138
142
|
field :external_client_id, -> { String }, optional: true, nullable: false
|
|
139
143
|
|
|
140
144
|
field :jwks_uri, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# OIDC support configuration for a client. Replaces the stored object entirely; send null to unset it.
|
|
6
|
+
class ClientOidcSupportPatch < Internal::Types::Model
|
|
7
|
+
field :is_allowed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :allow_all_scopes, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :allowed_scopes, -> { Internal::Types::Array[Auth0::Types::ClientOidcSupportAllowedScopesEnum] }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class ClientProfile < Internal::Types::Model
|
|
6
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :client_configuration, -> { Auth0::Types::ClientProfileClientConfiguration }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :apply_policy, -> { Auth0::Types::ClientProfileApplyPolicy }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :created_at, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :updated_at, -> { String }, optional: true, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Runtime matching rules that determine which clients this profile governs.
|
|
6
|
+
class ClientProfileApplyPolicy < Internal::Types::Model
|
|
7
|
+
field :external_metadata_type, -> { Auth0::Types::ClientProfileApplyPolicyExternalMetadataTypeEnum }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :external_metadata_created_by, -> { Auth0::Types::ClientProfileApplyPolicyExternalMetadataCreatedByEnum }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Runtime policy applied to matched clients. Omitted fields fall back to each client's own setting.
|
|
6
|
+
class ClientProfileClientConfiguration < Internal::Types::Model
|
|
7
|
+
field :refresh_token, -> { Auth0::Types::ClientProfileClientConfigurationRefreshToken }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :organization_usage, -> { Auth0::Types::ClientProfileClientConfigurationOrganizationUsage }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :organization_require_behavior, -> { Auth0::Types::ClientProfileClientConfigurationOrganizationRequireBehavior }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :organization_discovery_methods, -> { Auth0::Types::ClientProfileClientConfigurationOrganizationDiscoveryMethods }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :require_proof_of_possession, -> { Auth0::Types::ClientProfileClientConfigurationRequireProofOfPossession }, optional: true, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Default organization discovery methods applied to matched clients.
|
|
6
|
+
class ClientProfileClientConfigurationOrganizationDiscoveryMethods < Internal::Types::Model
|
|
7
|
+
field :default_value, -> { Internal::Types::Array[Auth0::Types::ClientProfileClientConfigurationOrganizationDiscoveryMethodEnum] }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Default organization prompt behavior applied to matched clients.
|
|
6
|
+
class ClientProfileClientConfigurationOrganizationRequireBehavior < Internal::Types::Model
|
|
7
|
+
field :default_value, -> { Auth0::Types::ClientProfileClientConfigurationOrganizationRequireBehaviorEnum }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
data/lib/auth0/types/client_profile_client_configuration_organization_require_behavior_enum.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
module ClientProfileClientConfigurationOrganizationRequireBehaviorEnum
|
|
6
|
+
extend Auth0::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
NO_PROMPT = "no_prompt"
|
|
9
|
+
PRE_LOGIN_PROMPT = "pre_login_prompt"
|
|
10
|
+
POST_LOGIN_PROMPT = "post_login_prompt"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Default organization usage applied to matched clients.
|
|
6
|
+
class ClientProfileClientConfigurationOrganizationUsage < Internal::Types::Model
|
|
7
|
+
field :default_value, -> { Auth0::Types::ClientProfileClientConfigurationOrganizationUsageEnum }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Refresh token settings. Omit any sub-field to use the client's own value.
|
|
6
|
+
class ClientProfileClientConfigurationRefreshToken < Internal::Types::Model
|
|
7
|
+
field :token_lifetime, -> { Auth0::Types::ClientProfileRefreshTokenTokenLifetime }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :idle_token_lifetime, -> { Auth0::Types::ClientProfileRefreshTokenIdleTokenLifetime }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :leeway, -> { Auth0::Types::ClientProfileRefreshTokenLeeway }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Whether matched clients default to requiring proof of possession.
|
|
6
|
+
class ClientProfileClientConfigurationRequireProofOfPossession < Internal::Types::Model
|
|
7
|
+
field :default_value, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
module ClientProfileDescription
|
|
6
|
+
# ClientProfileDescription is an alias for Object
|
|
7
|
+
|
|
8
|
+
# @option str [String]
|
|
9
|
+
#
|
|
10
|
+
# @return [untyped]
|
|
11
|
+
def self.load(str)
|
|
12
|
+
::JSON.parse(str)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# @option value [untyped]
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
def self.dump(value)
|
|
19
|
+
::JSON.generate(value)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
module ClientProfileID
|
|
6
|
+
# ClientProfileID is an alias for String
|
|
7
|
+
|
|
8
|
+
# @option str [String]
|
|
9
|
+
#
|
|
10
|
+
# @return [untyped]
|
|
11
|
+
def self.load(str)
|
|
12
|
+
::JSON.parse(str)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# @option value [untyped]
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
def self.dump(value)
|
|
19
|
+
::JSON.generate(value)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
module ClientProfileName
|
|
6
|
+
# ClientProfileName is an alias for String
|
|
7
|
+
|
|
8
|
+
# @option str [String]
|
|
9
|
+
#
|
|
10
|
+
# @return [untyped]
|
|
11
|
+
def self.load(str)
|
|
12
|
+
::JSON.parse(str)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# @option value [untyped]
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
def self.dump(value)
|
|
19
|
+
::JSON.generate(value)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Default idle refresh token lifetime, in seconds, applied to matched clients.
|
|
6
|
+
class ClientProfileRefreshTokenIdleTokenLifetime < Internal::Types::Model
|
|
7
|
+
field :default_value, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Default refresh token rotation leeway, in seconds, applied to matched clients.
|
|
6
|
+
class ClientProfileRefreshTokenLeeway < Internal::Types::Model
|
|
7
|
+
field :default_value, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|