auth0 6.4.0 → 6.6.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 +10 -46
- data/.version +1 -1
- data/CHANGELOG.md +17 -0
- data/EXAMPLES.md +20 -0
- data/README.md +18 -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/auth_client.rb +27 -2
- data/lib/auth0/client.rb +20 -2
- 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 +84 -0
- data/lib/auth0/clients/types/create_client_request_content.rb +4 -0
- data/lib/auth0/clients/types/list_clients_request_parameters.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 +6 -0
- data/lib/auth0/connections/keys/client.rb +5 -5
- data/lib/auth0/email_templates/client.rb +14 -2
- data/lib/auth0/experimentation/experiments/client.rb +2 -47
- data/lib/auth0/experimentation/experiments/types/create_experiment_request_content.rb +1 -1
- 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/client.rb +4 -1
- data/lib/auth0/experimentation/segments/types/list_segments_request_parameters.rb +2 -0
- data/lib/auth0/experimentation/segments/types/update_segment_request_content.rb +2 -0
- data/lib/auth0/internal/http/rate_limit.rb +103 -0
- data/lib/auth0/internal/http/raw_client.rb +14 -2
- data/lib/auth0/internal/types/model.rb +15 -6
- data/lib/auth0/mixins/httpproxy.rb +9 -1
- data/lib/auth0/mixins/initializer.rb +5 -0
- data/lib/auth0/portals/client.rb +198 -0
- data/lib/auth0/portals/types/create_portal_request_content.rb +21 -0
- data/lib/auth0/portals/types/update_portal_request_content.rb +23 -0
- data/lib/auth0/resource_servers/types/create_resource_server_request_content.rb +4 -0
- data/lib/auth0/resource_servers/types/update_resource_server_request_content.rb +4 -0
- 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/brute_force_protection_form_submission_mode_enum.rb +12 -0
- data/lib/auth0/types/cimd_external_metadata_created_by_enum.rb +12 -0
- data/lib/auth0/types/client.rb +8 -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.rb +14 -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 +20 -0
- data/lib/auth0/types/client_profile_client_configuration_oidc_support.rb +10 -0
- data/lib/auth0/types/client_profile_client_configuration_oidc_support_allowed_scopes_enum.rb +14 -0
- data/lib/auth0/types/client_profile_client_configuration_oidc_support_default_value.rb +14 -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 +143 -0
- data/lib/auth0/types/client_sort_field_enum.rb +12 -0
- data/lib/auth0/types/connection_client_id_samlxaa_requesting_app.rb +23 -0
- data/lib/auth0/types/connection_client_secret_samlxaa_requesting_app.rb +23 -0
- data/lib/auth0/types/connection_options_auth0.rb +2 -0
- data/lib/auth0/types/connection_options_saml.rb +10 -0
- data/lib/auth0/types/connection_otp_channel_settings.rb +12 -0
- data/lib/auth0/types/connection_otp_settings.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_properties_options.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 +4 -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/consent_signing_key.rb +15 -0
- data/lib/auth0/types/create_client_response_content.rb +8 -0
- data/lib/auth0/types/create_connection_request_content_saml.rb +2 -0
- data/lib/auth0/types/create_resource_server_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_context.rb +2 -0
- data/lib/auth0/types/event_stream_cloud_event_context_transaction.rb +30 -0
- data/lib/auth0/types/event_stream_cloud_event_context_transaction_protocol_enum.rb +24 -0
- data/lib/auth0/types/event_stream_cloud_event_context_transaction_response_mode_enum.rb +14 -0
- data/lib/auth0/types/event_stream_cloud_event_context_transaction_response_type_item_enum.rb +13 -0
- 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 +8 -0
- data/lib/auth0/types/get_resource_server_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/guardian_factor_name_enum.rb +1 -0
- data/lib/auth0/types/internal_server_error_body.rb +13 -0
- data/lib/auth0/types/internal_server_error_body_error.rb +11 -0
- data/lib/auth0/types/list_client_profiles_paginated_response_content.rb +12 -0
- data/lib/auth0/types/list_portals_response_content.rb +9 -0
- data/lib/auth0/types/list_user_consent_signing_keys_response_content.rb +9 -0
- data/lib/auth0/types/oauth_scope.rb +8 -0
- data/lib/auth0/types/page_component.rb +33 -0
- data/lib/auth0/types/page_component_auth0form.rb +9 -0
- data/lib/auth0/types/page_component_auth0form_config.rb +11 -0
- data/lib/auth0/types/page_component_auth0media_image.rb +9 -0
- data/lib/auth0/types/page_component_auth0media_image_config.rb +13 -0
- data/lib/auth0/types/page_component_auth0my_account_mfa_management.rb +9 -0
- data/lib/auth0/types/page_component_auth0my_account_mfa_management_config.rb +7 -0
- data/lib/auth0/types/page_component_auth0my_account_passkey_management.rb +9 -0
- data/lib/auth0/types/page_component_auth0my_account_passkey_management_config.rb +7 -0
- data/lib/auth0/types/page_component_auth0my_organization_details_edit.rb +9 -0
- data/lib/auth0/types/page_component_auth0my_organization_details_edit_config.rb +7 -0
- data/lib/auth0/types/page_component_auth0my_organization_domain_table.rb +9 -0
- data/lib/auth0/types/page_component_auth0my_organization_domain_table_config.rb +7 -0
- data/lib/auth0/types/page_component_auth0my_organization_member_management.rb +9 -0
- data/lib/auth0/types/page_component_auth0my_organization_member_management_config.rb +7 -0
- data/lib/auth0/types/page_component_auth0structure_section.rb +9 -0
- data/lib/auth0/types/page_component_auth0structure_section_config.rb +15 -0
- data/lib/auth0/types/page_component_auth0structure_section_variant_enum.rb +12 -0
- data/lib/auth0/types/page_component_auth0structure_separator.rb +9 -0
- data/lib/auth0/types/page_component_auth0structure_separator_config.rb +11 -0
- data/lib/auth0/types/page_component_auth0structure_separator_variant_enum.rb +13 -0
- data/lib/auth0/types/page_component_auth0typography_heading.rb +9 -0
- data/lib/auth0/types/page_component_auth0typography_heading_config.rb +11 -0
- data/lib/auth0/types/page_component_auth0typography_rich_text.rb +9 -0
- data/lib/auth0/types/page_component_auth0typography_rich_text_config.rb +9 -0
- data/lib/auth0/types/page_component_no_children.rb +31 -0
- data/lib/auth0/types/page_slug.rb +23 -0
- data/lib/auth0/types/portal.rb +25 -0
- data/lib/auth0/types/portal_client_secret_post.rb +11 -0
- data/lib/auth0/types/portal_client_secret_post_request.rb +13 -0
- data/lib/auth0/types/portal_client_secret_post_request_token_endpoint_auth_method.rb +11 -0
- data/lib/auth0/types/portal_client_secret_post_token_endpoint_auth_method.rb +11 -0
- data/lib/auth0/types/portal_custom_code.rb +9 -0
- data/lib/auth0/types/portal_custom_code_nullable.rb +23 -0
- data/lib/auth0/types/portal_date_time.rb +23 -0
- data/lib/auth0/types/portal_id.rb +23 -0
- data/lib/auth0/types/portal_name.rb +23 -0
- data/lib/auth0/types/portal_navigation.rb +9 -0
- data/lib/auth0/types/portal_navigation_nullable.rb +23 -0
- data/lib/auth0/types/portal_page.rb +13 -0
- data/lib/auth0/types/portal_pages_by_type.rb +11 -0
- data/lib/auth0/types/portal_pages_by_type_nullable.rb +23 -0
- data/lib/auth0/types/portal_slug.rb +23 -0
- data/lib/auth0/types/portal_summary.rb +17 -0
- data/lib/auth0/types/position.rb +13 -0
- data/lib/auth0/types/preview_cimd_metadata_response_content.rb +2 -0
- data/lib/auth0/types/resource_server.rb +4 -0
- data/lib/auth0/types/resource_server_agent_subject_claims_response_enum.rb +12 -0
- data/lib/auth0/types/resource_server_agent_subject_claims_schema_enum.rb +12 -0
- data/lib/auth0/types/resource_server_search_response.rb +4 -0
- data/lib/auth0/types/resource_server_type_enum.rb +11 -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 +8 -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/sidebar.rb +9 -0
- data/lib/auth0/types/sidebar_component.rb +19 -0
- data/lib/auth0/types/sidebar_component_auth0external_link.rb +10 -0
- data/lib/auth0/types/sidebar_component_auth0external_link_config.rb +13 -0
- data/lib/auth0/types/sidebar_component_auth0external_link_v2.rb +9 -0
- data/lib/auth0/types/sidebar_component_auth0external_link_v2config.rb +13 -0
- data/lib/auth0/types/sidebar_component_auth0internal_link.rb +10 -0
- data/lib/auth0/types/sidebar_component_auth0internal_link_config.rb +13 -0
- data/lib/auth0/types/sidebar_component_auth0internal_link_v2.rb +9 -0
- data/lib/auth0/types/sidebar_component_auth0internal_link_v2config.rb +13 -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 +8 -0
- data/lib/auth0/types/update_connection_options.rb +2 -0
- data/lib/auth0/types/update_connection_request_content_saml.rb +2 -0
- data/lib/auth0/types/update_resource_server_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/types/update_variation_overrides_map.rb +1 -1
- data/lib/auth0/users/client.rb +120 -0
- data/lib/auth0/version.rb +1 -1
- data/lib/auth0.rb +142 -6
- data/wiremock/wiremock-mappings.json +666 -158
- metadata +143 -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
- data/lib/auth0/types/update_feature_flag_status_response_content.rb +0 -23
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
require "addressable/uri"
|
|
2
2
|
require "retryable"
|
|
3
3
|
require_relative "../exception.rb"
|
|
4
|
+
require_relative "../internal/http/rate_limit"
|
|
4
5
|
|
|
5
6
|
module Auth0
|
|
6
7
|
module Mixins
|
|
7
8
|
# here's the proxy for Rest calls based on rest-client, we're building all request on that gem
|
|
8
9
|
# for now, if you want to feel free to use your own http client
|
|
9
10
|
module HTTPProxy
|
|
10
|
-
attr_accessor :headers, :base_uri, :timeout, :retry_count
|
|
11
|
+
attr_accessor :headers, :base_uri, :timeout, :retry_count, :rate_limit_handler
|
|
11
12
|
DEFAULT_RETRIES = 3
|
|
12
13
|
MAX_ALLOWED_RETRIES = 10
|
|
13
14
|
MAX_REQUEST_RETRY_JITTER = 250
|
|
@@ -95,6 +96,13 @@ module Auth0
|
|
|
95
96
|
call(method, encode_uri(uri), timeout, headers, body.to_json)
|
|
96
97
|
end
|
|
97
98
|
|
|
99
|
+
# Surface rate limit for each response, including 429 retries. `call`
|
|
100
|
+
# returns nil for some errors (e.g. a dropped connection), so skip it then.
|
|
101
|
+
if @rate_limit_handler && !result.nil?
|
|
102
|
+
rate_limit = Auth0::Internal::Http::RateLimit.from_headers(result.headers)
|
|
103
|
+
Auth0::Internal::Http::RateLimit.deliver(@rate_limit_handler, rate_limit)
|
|
104
|
+
end
|
|
105
|
+
|
|
98
106
|
case result.code
|
|
99
107
|
when 200...226 then safe_parse_json(result.body)
|
|
100
108
|
when 400 then raise Auth0::BadRequest.new(result.body, code: result.code, headers: result.headers)
|
|
@@ -21,6 +21,11 @@ module Auth0
|
|
|
21
21
|
@management_timeout = options[:management_timeout]
|
|
22
22
|
@management_max_retries = options[:management_max_retries]
|
|
23
23
|
@management_additional_headers = options[:management_additional_headers]
|
|
24
|
+
handler = options[:rate_limit_handler]
|
|
25
|
+
raise ArgumentError, "rate_limit_handler must respond to #call" if handler && !handler.respond_to?(:call)
|
|
26
|
+
|
|
27
|
+
@rate_limit_handler = handler
|
|
28
|
+
|
|
24
29
|
extend Auth0::Api::AuthenticationEndpoints
|
|
25
30
|
|
|
26
31
|
@client_id = options[:client_id]
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Portals
|
|
5
|
+
class Client
|
|
6
|
+
# @param client [Auth0::Internal::Http::RawClient]
|
|
7
|
+
#
|
|
8
|
+
# @return [void]
|
|
9
|
+
def initialize(client:)
|
|
10
|
+
@client = client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# @param request_options [Hash]
|
|
14
|
+
# @param _params [Hash]
|
|
15
|
+
# @option request_options [String] :base_url
|
|
16
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
17
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
18
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
19
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
20
|
+
#
|
|
21
|
+
# @example
|
|
22
|
+
# client.portals.list
|
|
23
|
+
#
|
|
24
|
+
# @return [Auth0::Types::ListPortalsResponseContent]
|
|
25
|
+
def list(request_options: {}, **_params)
|
|
26
|
+
request = Auth0::Internal::JSON::Request.new(
|
|
27
|
+
base_url: request_options[:base_url],
|
|
28
|
+
method: "GET",
|
|
29
|
+
path: "portals",
|
|
30
|
+
request_options: request_options
|
|
31
|
+
)
|
|
32
|
+
begin
|
|
33
|
+
response = @client.send(request)
|
|
34
|
+
rescue Net::HTTPRequestTimeout
|
|
35
|
+
raise Auth0::Errors::TimeoutError
|
|
36
|
+
end
|
|
37
|
+
code = response.code.to_i
|
|
38
|
+
if code.between?(200, 299)
|
|
39
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::ListPortalsResponseContent.load(response.body))
|
|
40
|
+
else
|
|
41
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
42
|
+
raise error_class.new(response.body, code: code)
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# @param request_options [Hash]
|
|
47
|
+
# @param params [Auth0::Portals::Types::CreatePortalRequestContent]
|
|
48
|
+
# @option request_options [String] :base_url
|
|
49
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
50
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
51
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
52
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
53
|
+
#
|
|
54
|
+
# @example
|
|
55
|
+
# client.portals.create(
|
|
56
|
+
# slug: "slug",
|
|
57
|
+
# name: "name",
|
|
58
|
+
# client: {
|
|
59
|
+
# token_endpoint_auth_method: "client_secret_post",
|
|
60
|
+
# client_id: "client_id",
|
|
61
|
+
# client_secret: "client_secret"
|
|
62
|
+
# }
|
|
63
|
+
# )
|
|
64
|
+
#
|
|
65
|
+
# @return [Auth0::Types::Portal]
|
|
66
|
+
def create(request_options: {}, **params)
|
|
67
|
+
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
68
|
+
request = Auth0::Internal::JSON::Request.new(
|
|
69
|
+
base_url: request_options[:base_url],
|
|
70
|
+
method: "POST",
|
|
71
|
+
path: "portals",
|
|
72
|
+
body: Auth0::Portals::Types::CreatePortalRequestContent.new(params).to_h,
|
|
73
|
+
request_options: request_options
|
|
74
|
+
)
|
|
75
|
+
begin
|
|
76
|
+
response = @client.send(request)
|
|
77
|
+
rescue Net::HTTPRequestTimeout
|
|
78
|
+
raise Auth0::Errors::TimeoutError
|
|
79
|
+
end
|
|
80
|
+
code = response.code.to_i
|
|
81
|
+
if code.between?(200, 299)
|
|
82
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::Portal.load(response.body))
|
|
83
|
+
else
|
|
84
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
85
|
+
raise error_class.new(response.body, code: code)
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# @param request_options [Hash]
|
|
90
|
+
# @param params [Hash]
|
|
91
|
+
# @option request_options [String] :base_url
|
|
92
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
93
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
94
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
95
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
96
|
+
# @option params [Auth0::Types::PortalID] :id
|
|
97
|
+
#
|
|
98
|
+
# @example
|
|
99
|
+
# client.portals.get(id: "id")
|
|
100
|
+
#
|
|
101
|
+
# @return [Auth0::Types::Portal]
|
|
102
|
+
def get(request_options: {}, **params)
|
|
103
|
+
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
104
|
+
request = Auth0::Internal::JSON::Request.new(
|
|
105
|
+
base_url: request_options[:base_url],
|
|
106
|
+
method: "GET",
|
|
107
|
+
path: "portals/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
108
|
+
request_options: request_options
|
|
109
|
+
)
|
|
110
|
+
begin
|
|
111
|
+
response = @client.send(request)
|
|
112
|
+
rescue Net::HTTPRequestTimeout
|
|
113
|
+
raise Auth0::Errors::TimeoutError
|
|
114
|
+
end
|
|
115
|
+
code = response.code.to_i
|
|
116
|
+
if code.between?(200, 299)
|
|
117
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::Portal.load(response.body))
|
|
118
|
+
else
|
|
119
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
120
|
+
raise error_class.new(response.body, code: code)
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @param request_options [Hash]
|
|
125
|
+
# @param params [Hash]
|
|
126
|
+
# @option request_options [String] :base_url
|
|
127
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
128
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
129
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
130
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
131
|
+
# @option params [Auth0::Types::PortalID] :id
|
|
132
|
+
#
|
|
133
|
+
# @example
|
|
134
|
+
# client.portals.delete(id: "id")
|
|
135
|
+
#
|
|
136
|
+
# @return [untyped]
|
|
137
|
+
def delete(request_options: {}, **params)
|
|
138
|
+
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
139
|
+
request = Auth0::Internal::JSON::Request.new(
|
|
140
|
+
base_url: request_options[:base_url],
|
|
141
|
+
method: "DELETE",
|
|
142
|
+
path: "portals/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
143
|
+
request_options: request_options
|
|
144
|
+
)
|
|
145
|
+
begin
|
|
146
|
+
response = @client.send(request)
|
|
147
|
+
rescue Net::HTTPRequestTimeout
|
|
148
|
+
raise Auth0::Errors::TimeoutError
|
|
149
|
+
end
|
|
150
|
+
code = response.code.to_i
|
|
151
|
+
return if code.between?(200, 299)
|
|
152
|
+
|
|
153
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
154
|
+
raise error_class.new(response.body, code: code)
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# @param request_options [Hash]
|
|
158
|
+
# @param params [Auth0::Portals::Types::UpdatePortalRequestContent]
|
|
159
|
+
# @option request_options [String] :base_url
|
|
160
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
161
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
162
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
163
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
164
|
+
# @option params [Auth0::Types::PortalID] :id
|
|
165
|
+
#
|
|
166
|
+
# @example
|
|
167
|
+
# client.portals.update(id: "id")
|
|
168
|
+
#
|
|
169
|
+
# @return [Auth0::Types::Portal]
|
|
170
|
+
def update(request_options: {}, **params)
|
|
171
|
+
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
172
|
+
request_data = Auth0::Portals::Types::UpdatePortalRequestContent.new(params).to_h
|
|
173
|
+
non_body_param_names = %w[id]
|
|
174
|
+
body = request_data.except(*non_body_param_names)
|
|
175
|
+
|
|
176
|
+
request = Auth0::Internal::JSON::Request.new(
|
|
177
|
+
base_url: request_options[:base_url],
|
|
178
|
+
method: "PATCH",
|
|
179
|
+
path: "portals/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
180
|
+
body: body,
|
|
181
|
+
request_options: request_options
|
|
182
|
+
)
|
|
183
|
+
begin
|
|
184
|
+
response = @client.send(request)
|
|
185
|
+
rescue Net::HTTPRequestTimeout
|
|
186
|
+
raise Auth0::Errors::TimeoutError
|
|
187
|
+
end
|
|
188
|
+
code = response.code.to_i
|
|
189
|
+
if code.between?(200, 299)
|
|
190
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::Portal.load(response.body))
|
|
191
|
+
else
|
|
192
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
193
|
+
raise error_class.new(response.body, code: code)
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Portals
|
|
5
|
+
module Types
|
|
6
|
+
class CreatePortalRequestContent < Internal::Types::Model
|
|
7
|
+
field :slug, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :client, -> { Auth0::Types::PortalClientSecretPostRequest }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :navigation, -> { Auth0::Types::PortalNavigation }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :pages, -> { Auth0::Types::PortalPagesByType }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :custom_code, -> { Auth0::Types::PortalCustomCode }, optional: true, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Portals
|
|
5
|
+
module Types
|
|
6
|
+
class UpdatePortalRequestContent < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :slug, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :client, -> { Auth0::Types::PortalClientSecretPostRequest }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :navigation, -> { Auth0::Types::PortalNavigation }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :pages, -> { Auth0::Types::PortalPagesByType }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :custom_code, -> { Auth0::Types::PortalCustomCode }, optional: true, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -45,6 +45,10 @@ module Auth0
|
|
|
45
45
|
field :subject_type_authorization, -> { Auth0::Types::ResourceServerSubjectTypeAuthorization }, optional: true, nullable: false
|
|
46
46
|
|
|
47
47
|
field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false
|
|
48
|
+
|
|
49
|
+
field :agent_subject_claims, -> { Auth0::Types::ResourceServerAgentSubjectClaimsSchemaEnum }, optional: true, nullable: false
|
|
50
|
+
|
|
51
|
+
field :type, -> { Auth0::Types::ResourceServerTypeEnum }, optional: true, nullable: false
|
|
48
52
|
end
|
|
49
53
|
end
|
|
50
54
|
end
|
|
@@ -45,6 +45,10 @@ module Auth0
|
|
|
45
45
|
field :subject_type_authorization, -> { Auth0::Types::ResourceServerSubjectTypeAuthorization }, optional: true, nullable: false
|
|
46
46
|
|
|
47
47
|
field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false
|
|
48
|
+
|
|
49
|
+
field :agent_subject_claims, -> { Auth0::Types::ResourceServerAgentSubjectClaimsSchemaEnum }, optional: true, nullable: false
|
|
50
|
+
|
|
51
|
+
field :type, -> { Auth0::Types::ResourceServerTypeEnum }, optional: true, nullable: false
|
|
48
52
|
end
|
|
49
53
|
end
|
|
50
54
|
end
|
data/lib/auth0/roles/client.rb
CHANGED
|
@@ -10,7 +10,8 @@ module Auth0
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
# Retrieve
|
|
13
|
+
# Retrieve a list of roles. Includes roles created in your tenant and, when `owner_id=auth0` is supplied,
|
|
14
|
+
# Auth0-managed System Roles.
|
|
14
15
|
#
|
|
15
16
|
# **Note**: The returned list does not include standard roles available for tenant members, such as Admin or
|
|
16
17
|
# Support Access.
|
|
@@ -77,12 +77,16 @@ module Auth0
|
|
|
77
77
|
|
|
78
78
|
field :authorization_response_iss_parameter_supported, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
79
79
|
|
|
80
|
+
field :dpop_strict_refresh_token_binding, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
81
|
+
|
|
80
82
|
field :skip_non_verifiable_callback_uri_confirmation_prompt, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
81
83
|
|
|
82
84
|
field :resource_parameter_profile, -> { Auth0::Types::TenantSettingsResourceParameterProfile }, optional: true, nullable: false
|
|
83
85
|
|
|
84
86
|
field :client_id_metadata_document_supported, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
85
87
|
|
|
88
|
+
field :client_id_metadata_document_dynamic_registration_supported, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
89
|
+
|
|
86
90
|
field :enable_ai_guide, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
87
91
|
|
|
88
92
|
field :phone_consolidated_experience, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
data/lib/auth0/types/client.rb
CHANGED
|
@@ -123,8 +123,12 @@ 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
|
|
|
130
|
+
field :oidc_support, -> { Auth0::Types::ClientOidcSupport }, optional: true, nullable: false
|
|
131
|
+
|
|
128
132
|
field :redirection_policy, -> { Auth0::Types::ClientRedirectionPolicyEnum }, optional: true, nullable: false
|
|
129
133
|
|
|
130
134
|
field :resource_server_identifier, -> { String }, optional: true, nullable: false
|
|
@@ -135,6 +139,10 @@ module Auth0
|
|
|
135
139
|
|
|
136
140
|
field :external_metadata_created_by, -> { Auth0::Types::ClientExternalMetadataCreatedByEnum }, optional: true, nullable: false
|
|
137
141
|
|
|
142
|
+
field :external_metadata_status, -> { Auth0::Types::ClientExternalMetadataStatusEnum }, optional: true, nullable: false
|
|
143
|
+
|
|
144
|
+
field :agent_id, -> { String }, optional: true, nullable: false
|
|
145
|
+
|
|
138
146
|
field :external_client_id, -> { String }, optional: true, nullable: false
|
|
139
147
|
|
|
140
148
|
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 this client.
|
|
6
|
+
class ClientOidcSupport < Internal::Types::Model
|
|
7
|
+
field :is_allowed, -> { Internal::Types::Boolean }, optional: true, 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,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,20 @@
|
|
|
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
|
+
|
|
17
|
+
field :oidc_support, -> { Auth0::Types::ClientProfileClientConfigurationOidcSupport }, optional: true, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Default OIDC support applied to matched clients.
|
|
6
|
+
class ClientProfileClientConfigurationOidcSupport < Internal::Types::Model
|
|
7
|
+
field :default_value, -> { Auth0::Types::ClientProfileClientConfigurationOidcSupportDefaultValue }, optional: false, 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
|
+
module ClientProfileClientConfigurationOidcSupportAllowedScopesEnum
|
|
6
|
+
extend Auth0::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
PROFILE = "profile"
|
|
9
|
+
EMAIL = "email"
|
|
10
|
+
ADDRESS = "address"
|
|
11
|
+
PHONE = "phone"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# OIDC support settings applied to matched clients.
|
|
6
|
+
class ClientProfileClientConfigurationOidcSupportDefaultValue < 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::ClientProfileClientConfigurationOidcSupportAllowedScopesEnum] }, 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
|
+
# 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
|