auth0 4.7.0 → 4.12.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/.circleci/config.yml +23 -0
- data/.env.example +2 -0
- data/.github/CODEOWNERS +1 -0
- data/.github/stale.yml +20 -0
- data/.gitignore +0 -1
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +83 -0
- data/DEPLOYMENT.md +25 -3
- data/Gemfile +3 -1
- data/Gemfile.lock +231 -0
- data/README.md +114 -25
- data/auth0.gemspec +6 -6
- data/codecov.yml +22 -0
- data/deploy_documentation.sh +1 -1
- data/lib/auth0.rb +1 -0
- data/lib/auth0/algorithm.rb +5 -0
- data/lib/auth0/api/authentication_endpoints.rb +38 -2
- data/lib/auth0/api/v2.rb +6 -0
- data/lib/auth0/api/v2/anomaly.rb +36 -0
- data/lib/auth0/api/v2/client_grants.rb +5 -1
- data/lib/auth0/api/v2/guardian.rb +142 -0
- data/lib/auth0/api/v2/jobs.rb +22 -3
- data/lib/auth0/api/v2/roles.rb +172 -0
- data/lib/auth0/api/v2/users.rb +115 -4
- data/lib/auth0/exception.rb +35 -7
- data/lib/auth0/mixins.rb +8 -3
- data/lib/auth0/mixins/httpproxy.rb +11 -8
- data/lib/auth0/mixins/permission_struct.rb +3 -0
- data/lib/auth0/mixins/validation.rb +340 -0
- data/lib/auth0/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Anomaly/_check_if_ip_is_blocked/should_return_200_response_code.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Anomaly/_remove_ip_block/should_remove_an_IP_successfully.yml +60 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_client_grants/should_return_at_least_1_result.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_client_grants/should_return_the_first_page_of_one_result.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_client_grants/should_return_the_test_client_grant.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_delete_client_grant/should_delete_the_test_client_grant.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_patch_client_grant/should_update_the_test_client_grant.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/create_test_client.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/create_test_client_grant.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/delete_test_client.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/delete_test_client_grant.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_client/_filters/should_exclude_and_include_fields_properly.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_client/_filters/should_include_the_specified_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_client/should_get_the_test_client.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/_filters/should_exclude_fields_not_specified.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/_filters/should_exclude_the_specified_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/_filters/should_include_the_specified_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/_filters/should_paginate_results.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_clients/should_get_at_least_one_client.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_delete_client/should_delete_the_test_client_without_an_error.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/_patch_client/should_update_the_client_with_the_correct_attributes.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Clients/create_test_client.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/_filters/should_exclude_the_fields_indicated.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/_filters/should_include_the_fields_indicated.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connection/should_find_the_correct_connection.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_include_previously-created_connection_when_filtered.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_should_exclude_the_fields_indicated_from_filtered_results.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/_filters/should_should_include_the_fields_indicated_from_filtered_results.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/should_include_the_previously_created_connection.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_connections/should_not_be_empty.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_delete_connection/should_delete_the_connection.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_delete_connection_user/should_delete_the_user_created.yml +2 -2
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/_update_connection/should_update_the_connection.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/create_test_connection.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Connections/create_test_user.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_DeviceCredentials/create_test_user.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_DeviceCredentials/delete_test_credential.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_DeviceCredentials/delete_test_user.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_configure_provider/should_configure_a_new_email_provider.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_delete_provider/should_delete_the_existing_email_provider_without_an_error.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_delete_provider/should_throw_an_error_trying_to_get_the_email_provider.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_get_provider/_filters/should_get_the_existing_email_provider_with_specific_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_get_provider/_filters/should_get_the_existing_email_provider_without_specific_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_get_provider/should_get_the_existing_email_provider.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/_update_provider/should_update_the_existing_email_provider.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Emails/delete_existing_provider.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_log/should_match_the_created_log_entry.yml +2 -2
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_log/should_not_be_empty.yml +2 -2
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_filters/should_exclude_fields_not_specified.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_filters/should_exclude_the_specified_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_filters/should_have_one_log_entry.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_filters/should_include_the_specified_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/_logs/_from/should_take_one_log_entry.yml +2 -2
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/create_test_user.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/delete_test_disabled_rule.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/delete_test_enabled_rule.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Logs/delete_test_user.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_permissions/should_add_a_Permission_to_the_Role_successfully.yml +69 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_users/should_add_a_User_to_the_Role_successfully.yml +69 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_delete_role/should_delete_the_Role_successfully.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role/should_get_the_Role_successfully.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_exactly_1_Permission.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_the_added_Permission_from_the_Role_successfully.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_exactly_1_User.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_the_added_User_from_the_Role_successfully.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_roles/should_get_the_Role_successfully.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_remove_role_permissions/should_remove_a_Permission_from_the_Role_successfully.yml +64 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_update_role/should_update_the_Role_successfully.yml +69 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_api.yml +69 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_role.yml +69 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_user.yml +69 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_api.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_user.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_delete_rule/should_delete_the_test_disabled_rule_without_an_error.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_delete_rule/should_delete_the_test_enabled_rule_without_an_error.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/_filters/should_exclude_the_fields_not_specified.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/_filters/should_exclude_the_specified_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/_filters/should_include_the_specified_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/should_get_a_specific_rule.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_exclude_fields_not_specified.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_include_the_specified_fields.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_return_at_least_1_disabled_rule.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_return_at_least_1_enabled_rule.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/_filters/should_return_paginated_results.yml +2 -2
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rules/should_return_at_least_1_rule.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_update_rule/should_update_the_disabled_rule_to_be_enabled.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/create_test_disabled_rule.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/create_test_enabled_rule.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Stats/_active_users/should_have_at_least_one_active_user.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Stats/_daily_stats/should_have_at_least_one_stats_entry_for_the_timeframe.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_get_tenant_settings/should_get_the_tenant_settings.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_get_tenant_settings_with_specific_fields/should_exclude_a_field_not_requested.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_get_tenant_settings_with_specific_fields/should_include_the_field_requested.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_update_tenant_settings/should_revert_the_tenant_name.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tenants/_update_tenant_settings/should_update_the_tenant_settings_with_a_new_tenant_name.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/_post_email_verification/should_create_an_email_verification_ticket.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/_post_password_change/should_create_a_password_change_ticket.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/create_test_user.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/delete_test_user.yml +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_add_user_permissions/should_add_a_Permissions_for_a_User_successfully.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_add_user_roles/should_add_a_Role_to_a_User_successfully.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user/{should_delete_the_user_successfully.yml → should_delete_the_User_successfully.yml} +14 -8
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user/should_delete_the_secondary_User_successfully.yml +60 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user_provider/should_attempt_to_delete_the_MFA_provider_for_the_User.yml +60 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_enrollments/should_get_Enrollments_for_a_User_successfully.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_permissions/should_get_exactly_1_Permission_for_a_User_successfully.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_permissions/should_get_the_correct_Permission_for_a_User_successfully.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_roles/should_get_Roles_for_a_User_successfully.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_invalidate_browsers/should_invalidate_MFA_browsers_for_the_User_successfully.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_link_user_account/should_link_two_Users_successfully.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_patch_user/should_patch_the_User_successfully.yml +68 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_remove_user_permissions/should_remove_a_Permission_from_a_User_successfully.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_remove_user_roles/should_remove_a_Role_from_a_User_successfully.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_unlink_user_account/should_unlink_two_Users_successfully.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_exclude_fields_not_indicated.yml +15 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_exclude_the_fields_indicated.yml +15 -13
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_include_the_fields_indicated.yml +15 -13
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/should_retrieve_the_created_user.yml +15 -16
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user_logs/should_get_Logs_for_a_User_successfully.yml +69 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/is_expected_to_find_a_user_with_a_v2_search_engine_query.yml +14 -8
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/is_expected_to_find_a_user_with_a_v3_search_engine_query.yml +14 -8
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_exclude_the_indicated_fields_when_paginated.yml +13 -7
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_include_the_indicated_fields_when_paginated.yml +13 -7
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_not_include_other_fields_when_paginated.yml +13 -7
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_return_the_correct_number_of_results_when_paginated.yml +13 -7
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/should_have_at_least_one_user.yml +13 -7
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_secondary_test_user.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_api.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_role.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_user.yml +15 -16
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/delete_test_api.yml +60 -0
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/delete_test_role.yml +60 -0
- data/spec/integration/lib/auth0/api/v2/api_anomaly_spec.rb +17 -0
- data/spec/integration/lib/auth0/api/v2/api_roles_spec.rb +145 -0
- data/spec/integration/lib/auth0/api/v2/api_users_spec.rb +150 -32
- data/spec/integration/lib/auth0/auth0_client_spec.rb +3 -4
- data/spec/lib/auth0/api/authentication_endpoints_spec.rb +37 -10
- data/spec/lib/auth0/api/v2/anomaly_spec.rb +26 -0
- data/spec/lib/auth0/api/v2/client_grants_spec.rb +17 -0
- data/spec/lib/auth0/api/v2/guardian_spec.rb +154 -0
- data/spec/lib/auth0/api/v2/jobs_spec.rb +33 -1
- data/spec/lib/auth0/api/v2/roles_spec.rb +362 -0
- data/spec/lib/auth0/api/v2/users_spec.rb +406 -66
- data/spec/lib/auth0/mixins/httpproxy_spec.rb +81 -2
- data/spec/lib/auth0/mixins/validation_spec.rb +474 -0
- data/spec/spec_helper.rb +11 -7
- data/spec/support/credentials.rb +4 -13
- data/spec/support/dummy_class.rb +1 -1
- data/spec/support/stub_response.rb +1 -1
- metadata +145 -23
- data/.travis.yml +0 -18
- data/build_travis.sh +0 -7
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_patch_user/should_patch_email_verified_and_return_the_updated_data.yml +0 -68
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_patch_user/should_patch_user_metadata_and_return_the_updated_user.yml +0 -69
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
require 'pry'
|
2
2
|
require 'rack/test'
|
3
3
|
require 'faker'
|
4
|
+
require 'json'
|
4
5
|
require 'auth0'
|
5
6
|
|
6
7
|
require 'simplecov'
|
7
|
-
SimpleCov.start
|
8
|
-
add_filter '/spec/'
|
9
|
-
add_filter '/spec/integration'
|
10
|
-
end
|
8
|
+
SimpleCov.start
|
11
9
|
|
12
|
-
|
13
|
-
|
10
|
+
if ENV['CI'] == 'true'
|
11
|
+
require 'codecov'
|
12
|
+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
13
|
+
end
|
14
14
|
|
15
15
|
require 'dotenv'
|
16
16
|
Dotenv.load
|
@@ -28,12 +28,16 @@ VCR.configure do |config|
|
|
28
28
|
config.hook_into :webmock
|
29
29
|
config.filter_sensitive_data('CLIENT_SECRET') { ENV['CLIENT_SECRET'] }
|
30
30
|
config.filter_sensitive_data('API_TOKEN') { ENV['MASTER_JWT'] }
|
31
|
+
|
32
|
+
ENV['DOMAIN'] = 'auth0-sdk-tests.auth0.com'
|
33
|
+
ENV['CLIENT_ID'] = '2cnWuug6zaFX1j0ge1P99jAUn0F4XSuI'
|
31
34
|
end
|
32
35
|
|
33
36
|
$LOAD_PATH.unshift File.expand_path('..', __FILE__)
|
34
37
|
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
35
38
|
|
36
|
-
Dir['./lib
|
39
|
+
Dir['./lib/*.rb'].each { |f| require f }
|
40
|
+
Dir['./lib/api/**/*.rb'].each { |f| require f }
|
37
41
|
Dir['./spec/support/**/*.rb'].each { |f| require f }
|
38
42
|
Dir['./spec/support/*.rb'].each { |f| require f }
|
39
43
|
|
data/spec/support/credentials.rb
CHANGED
@@ -21,19 +21,10 @@ module Credentials
|
|
21
21
|
|
22
22
|
def v2_creds
|
23
23
|
{
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|
31
|
-
def v2_creds_with_secret
|
32
|
-
{
|
33
|
-
client_id: ENV['CLIENT_ID'],
|
34
|
-
client_secret: ENV['CLIENT_SECRET'],
|
35
|
-
token: ENV['MASTER_JWT'],
|
36
|
-
domain: ENV['DOMAIN']
|
24
|
+
domain: ENV.fetch( 'DOMAIN', 'DOMAIN' ),
|
25
|
+
client_id: ENV.fetch( 'CLIENT_ID', 'CLIENT_ID' ),
|
26
|
+
client_secret: ENV.fetch( 'CLIENT_SECRET', 'TEST_CLIENT_SECRET' ),
|
27
|
+
token: ENV.fetch( 'MASTER_JWT', 'TEST_MASTER_JWT' )
|
37
28
|
}
|
38
29
|
end
|
39
30
|
end
|
data/spec/support/dummy_class.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
StubResponse = Struct.new(:body, :success?, :code)
|
1
|
+
StubResponse = Struct.new(:body, :success?, :code, :headers)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auth0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Auth0
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rest-client
|
@@ -19,28 +19,56 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 2.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 2.0.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: jwt
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - "~>"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2.2.0
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.2.0
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: zache
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.12.0
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 0.12.0
|
30
58
|
- !ruby/object:Gem::Dependency
|
31
59
|
name: rake
|
32
60
|
requirement: !ruby/object:Gem::Requirement
|
33
61
|
requirements:
|
34
62
|
- - "~>"
|
35
63
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
64
|
+
version: '13.0'
|
37
65
|
type: :development
|
38
66
|
prerelease: false
|
39
67
|
version_requirements: !ruby/object:Gem::Requirement
|
40
68
|
requirements:
|
41
69
|
- - "~>"
|
42
70
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
71
|
+
version: '13.0'
|
44
72
|
- !ruby/object:Gem::Dependency
|
45
73
|
name: fuubar
|
46
74
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,22 +143,22 @@ dependencies:
|
|
115
143
|
name: rspec
|
116
144
|
requirement: !ruby/object:Gem::Requirement
|
117
145
|
requirements:
|
118
|
-
- - ">="
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
version: 3.1.0
|
121
146
|
- - "~>"
|
122
147
|
- !ruby/object:Gem::Version
|
123
148
|
version: '3.1'
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 3.1.0
|
124
152
|
type: :development
|
125
153
|
prerelease: false
|
126
154
|
version_requirements: !ruby/object:Gem::Requirement
|
127
155
|
requirements:
|
128
|
-
- - ">="
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: 3.1.0
|
131
156
|
- - "~>"
|
132
157
|
- !ruby/object:Gem::Version
|
133
158
|
version: '3.1'
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 3.1.0
|
134
162
|
- !ruby/object:Gem::Dependency
|
135
163
|
name: rack-test
|
136
164
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,14 +179,14 @@ dependencies:
|
|
151
179
|
requirements:
|
152
180
|
- - "~>"
|
153
181
|
- !ruby/object:Gem::Version
|
154
|
-
version: 1.
|
182
|
+
version: 2.1.2
|
155
183
|
type: :development
|
156
184
|
prerelease: false
|
157
185
|
version_requirements: !ruby/object:Gem::Requirement
|
158
186
|
requirements:
|
159
187
|
- - "~>"
|
160
188
|
- !ruby/object:Gem::Version
|
161
|
-
version: 1.
|
189
|
+
version: 2.1.2
|
162
190
|
- !ruby/object:Gem::Dependency
|
163
191
|
name: simplecov
|
164
192
|
requirement: !ruby/object:Gem::Requirement
|
@@ -223,26 +251,30 @@ extensions: []
|
|
223
251
|
extra_rdoc_files: []
|
224
252
|
files:
|
225
253
|
- ".bundle/config"
|
254
|
+
- ".circleci/config.yml"
|
255
|
+
- ".env.example"
|
226
256
|
- ".gemrelease"
|
257
|
+
- ".github/CODEOWNERS"
|
227
258
|
- ".github/ISSUE_TEMPLATE.md"
|
228
259
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
260
|
+
- ".github/stale.yml"
|
229
261
|
- ".gitignore"
|
230
262
|
- ".rspec"
|
231
263
|
- ".rubocop.yml"
|
232
264
|
- ".rubocop_todo.yml"
|
233
|
-
- ".travis.yml"
|
234
265
|
- CHANGELOG.md
|
235
266
|
- CODE_OF_CONDUCT.md
|
236
267
|
- DEPLOYMENT.md
|
237
268
|
- Dockerfile
|
238
269
|
- Gemfile
|
270
|
+
- Gemfile.lock
|
239
271
|
- Guardfile
|
240
272
|
- LICENSE
|
241
273
|
- README.md
|
242
274
|
- RUBYGEM.md
|
243
275
|
- Rakefile
|
244
276
|
- auth0.gemspec
|
245
|
-
-
|
277
|
+
- codecov.yml
|
246
278
|
- deploy_documentation.sh
|
247
279
|
- doc_config/templates/default/fulldoc/html/css/full_list.css
|
248
280
|
- doc_config/templates/default/fulldoc/html/css/style.css
|
@@ -318,6 +350,7 @@ files:
|
|
318
350
|
- examples/ruby-on-rails-api/test/secured_ping_controller_test.rb
|
319
351
|
- examples/ruby-on-rails-api/test/test_helper.rb
|
320
352
|
- lib/auth0.rb
|
353
|
+
- lib/auth0/algorithm.rb
|
321
354
|
- lib/auth0/api/authentication_endpoints.rb
|
322
355
|
- lib/auth0/api/v1.rb
|
323
356
|
- lib/auth0/api/v1/clients.rb
|
@@ -326,15 +359,18 @@ files:
|
|
326
359
|
- lib/auth0/api/v1/rules.rb
|
327
360
|
- lib/auth0/api/v1/users.rb
|
328
361
|
- lib/auth0/api/v2.rb
|
362
|
+
- lib/auth0/api/v2/anomaly.rb
|
329
363
|
- lib/auth0/api/v2/blacklists.rb
|
330
364
|
- lib/auth0/api/v2/client_grants.rb
|
331
365
|
- lib/auth0/api/v2/clients.rb
|
332
366
|
- lib/auth0/api/v2/connections.rb
|
333
367
|
- lib/auth0/api/v2/device_credentials.rb
|
334
368
|
- lib/auth0/api/v2/emails.rb
|
369
|
+
- lib/auth0/api/v2/guardian.rb
|
335
370
|
- lib/auth0/api/v2/jobs.rb
|
336
371
|
- lib/auth0/api/v2/logs.rb
|
337
372
|
- lib/auth0/api/v2/resource_servers.rb
|
373
|
+
- lib/auth0/api/v2/roles.rb
|
338
374
|
- lib/auth0/api/v2/rules.rb
|
339
375
|
- lib/auth0/api/v2/stats.rb
|
340
376
|
- lib/auth0/api/v2/tenants.rb
|
@@ -350,6 +386,8 @@ files:
|
|
350
386
|
- lib/auth0/mixins/headers.rb
|
351
387
|
- lib/auth0/mixins/httpproxy.rb
|
352
388
|
- lib/auth0/mixins/initializer.rb
|
389
|
+
- lib/auth0/mixins/permission_struct.rb
|
390
|
+
- lib/auth0/mixins/validation.rb
|
353
391
|
- lib/auth0/version.rb
|
354
392
|
- lib/auth0_client.rb
|
355
393
|
- publish_rubygem.sh
|
@@ -365,6 +403,8 @@ files:
|
|
365
403
|
- spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_wsfed_metadata/should_retrieve_WSFED_metadata.yml
|
366
404
|
- spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/create_test_user.yml
|
367
405
|
- spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/delete_test_user.yml
|
406
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Anomaly/_check_if_ip_is_blocked/should_return_200_response_code.yml
|
407
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Anomaly/_remove_ip_block/should_remove_an_IP_successfully.yml
|
368
408
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Blacklists/_add_token_to_blacklist/should_add_a_token_to_the_blacklist.yml
|
369
409
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Blacklists/_blacklisted_tokens/should_get_the_added_token_from_the_blacklist.yml
|
370
410
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_client_grants/should_return_at_least_1_result.yml
|
@@ -444,6 +484,22 @@ files:
|
|
444
484
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_servers/should_return_the_first_page_of_one_result.yml
|
445
485
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/create_test_server.yml
|
446
486
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/delete_test_server.yml
|
487
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_permissions/should_add_a_Permission_to_the_Role_successfully.yml
|
488
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_users/should_add_a_User_to_the_Role_successfully.yml
|
489
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_delete_role/should_delete_the_Role_successfully.yml
|
490
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role/should_get_the_Role_successfully.yml
|
491
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_exactly_1_Permission.yml
|
492
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_the_added_Permission_from_the_Role_successfully.yml
|
493
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_exactly_1_User.yml
|
494
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_the_added_User_from_the_Role_successfully.yml
|
495
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_roles/should_get_the_Role_successfully.yml
|
496
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_remove_role_permissions/should_remove_a_Permission_from_the_Role_successfully.yml
|
497
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_update_role/should_update_the_Role_successfully.yml
|
498
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_api.yml
|
499
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_role.yml
|
500
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_user.yml
|
501
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_api.yml
|
502
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_user.yml
|
447
503
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_delete_rule/should_delete_the_test_disabled_rule_without_an_error.yml
|
448
504
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_delete_rule/should_delete_the_test_enabled_rule_without_an_error.yml
|
449
505
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/_filters/should_exclude_the_fields_not_specified.yml
|
@@ -470,13 +526,26 @@ files:
|
|
470
526
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/_post_password_change/should_create_a_password_change_ticket.yml
|
471
527
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/create_test_user.yml
|
472
528
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/delete_test_user.yml
|
473
|
-
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/
|
474
|
-
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/
|
475
|
-
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/
|
529
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_add_user_permissions/should_add_a_Permissions_for_a_User_successfully.yml
|
530
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_add_user_roles/should_add_a_Role_to_a_User_successfully.yml
|
531
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user/should_delete_the_User_successfully.yml
|
532
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user/should_delete_the_secondary_User_successfully.yml
|
533
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user_provider/should_attempt_to_delete_the_MFA_provider_for_the_User.yml
|
534
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_enrollments/should_get_Enrollments_for_a_User_successfully.yml
|
535
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_permissions/should_get_exactly_1_Permission_for_a_User_successfully.yml
|
536
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_permissions/should_get_the_correct_Permission_for_a_User_successfully.yml
|
537
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_roles/should_get_Roles_for_a_User_successfully.yml
|
538
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_invalidate_browsers/should_invalidate_MFA_browsers_for_the_User_successfully.yml
|
539
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_link_user_account/should_link_two_Users_successfully.yml
|
540
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_patch_user/should_patch_the_User_successfully.yml
|
541
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_remove_user_permissions/should_remove_a_Permission_from_a_User_successfully.yml
|
542
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_remove_user_roles/should_remove_a_Role_from_a_User_successfully.yml
|
543
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_unlink_user_account/should_unlink_two_Users_successfully.yml
|
476
544
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_exclude_fields_not_indicated.yml
|
477
545
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_exclude_the_fields_indicated.yml
|
478
546
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_include_the_fields_indicated.yml
|
479
547
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/should_retrieve_the_created_user.yml
|
548
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user_logs/should_get_Logs_for_a_User_successfully.yml
|
480
549
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/is_expected_to_find_a_user_with_a_v2_search_engine_query.yml
|
481
550
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/is_expected_to_find_a_user_with_a_v3_search_engine_query.yml
|
482
551
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_exclude_the_indicated_fields_when_paginated.yml
|
@@ -484,8 +553,14 @@ files:
|
|
484
553
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_not_include_other_fields_when_paginated.yml
|
485
554
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_return_the_correct_number_of_results_when_paginated.yml
|
486
555
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/should_have_at_least_one_user.yml
|
556
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_secondary_test_user.yml
|
557
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_api.yml
|
558
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_role.yml
|
487
559
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_user.yml
|
560
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/delete_test_api.yml
|
561
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/delete_test_role.yml
|
488
562
|
- spec/integration/lib/auth0/api/api_authentication_spec.rb
|
563
|
+
- spec/integration/lib/auth0/api/v2/api_anomaly_spec.rb
|
489
564
|
- spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
|
490
565
|
- spec/integration/lib/auth0/api/v2/api_client_grants_spec.rb
|
491
566
|
- spec/integration/lib/auth0/api/v2/api_clients_spec.rb
|
@@ -495,6 +570,7 @@ files:
|
|
495
570
|
- spec/integration/lib/auth0/api/v2/api_jobs_spec.rb
|
496
571
|
- spec/integration/lib/auth0/api/v2/api_logs_spec.rb
|
497
572
|
- spec/integration/lib/auth0/api/v2/api_resource_servers_spec.rb
|
573
|
+
- spec/integration/lib/auth0/api/v2/api_roles_spec.rb
|
498
574
|
- spec/integration/lib/auth0/api/v2/api_rules_spec.rb
|
499
575
|
- spec/integration/lib/auth0/api/v2/api_stats_spec.rb
|
500
576
|
- spec/integration/lib/auth0/api/v2/api_tenants_spec.rb
|
@@ -503,15 +579,18 @@ files:
|
|
503
579
|
- spec/integration/lib/auth0/api/v2/api_users_spec.rb
|
504
580
|
- spec/integration/lib/auth0/auth0_client_spec.rb
|
505
581
|
- spec/lib/auth0/api/authentication_endpoints_spec.rb
|
582
|
+
- spec/lib/auth0/api/v2/anomaly_spec.rb
|
506
583
|
- spec/lib/auth0/api/v2/blacklists_spec.rb
|
507
584
|
- spec/lib/auth0/api/v2/client_grants_spec.rb
|
508
585
|
- spec/lib/auth0/api/v2/clients_spec.rb
|
509
586
|
- spec/lib/auth0/api/v2/connections_spec.rb
|
510
587
|
- spec/lib/auth0/api/v2/device_credentials_spec.rb
|
511
588
|
- spec/lib/auth0/api/v2/emails_spec.rb
|
589
|
+
- spec/lib/auth0/api/v2/guardian_spec.rb
|
512
590
|
- spec/lib/auth0/api/v2/jobs_spec.rb
|
513
591
|
- spec/lib/auth0/api/v2/logs_spec.rb
|
514
592
|
- spec/lib/auth0/api/v2/resource_servers_spec.rb
|
593
|
+
- spec/lib/auth0/api/v2/roles_spec.rb
|
515
594
|
- spec/lib/auth0/api/v2/rules_spec.rb
|
516
595
|
- spec/lib/auth0/api/v2/stats_spec.rb
|
517
596
|
- spec/lib/auth0/api/v2/tenants_spec.rb
|
@@ -522,6 +601,7 @@ files:
|
|
522
601
|
- spec/lib/auth0/client_spec.rb
|
523
602
|
- spec/lib/auth0/mixins/httpproxy_spec.rb
|
524
603
|
- spec/lib/auth0/mixins/initializer_spec.rb
|
604
|
+
- spec/lib/auth0/mixins/validation_spec.rb
|
525
605
|
- spec/spec_helper.rb
|
526
606
|
- spec/support/credentials.rb
|
527
607
|
- spec/support/dummy_class.rb
|
@@ -548,7 +628,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
548
628
|
- !ruby/object:Gem::Version
|
549
629
|
version: '0'
|
550
630
|
requirements: []
|
551
|
-
rubygems_version: 3.
|
631
|
+
rubygems_version: 3.1.2
|
552
632
|
signing_key:
|
553
633
|
specification_version: 4
|
554
634
|
summary: Auth0 API Client
|
@@ -565,6 +645,8 @@ test_files:
|
|
565
645
|
- spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/_wsfed_metadata/should_retrieve_WSFED_metadata.yml
|
566
646
|
- spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/create_test_user.yml
|
567
647
|
- spec/fixtures/vcr_cassettes/Auth0_Api_AuthenticationEndpoints/delete_test_user.yml
|
648
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Anomaly/_check_if_ip_is_blocked/should_return_200_response_code.yml
|
649
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Anomaly/_remove_ip_block/should_remove_an_IP_successfully.yml
|
568
650
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Blacklists/_add_token_to_blacklist/should_add_a_token_to_the_blacklist.yml
|
569
651
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Blacklists/_blacklisted_tokens/should_get_the_added_token_from_the_blacklist.yml
|
570
652
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_ClientGrants/_client_grants/should_return_at_least_1_result.yml
|
@@ -644,6 +726,22 @@ test_files:
|
|
644
726
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_servers/should_return_the_first_page_of_one_result.yml
|
645
727
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/create_test_server.yml
|
646
728
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/delete_test_server.yml
|
729
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_permissions/should_add_a_Permission_to_the_Role_successfully.yml
|
730
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_users/should_add_a_User_to_the_Role_successfully.yml
|
731
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_delete_role/should_delete_the_Role_successfully.yml
|
732
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role/should_get_the_Role_successfully.yml
|
733
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_exactly_1_Permission.yml
|
734
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_the_added_Permission_from_the_Role_successfully.yml
|
735
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_exactly_1_User.yml
|
736
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_the_added_User_from_the_Role_successfully.yml
|
737
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_roles/should_get_the_Role_successfully.yml
|
738
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_remove_role_permissions/should_remove_a_Permission_from_the_Role_successfully.yml
|
739
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_update_role/should_update_the_Role_successfully.yml
|
740
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_api.yml
|
741
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_role.yml
|
742
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_user.yml
|
743
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_api.yml
|
744
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_user.yml
|
647
745
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_delete_rule/should_delete_the_test_disabled_rule_without_an_error.yml
|
648
746
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_delete_rule/should_delete_the_test_enabled_rule_without_an_error.yml
|
649
747
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Rules/_rule/_filters/should_exclude_the_fields_not_specified.yml
|
@@ -670,13 +768,26 @@ test_files:
|
|
670
768
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/_post_password_change/should_create_a_password_change_ticket.yml
|
671
769
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/create_test_user.yml
|
672
770
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Tickets/delete_test_user.yml
|
673
|
-
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/
|
674
|
-
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/
|
675
|
-
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/
|
771
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_add_user_permissions/should_add_a_Permissions_for_a_User_successfully.yml
|
772
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_add_user_roles/should_add_a_Role_to_a_User_successfully.yml
|
773
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user/should_delete_the_User_successfully.yml
|
774
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user/should_delete_the_secondary_User_successfully.yml
|
775
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_delete_user_provider/should_attempt_to_delete_the_MFA_provider_for_the_User.yml
|
776
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_enrollments/should_get_Enrollments_for_a_User_successfully.yml
|
777
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_permissions/should_get_exactly_1_Permission_for_a_User_successfully.yml
|
778
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_permissions/should_get_the_correct_Permission_for_a_User_successfully.yml
|
779
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_get_user_roles/should_get_Roles_for_a_User_successfully.yml
|
780
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_invalidate_browsers/should_invalidate_MFA_browsers_for_the_User_successfully.yml
|
781
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_link_user_account/should_link_two_Users_successfully.yml
|
782
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_patch_user/should_patch_the_User_successfully.yml
|
783
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_remove_user_permissions/should_remove_a_Permission_from_a_User_successfully.yml
|
784
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_remove_user_roles/should_remove_a_Role_from_a_User_successfully.yml
|
785
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_unlink_user_account/should_unlink_two_Users_successfully.yml
|
676
786
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_exclude_fields_not_indicated.yml
|
677
787
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_exclude_the_fields_indicated.yml
|
678
788
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/_filters/should_include_the_fields_indicated.yml
|
679
789
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user/should_retrieve_the_created_user.yml
|
790
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_user_logs/should_get_Logs_for_a_User_successfully.yml
|
680
791
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/is_expected_to_find_a_user_with_a_v2_search_engine_query.yml
|
681
792
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/is_expected_to_find_a_user_with_a_v3_search_engine_query.yml
|
682
793
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_exclude_the_indicated_fields_when_paginated.yml
|
@@ -684,8 +795,14 @@ test_files:
|
|
684
795
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_not_include_other_fields_when_paginated.yml
|
685
796
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/_filters/should_return_the_correct_number_of_results_when_paginated.yml
|
686
797
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/_users/should_have_at_least_one_user.yml
|
798
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_secondary_test_user.yml
|
799
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_api.yml
|
800
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_role.yml
|
687
801
|
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/create_test_user.yml
|
802
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/delete_test_api.yml
|
803
|
+
- spec/fixtures/vcr_cassettes/Auth0_Api_V2_Users/delete_test_role.yml
|
688
804
|
- spec/integration/lib/auth0/api/api_authentication_spec.rb
|
805
|
+
- spec/integration/lib/auth0/api/v2/api_anomaly_spec.rb
|
689
806
|
- spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
|
690
807
|
- spec/integration/lib/auth0/api/v2/api_client_grants_spec.rb
|
691
808
|
- spec/integration/lib/auth0/api/v2/api_clients_spec.rb
|
@@ -695,6 +812,7 @@ test_files:
|
|
695
812
|
- spec/integration/lib/auth0/api/v2/api_jobs_spec.rb
|
696
813
|
- spec/integration/lib/auth0/api/v2/api_logs_spec.rb
|
697
814
|
- spec/integration/lib/auth0/api/v2/api_resource_servers_spec.rb
|
815
|
+
- spec/integration/lib/auth0/api/v2/api_roles_spec.rb
|
698
816
|
- spec/integration/lib/auth0/api/v2/api_rules_spec.rb
|
699
817
|
- spec/integration/lib/auth0/api/v2/api_stats_spec.rb
|
700
818
|
- spec/integration/lib/auth0/api/v2/api_tenants_spec.rb
|
@@ -703,15 +821,18 @@ test_files:
|
|
703
821
|
- spec/integration/lib/auth0/api/v2/api_users_spec.rb
|
704
822
|
- spec/integration/lib/auth0/auth0_client_spec.rb
|
705
823
|
- spec/lib/auth0/api/authentication_endpoints_spec.rb
|
824
|
+
- spec/lib/auth0/api/v2/anomaly_spec.rb
|
706
825
|
- spec/lib/auth0/api/v2/blacklists_spec.rb
|
707
826
|
- spec/lib/auth0/api/v2/client_grants_spec.rb
|
708
827
|
- spec/lib/auth0/api/v2/clients_spec.rb
|
709
828
|
- spec/lib/auth0/api/v2/connections_spec.rb
|
710
829
|
- spec/lib/auth0/api/v2/device_credentials_spec.rb
|
711
830
|
- spec/lib/auth0/api/v2/emails_spec.rb
|
831
|
+
- spec/lib/auth0/api/v2/guardian_spec.rb
|
712
832
|
- spec/lib/auth0/api/v2/jobs_spec.rb
|
713
833
|
- spec/lib/auth0/api/v2/logs_spec.rb
|
714
834
|
- spec/lib/auth0/api/v2/resource_servers_spec.rb
|
835
|
+
- spec/lib/auth0/api/v2/roles_spec.rb
|
715
836
|
- spec/lib/auth0/api/v2/rules_spec.rb
|
716
837
|
- spec/lib/auth0/api/v2/stats_spec.rb
|
717
838
|
- spec/lib/auth0/api/v2/tenants_spec.rb
|
@@ -722,6 +843,7 @@ test_files:
|
|
722
843
|
- spec/lib/auth0/client_spec.rb
|
723
844
|
- spec/lib/auth0/mixins/httpproxy_spec.rb
|
724
845
|
- spec/lib/auth0/mixins/initializer_spec.rb
|
846
|
+
- spec/lib/auth0/mixins/validation_spec.rb
|
725
847
|
- spec/spec_helper.rb
|
726
848
|
- spec/support/credentials.rb
|
727
849
|
- spec/support/dummy_class.rb
|