authentik-api 2026.2.2 → 2026.5.0.rc1
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/README.md +3 -3
- data/README_API.md +67 -15
- data/lib/authentik/api/api/admin_api.rb +5 -13
- data/lib/authentik/api/api/authenticators_api.rb +60 -60
- data/lib/authentik/api/api/core_api.rb +188 -63
- data/lib/authentik/api/api/crypto_api.rb +9 -13
- data/lib/authentik/api/api/endpoints_api.rb +1600 -679
- data/lib/authentik/api/api/enterprise_api.rb +5 -5
- data/lib/authentik/api/api/events_api.rb +141 -58
- data/lib/authentik/api/api/flows_api.rb +24 -106
- data/lib/authentik/api/api/lifecycle_api.rb +27 -18
- data/lib/authentik/api/api/managed_api.rb +79 -6
- data/lib/authentik/api/api/oauth2_api.rb +9 -9
- data/lib/authentik/api/api/outposts_api.rb +22 -22
- data/lib/authentik/api/api/policies_api.rb +57 -58
- data/lib/authentik/api/api/propertymappings_api.rb +79 -79
- data/lib/authentik/api/api/providers_api.rb +134 -196
- data/lib/authentik/api/api/rac_api.rb +10 -10
- data/lib/authentik/api/api/rbac_api.rb +15 -20
- data/lib/authentik/api/api/reports_api.rb +2 -2
- data/lib/authentik/api/api/schema_api.rb +4 -12
- data/lib/authentik/api/api/sources_api.rb +158 -219
- data/lib/authentik/api/api/ssf_api.rb +64 -7
- data/lib/authentik/api/api/stages_api.rb +723 -244
- data/lib/authentik/api/api/tasks_api.rb +11 -19
- data/lib/authentik/api/api/tenants_api.rb +10 -10
- data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
- data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
- data/lib/authentik/api/models/app_enum.rb +3 -2
- data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
- data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
- data/lib/authentik/api/models/application.rb +14 -4
- data/lib/authentik/api/models/application_request.rb +14 -4
- data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
- data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
- data/lib/authentik/api/models/authentication_enum.rb +2 -1
- data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
- data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
- data/lib/authentik/api/models/brand.rb +11 -1
- data/lib/authentik/api/models/brand_request.rb +11 -1
- data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
- data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
- data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
- data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/consent_stage.rb +1 -1
- data/lib/authentik/api/models/consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/country_code_enum.rb +3 -3
- data/lib/authentik/api/models/current_brand.rb +10 -1
- data/lib/authentik/api/models/current_brand_flags.rb +31 -27
- data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
- data/lib/authentik/api/models/device_user_binding.rb +3 -45
- data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
- data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/event_stats.rb +187 -0
- data/lib/authentik/api/models/event_volume.rb +1 -1
- data/lib/authentik/api/models/events_requested_enum.rb +7 -1
- data/lib/authentik/api/models/force_binding_enum.rb +34 -0
- data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
- data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
- data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
- data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
- data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
- data/lib/authentik/api/models/grant_types_enum.rb +39 -0
- data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
- data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
- data/lib/authentik/api/models/key_type_enum.rb +3 -3
- data/lib/authentik/api/models/lang_enum.rb +131 -0
- data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
- data/lib/authentik/api/models/logout_url.rb +209 -0
- data/lib/authentik/api/models/model_enum.rb +3 -1
- data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
- data/lib/authentik/api/models/notification_rule.rb +1 -15
- data/lib/authentik/api/models/notification_transport.rb +13 -2
- data/lib/authentik/api/models/notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/operating_system.rb +0 -17
- data/lib/authentik/api/models/operating_system_request.rb +2 -9
- data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
- data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
- data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
- data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
- data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
- data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
- data/lib/authentik/api/models/patched_application_request.rb +14 -4
- data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/patched_brand_request.rb +11 -1
- data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
- data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
- data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/policy_binding.rb +3 -45
- data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
- data/lib/authentik/api/models/redirect_uri.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
- data/lib/authentik/api/models/related_rule.rb +250 -0
- data/lib/authentik/api/models/saml_metadata.rb +0 -2
- data/lib/authentik/api/models/saml_provider.rb +98 -8
- data/lib/authentik/api/models/saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/saml_source.rb +11 -1
- data/lib/authentik/api/models/saml_source_request.rb +11 -1
- data/lib/authentik/api/models/ssf_provider.rb +41 -4
- data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/ssf_stream.rb +10 -1
- data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
- data/lib/authentik/api/models/task.rb +1 -1
- data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
- data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/usage_enum.rb +33 -0
- data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
- data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
- data/lib/authentik/api/models/vendor_enum.rb +2 -1
- data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +2 -2
- data/spec/api/core_api_spec.rb +27 -3
- data/spec/api/crypto_api_spec.rb +1 -1
- data/spec/api/endpoints_api_spec.rb +167 -0
- data/spec/api/events_api_spec.rb +33 -7
- data/spec/api/flows_api_spec.rb +4 -16
- data/spec/api/lifecycle_api_spec.rb +6 -3
- data/spec/api/managed_api_spec.rb +13 -0
- data/spec/api/policies_api_spec.rb +2 -1
- data/spec/api/providers_api_spec.rb +21 -19
- data/spec/api/schema_api_spec.rb +2 -2
- data/spec/api/sources_api_spec.rb +17 -16
- data/spec/api/ssf_api_spec.rb +12 -1
- data/spec/api/stages_api_spec.rb +117 -18
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/account_lockdown_stage_spec.rb +96 -0
- data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
- data/spec/models/application_request_spec.rb +6 -0
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/authenticator_validate_stage_spec.rb +30 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
- data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
- data/spec/models/brand_request_spec.rb +6 -0
- data/spec/models/brand_spec.rb +6 -0
- data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
- data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
- data/spec/models/current_brand_flags_spec.rb +2 -2
- data/spec/models/current_brand_spec.rb +6 -0
- data/spec/models/event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/event_matcher_policy_spec.rb +6 -0
- data/spec/models/event_stats_spec.rb +36 -0
- data/spec/models/force_binding_enum_spec.rb +24 -0
- data/spec/models/format_enum_spec.rb +24 -0
- data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
- data/spec/models/google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/google_chrome_connector_spec.rb +78 -0
- data/spec/models/grant_types_enum_spec.rb +24 -0
- data/spec/models/group_ldap_source_connection_spec.rb +6 -0
- data/spec/models/invitation_send_email_request_spec.rb +48 -0
- data/spec/models/lang_enum_spec.rb +24 -0
- data/spec/models/lifecycle_iteration_spec.rb +2 -14
- data/spec/models/logout_url_spec.rb +60 -0
- data/spec/models/native_logout_challenge_spec.rb +13 -7
- data/spec/models/notification_transport_request_spec.rb +6 -0
- data/spec/models/notification_transport_spec.rb +6 -0
- data/spec/models/o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/o_auth2_provider_spec.rb +6 -0
- data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
- data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
- data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
- data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
- data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/patched_application_request_spec.rb +6 -0
- data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/patched_brand_request_spec.rb +6 -0
- data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/patched_notification_transport_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/patched_saml_provider_request_spec.rb +7 -1
- data/spec/models/patched_saml_source_request_spec.rb +6 -0
- data/spec/models/patched_settings_request_flags_spec.rb +2 -2
- data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
- data/spec/models/redirect_uri_request_spec.rb +6 -0
- data/spec/models/redirect_uri_spec.rb +6 -0
- data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
- data/spec/models/related_rule_spec.rb +54 -0
- data/spec/models/saml_provider_request_spec.rb +7 -1
- data/spec/models/saml_provider_spec.rb +25 -1
- data/spec/models/saml_source_request_spec.rb +6 -0
- data/spec/models/saml_source_spec.rb +6 -0
- data/spec/models/ssf_provider_request_spec.rb +6 -0
- data/spec/models/ssf_provider_spec.rb +12 -0
- data/spec/models/ssf_stream_spec.rb +6 -0
- data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
- data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
- data/spec/models/transport_mode_enum_spec.rb +24 -0
- data/spec/models/usage_enum_spec.rb +24 -0
- data/spec/models/user_account_lockdown_request_spec.rb +30 -0
- data/spec/models/user_ldap_source_connection_spec.rb +6 -0
- data/spec/models/user_password_hash_set_request_spec.rb +30 -0
- data/spec/models/web_authn_hint_enum_spec.rb +24 -0
- data/spec/zeitwerk_spec.rb +34 -0
- metadata +113 -32
- data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
|
@@ -101,7 +101,7 @@ module Authentik::Api
|
|
|
101
101
|
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_destroy"
|
|
102
102
|
end
|
|
103
103
|
# resource path
|
|
104
|
-
local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{
|
|
104
|
+
local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
105
105
|
|
|
106
106
|
# query parameters
|
|
107
107
|
query_params = opts[:query_params] || {}
|
|
@@ -240,7 +240,7 @@ module Authentik::Api
|
|
|
240
240
|
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_partial_update"
|
|
241
241
|
end
|
|
242
242
|
# resource path
|
|
243
|
-
local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{
|
|
243
|
+
local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
244
244
|
|
|
245
245
|
# query parameters
|
|
246
246
|
query_params = opts[:query_params] || {}
|
|
@@ -306,7 +306,7 @@ module Authentik::Api
|
|
|
306
306
|
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_retrieve"
|
|
307
307
|
end
|
|
308
308
|
# resource path
|
|
309
|
-
local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{
|
|
309
|
+
local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
310
310
|
|
|
311
311
|
# query parameters
|
|
312
312
|
query_params = opts[:query_params] || {}
|
|
@@ -373,7 +373,7 @@ module Authentik::Api
|
|
|
373
373
|
fail ArgumentError, "Missing the required parameter 'application_entitlement_request' when calling CoreApi.core_application_entitlements_update"
|
|
374
374
|
end
|
|
375
375
|
# resource path
|
|
376
|
-
local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{
|
|
376
|
+
local_var_path = '/core/application_entitlements/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
377
377
|
|
|
378
378
|
# query parameters
|
|
379
379
|
query_params = opts[:query_params] || {}
|
|
@@ -439,7 +439,7 @@ module Authentik::Api
|
|
|
439
439
|
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling CoreApi.core_application_entitlements_used_by_list"
|
|
440
440
|
end
|
|
441
441
|
# resource path
|
|
442
|
-
local_var_path = '/core/application_entitlements/{pbm_uuid}/used_by/'.sub('{
|
|
442
|
+
local_var_path = '/core/application_entitlements/{pbm_uuid}/used_by/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
443
443
|
|
|
444
444
|
# query parameters
|
|
445
445
|
query_params = opts[:query_params] || {}
|
|
@@ -502,7 +502,7 @@ module Authentik::Api
|
|
|
502
502
|
fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_check_access_retrieve"
|
|
503
503
|
end
|
|
504
504
|
# resource path
|
|
505
|
-
local_var_path = '/core/applications/{slug}/check_access/'.sub('{
|
|
505
|
+
local_var_path = '/core/applications/{slug}/check_access/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
506
506
|
|
|
507
507
|
# query parameters
|
|
508
508
|
query_params = opts[:query_params] || {}
|
|
@@ -630,7 +630,7 @@ module Authentik::Api
|
|
|
630
630
|
fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_destroy"
|
|
631
631
|
end
|
|
632
632
|
# resource path
|
|
633
|
-
local_var_path = '/core/applications/{slug}/'.sub('{
|
|
633
|
+
local_var_path = '/core/applications/{slug}/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
634
634
|
|
|
635
635
|
# query parameters
|
|
636
636
|
query_params = opts[:query_params] || {}
|
|
@@ -787,7 +787,7 @@ module Authentik::Api
|
|
|
787
787
|
fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_partial_update"
|
|
788
788
|
end
|
|
789
789
|
# resource path
|
|
790
|
-
local_var_path = '/core/applications/{slug}/'.sub('{
|
|
790
|
+
local_var_path = '/core/applications/{slug}/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
791
791
|
|
|
792
792
|
# query parameters
|
|
793
793
|
query_params = opts[:query_params] || {}
|
|
@@ -853,7 +853,7 @@ module Authentik::Api
|
|
|
853
853
|
fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_retrieve"
|
|
854
854
|
end
|
|
855
855
|
# resource path
|
|
856
|
-
local_var_path = '/core/applications/{slug}/'.sub('{
|
|
856
|
+
local_var_path = '/core/applications/{slug}/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
857
857
|
|
|
858
858
|
# query parameters
|
|
859
859
|
query_params = opts[:query_params] || {}
|
|
@@ -920,7 +920,7 @@ module Authentik::Api
|
|
|
920
920
|
fail ArgumentError, "Missing the required parameter 'application_request' when calling CoreApi.core_applications_update"
|
|
921
921
|
end
|
|
922
922
|
# resource path
|
|
923
|
-
local_var_path = '/core/applications/{slug}/'.sub('{
|
|
923
|
+
local_var_path = '/core/applications/{slug}/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
924
924
|
|
|
925
925
|
# query parameters
|
|
926
926
|
query_params = opts[:query_params] || {}
|
|
@@ -986,7 +986,7 @@ module Authentik::Api
|
|
|
986
986
|
fail ArgumentError, "Missing the required parameter 'slug' when calling CoreApi.core_applications_used_by_list"
|
|
987
987
|
end
|
|
988
988
|
# resource path
|
|
989
|
-
local_var_path = '/core/applications/{slug}/used_by/'.sub('{
|
|
989
|
+
local_var_path = '/core/applications/{slug}/used_by/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
990
990
|
|
|
991
991
|
# query parameters
|
|
992
992
|
query_params = opts[:query_params] || {}
|
|
@@ -1109,7 +1109,7 @@ module Authentik::Api
|
|
|
1109
1109
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling CoreApi.core_authenticated_sessions_destroy"
|
|
1110
1110
|
end
|
|
1111
1111
|
# resource path
|
|
1112
|
-
local_var_path = '/core/authenticated_sessions/{uuid}/'.sub('{
|
|
1112
|
+
local_var_path = '/core/authenticated_sessions/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1113
1113
|
|
|
1114
1114
|
# query parameters
|
|
1115
1115
|
query_params = opts[:query_params] || {}
|
|
@@ -1246,7 +1246,7 @@ module Authentik::Api
|
|
|
1246
1246
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling CoreApi.core_authenticated_sessions_retrieve"
|
|
1247
1247
|
end
|
|
1248
1248
|
# resource path
|
|
1249
|
-
local_var_path = '/core/authenticated_sessions/{uuid}/'.sub('{
|
|
1249
|
+
local_var_path = '/core/authenticated_sessions/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1250
1250
|
|
|
1251
1251
|
# query parameters
|
|
1252
1252
|
query_params = opts[:query_params] || {}
|
|
@@ -1307,7 +1307,7 @@ module Authentik::Api
|
|
|
1307
1307
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling CoreApi.core_authenticated_sessions_used_by_list"
|
|
1308
1308
|
end
|
|
1309
1309
|
# resource path
|
|
1310
|
-
local_var_path = '/core/authenticated_sessions/{uuid}/used_by/'.sub('{
|
|
1310
|
+
local_var_path = '/core/authenticated_sessions/{uuid}/used_by/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1311
1311
|
|
|
1312
1312
|
# query parameters
|
|
1313
1313
|
query_params = opts[:query_params] || {}
|
|
@@ -1489,7 +1489,7 @@ module Authentik::Api
|
|
|
1489
1489
|
fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_destroy"
|
|
1490
1490
|
end
|
|
1491
1491
|
# resource path
|
|
1492
|
-
local_var_path = '/core/brands/{brand_uuid}/'.sub('{
|
|
1492
|
+
local_var_path = '/core/brands/{brand_uuid}/'.sub('{brand_uuid}', CGI.escape(brand_uuid.to_s))
|
|
1493
1493
|
|
|
1494
1494
|
# query parameters
|
|
1495
1495
|
query_params = opts[:query_params] || {}
|
|
@@ -1541,6 +1541,7 @@ module Authentik::Api
|
|
|
1541
1541
|
# @option opts [String] :flow_authentication
|
|
1542
1542
|
# @option opts [String] :flow_device_code
|
|
1543
1543
|
# @option opts [String] :flow_invalidation
|
|
1544
|
+
# @option opts [String] :flow_lockdown
|
|
1544
1545
|
# @option opts [String] :flow_recovery
|
|
1545
1546
|
# @option opts [String] :flow_unenrollment
|
|
1546
1547
|
# @option opts [String] :flow_user_settings
|
|
@@ -1568,6 +1569,7 @@ module Authentik::Api
|
|
|
1568
1569
|
# @option opts [String] :flow_authentication
|
|
1569
1570
|
# @option opts [String] :flow_device_code
|
|
1570
1571
|
# @option opts [String] :flow_invalidation
|
|
1572
|
+
# @option opts [String] :flow_lockdown
|
|
1571
1573
|
# @option opts [String] :flow_recovery
|
|
1572
1574
|
# @option opts [String] :flow_unenrollment
|
|
1573
1575
|
# @option opts [String] :flow_user_settings
|
|
@@ -1597,6 +1599,7 @@ module Authentik::Api
|
|
|
1597
1599
|
query_params[:'flow_authentication'] = opts[:'flow_authentication'] if !opts[:'flow_authentication'].nil?
|
|
1598
1600
|
query_params[:'flow_device_code'] = opts[:'flow_device_code'] if !opts[:'flow_device_code'].nil?
|
|
1599
1601
|
query_params[:'flow_invalidation'] = opts[:'flow_invalidation'] if !opts[:'flow_invalidation'].nil?
|
|
1602
|
+
query_params[:'flow_lockdown'] = opts[:'flow_lockdown'] if !opts[:'flow_lockdown'].nil?
|
|
1600
1603
|
query_params[:'flow_recovery'] = opts[:'flow_recovery'] if !opts[:'flow_recovery'].nil?
|
|
1601
1604
|
query_params[:'flow_unenrollment'] = opts[:'flow_unenrollment'] if !opts[:'flow_unenrollment'].nil?
|
|
1602
1605
|
query_params[:'flow_user_settings'] = opts[:'flow_user_settings'] if !opts[:'flow_user_settings'].nil?
|
|
@@ -1664,7 +1667,7 @@ module Authentik::Api
|
|
|
1664
1667
|
fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_partial_update"
|
|
1665
1668
|
end
|
|
1666
1669
|
# resource path
|
|
1667
|
-
local_var_path = '/core/brands/{brand_uuid}/'.sub('{
|
|
1670
|
+
local_var_path = '/core/brands/{brand_uuid}/'.sub('{brand_uuid}', CGI.escape(brand_uuid.to_s))
|
|
1668
1671
|
|
|
1669
1672
|
# query parameters
|
|
1670
1673
|
query_params = opts[:query_params] || {}
|
|
@@ -1730,7 +1733,7 @@ module Authentik::Api
|
|
|
1730
1733
|
fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_retrieve"
|
|
1731
1734
|
end
|
|
1732
1735
|
# resource path
|
|
1733
|
-
local_var_path = '/core/brands/{brand_uuid}/'.sub('{
|
|
1736
|
+
local_var_path = '/core/brands/{brand_uuid}/'.sub('{brand_uuid}', CGI.escape(brand_uuid.to_s))
|
|
1734
1737
|
|
|
1735
1738
|
# query parameters
|
|
1736
1739
|
query_params = opts[:query_params] || {}
|
|
@@ -1797,7 +1800,7 @@ module Authentik::Api
|
|
|
1797
1800
|
fail ArgumentError, "Missing the required parameter 'brand_request' when calling CoreApi.core_brands_update"
|
|
1798
1801
|
end
|
|
1799
1802
|
# resource path
|
|
1800
|
-
local_var_path = '/core/brands/{brand_uuid}/'.sub('{
|
|
1803
|
+
local_var_path = '/core/brands/{brand_uuid}/'.sub('{brand_uuid}', CGI.escape(brand_uuid.to_s))
|
|
1801
1804
|
|
|
1802
1805
|
# query parameters
|
|
1803
1806
|
query_params = opts[:query_params] || {}
|
|
@@ -1863,7 +1866,7 @@ module Authentik::Api
|
|
|
1863
1866
|
fail ArgumentError, "Missing the required parameter 'brand_uuid' when calling CoreApi.core_brands_used_by_list"
|
|
1864
1867
|
end
|
|
1865
1868
|
# resource path
|
|
1866
|
-
local_var_path = '/core/brands/{brand_uuid}/used_by/'.sub('{
|
|
1869
|
+
local_var_path = '/core/brands/{brand_uuid}/used_by/'.sub('{brand_uuid}', CGI.escape(brand_uuid.to_s))
|
|
1867
1870
|
|
|
1868
1871
|
# query parameters
|
|
1869
1872
|
query_params = opts[:query_params] || {}
|
|
@@ -1930,7 +1933,7 @@ module Authentik::Api
|
|
|
1930
1933
|
fail ArgumentError, "Missing the required parameter 'user_account_request' when calling CoreApi.core_groups_add_user_create"
|
|
1931
1934
|
end
|
|
1932
1935
|
# resource path
|
|
1933
|
-
local_var_path = '/core/groups/{group_uuid}/add_user/'.sub('{
|
|
1936
|
+
local_var_path = '/core/groups/{group_uuid}/add_user/'.sub('{group_uuid}', CGI.escape(group_uuid.to_s))
|
|
1934
1937
|
|
|
1935
1938
|
# query parameters
|
|
1936
1939
|
query_params = opts[:query_params] || {}
|
|
@@ -2062,7 +2065,7 @@ module Authentik::Api
|
|
|
2062
2065
|
fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_destroy"
|
|
2063
2066
|
end
|
|
2064
2067
|
# resource path
|
|
2065
|
-
local_var_path = '/core/groups/{group_uuid}/'.sub('{
|
|
2068
|
+
local_var_path = '/core/groups/{group_uuid}/'.sub('{group_uuid}', CGI.escape(group_uuid.to_s))
|
|
2066
2069
|
|
|
2067
2070
|
# query parameters
|
|
2068
2071
|
query_params = opts[:query_params] || {}
|
|
@@ -2219,7 +2222,7 @@ module Authentik::Api
|
|
|
2219
2222
|
fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_partial_update"
|
|
2220
2223
|
end
|
|
2221
2224
|
# resource path
|
|
2222
|
-
local_var_path = '/core/groups/{group_uuid}/'.sub('{
|
|
2225
|
+
local_var_path = '/core/groups/{group_uuid}/'.sub('{group_uuid}', CGI.escape(group_uuid.to_s))
|
|
2223
2226
|
|
|
2224
2227
|
# query parameters
|
|
2225
2228
|
query_params = opts[:query_params] || {}
|
|
@@ -2291,7 +2294,7 @@ module Authentik::Api
|
|
|
2291
2294
|
fail ArgumentError, "Missing the required parameter 'user_account_request' when calling CoreApi.core_groups_remove_user_create"
|
|
2292
2295
|
end
|
|
2293
2296
|
# resource path
|
|
2294
|
-
local_var_path = '/core/groups/{group_uuid}/remove_user/'.sub('{
|
|
2297
|
+
local_var_path = '/core/groups/{group_uuid}/remove_user/'.sub('{group_uuid}', CGI.escape(group_uuid.to_s))
|
|
2295
2298
|
|
|
2296
2299
|
# query parameters
|
|
2297
2300
|
query_params = opts[:query_params] || {}
|
|
@@ -2365,7 +2368,7 @@ module Authentik::Api
|
|
|
2365
2368
|
fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_retrieve"
|
|
2366
2369
|
end
|
|
2367
2370
|
# resource path
|
|
2368
|
-
local_var_path = '/core/groups/{group_uuid}/'.sub('{
|
|
2371
|
+
local_var_path = '/core/groups/{group_uuid}/'.sub('{group_uuid}', CGI.escape(group_uuid.to_s))
|
|
2369
2372
|
|
|
2370
2373
|
# query parameters
|
|
2371
2374
|
query_params = opts[:query_params] || {}
|
|
@@ -2436,7 +2439,7 @@ module Authentik::Api
|
|
|
2436
2439
|
fail ArgumentError, "Missing the required parameter 'group_request' when calling CoreApi.core_groups_update"
|
|
2437
2440
|
end
|
|
2438
2441
|
# resource path
|
|
2439
|
-
local_var_path = '/core/groups/{group_uuid}/'.sub('{
|
|
2442
|
+
local_var_path = '/core/groups/{group_uuid}/'.sub('{group_uuid}', CGI.escape(group_uuid.to_s))
|
|
2440
2443
|
|
|
2441
2444
|
# query parameters
|
|
2442
2445
|
query_params = opts[:query_params] || {}
|
|
@@ -2502,7 +2505,7 @@ module Authentik::Api
|
|
|
2502
2505
|
fail ArgumentError, "Missing the required parameter 'group_uuid' when calling CoreApi.core_groups_used_by_list"
|
|
2503
2506
|
end
|
|
2504
2507
|
# resource path
|
|
2505
|
-
local_var_path = '/core/groups/{group_uuid}/used_by/'.sub('{
|
|
2508
|
+
local_var_path = '/core/groups/{group_uuid}/used_by/'.sub('{group_uuid}', CGI.escape(group_uuid.to_s))
|
|
2506
2509
|
|
|
2507
2510
|
# query parameters
|
|
2508
2511
|
query_params = opts[:query_params] || {}
|
|
@@ -2629,7 +2632,7 @@ module Authentik::Api
|
|
|
2629
2632
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_destroy"
|
|
2630
2633
|
end
|
|
2631
2634
|
# resource path
|
|
2632
|
-
local_var_path = '/core/tokens/{identifier}/'.sub('{
|
|
2635
|
+
local_var_path = '/core/tokens/{identifier}/'.sub('{identifier}', CGI.escape(identifier.to_s))
|
|
2633
2636
|
|
|
2634
2637
|
# query parameters
|
|
2635
2638
|
query_params = opts[:query_params] || {}
|
|
@@ -2674,7 +2677,7 @@ module Authentik::Api
|
|
|
2674
2677
|
# @option opts [Time] :expires
|
|
2675
2678
|
# @option opts [Boolean] :expiring
|
|
2676
2679
|
# @option opts [String] :identifier
|
|
2677
|
-
# @option opts [
|
|
2680
|
+
# @option opts [IntentEnum] :intent
|
|
2678
2681
|
# @option opts [String] :managed
|
|
2679
2682
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
2680
2683
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -2693,7 +2696,7 @@ module Authentik::Api
|
|
|
2693
2696
|
# @option opts [Time] :expires
|
|
2694
2697
|
# @option opts [Boolean] :expiring
|
|
2695
2698
|
# @option opts [String] :identifier
|
|
2696
|
-
# @option opts [
|
|
2699
|
+
# @option opts [IntentEnum] :intent
|
|
2697
2700
|
# @option opts [String] :managed
|
|
2698
2701
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
2699
2702
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -2705,10 +2708,6 @@ module Authentik::Api
|
|
|
2705
2708
|
if @api_client.config.debugging
|
|
2706
2709
|
@api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_list ...'
|
|
2707
2710
|
end
|
|
2708
|
-
allowable_values = ["api", "app_password", "recovery", "verification"]
|
|
2709
|
-
if @api_client.config.client_side_validation && opts[:'intent'] && !allowable_values.include?(opts[:'intent'])
|
|
2710
|
-
fail ArgumentError, "invalid value for \"intent\", must be one of #{allowable_values}"
|
|
2711
|
-
end
|
|
2712
2711
|
# resource path
|
|
2713
2712
|
local_var_path = '/core/tokens/'
|
|
2714
2713
|
|
|
@@ -2784,7 +2783,7 @@ module Authentik::Api
|
|
|
2784
2783
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_partial_update"
|
|
2785
2784
|
end
|
|
2786
2785
|
# resource path
|
|
2787
|
-
local_var_path = '/core/tokens/{identifier}/'.sub('{
|
|
2786
|
+
local_var_path = '/core/tokens/{identifier}/'.sub('{identifier}', CGI.escape(identifier.to_s))
|
|
2788
2787
|
|
|
2789
2788
|
# query parameters
|
|
2790
2789
|
query_params = opts[:query_params] || {}
|
|
@@ -2850,7 +2849,7 @@ module Authentik::Api
|
|
|
2850
2849
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_retrieve"
|
|
2851
2850
|
end
|
|
2852
2851
|
# resource path
|
|
2853
|
-
local_var_path = '/core/tokens/{identifier}/'.sub('{
|
|
2852
|
+
local_var_path = '/core/tokens/{identifier}/'.sub('{identifier}', CGI.escape(identifier.to_s))
|
|
2854
2853
|
|
|
2855
2854
|
# query parameters
|
|
2856
2855
|
query_params = opts[:query_params] || {}
|
|
@@ -2917,7 +2916,7 @@ module Authentik::Api
|
|
|
2917
2916
|
fail ArgumentError, "Missing the required parameter 'token_set_key_request' when calling CoreApi.core_tokens_set_key_create"
|
|
2918
2917
|
end
|
|
2919
2918
|
# resource path
|
|
2920
|
-
local_var_path = '/core/tokens/{identifier}/set_key/'.sub('{
|
|
2919
|
+
local_var_path = '/core/tokens/{identifier}/set_key/'.sub('{identifier}', CGI.escape(identifier.to_s))
|
|
2921
2920
|
|
|
2922
2921
|
# query parameters
|
|
2923
2922
|
query_params = opts[:query_params] || {}
|
|
@@ -2989,7 +2988,7 @@ module Authentik::Api
|
|
|
2989
2988
|
fail ArgumentError, "Missing the required parameter 'token_request' when calling CoreApi.core_tokens_update"
|
|
2990
2989
|
end
|
|
2991
2990
|
# resource path
|
|
2992
|
-
local_var_path = '/core/tokens/{identifier}/'.sub('{
|
|
2991
|
+
local_var_path = '/core/tokens/{identifier}/'.sub('{identifier}', CGI.escape(identifier.to_s))
|
|
2993
2992
|
|
|
2994
2993
|
# query parameters
|
|
2995
2994
|
query_params = opts[:query_params] || {}
|
|
@@ -3055,7 +3054,7 @@ module Authentik::Api
|
|
|
3055
3054
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_used_by_list"
|
|
3056
3055
|
end
|
|
3057
3056
|
# resource path
|
|
3058
|
-
local_var_path = '/core/tokens/{identifier}/used_by/'.sub('{
|
|
3057
|
+
local_var_path = '/core/tokens/{identifier}/used_by/'.sub('{identifier}', CGI.escape(identifier.to_s))
|
|
3059
3058
|
|
|
3060
3059
|
# query parameters
|
|
3061
3060
|
query_params = opts[:query_params] || {}
|
|
@@ -3116,7 +3115,7 @@ module Authentik::Api
|
|
|
3116
3115
|
fail ArgumentError, "Missing the required parameter 'identifier' when calling CoreApi.core_tokens_view_key_retrieve"
|
|
3117
3116
|
end
|
|
3118
3117
|
# resource path
|
|
3119
|
-
local_var_path = '/core/tokens/{identifier}/view_key/'.sub('{
|
|
3118
|
+
local_var_path = '/core/tokens/{identifier}/view_key/'.sub('{identifier}', CGI.escape(identifier.to_s))
|
|
3120
3119
|
|
|
3121
3120
|
# query parameters
|
|
3122
3121
|
query_params = opts[:query_params] || {}
|
|
@@ -3243,7 +3242,7 @@ module Authentik::Api
|
|
|
3243
3242
|
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_user_consent_destroy"
|
|
3244
3243
|
end
|
|
3245
3244
|
# resource path
|
|
3246
|
-
local_var_path = '/core/user_consent/{id}/'.sub('{
|
|
3245
|
+
local_var_path = '/core/user_consent/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
3247
3246
|
|
|
3248
3247
|
# query parameters
|
|
3249
3248
|
query_params = opts[:query_params] || {}
|
|
@@ -3377,7 +3376,7 @@ module Authentik::Api
|
|
|
3377
3376
|
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_user_consent_retrieve"
|
|
3378
3377
|
end
|
|
3379
3378
|
# resource path
|
|
3380
|
-
local_var_path = '/core/user_consent/{id}/'.sub('{
|
|
3379
|
+
local_var_path = '/core/user_consent/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
3381
3380
|
|
|
3382
3381
|
# query parameters
|
|
3383
3382
|
query_params = opts[:query_params] || {}
|
|
@@ -3438,7 +3437,7 @@ module Authentik::Api
|
|
|
3438
3437
|
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_user_consent_used_by_list"
|
|
3439
3438
|
end
|
|
3440
3439
|
# resource path
|
|
3441
|
-
local_var_path = '/core/user_consent/{id}/used_by/'.sub('{
|
|
3440
|
+
local_var_path = '/core/user_consent/{id}/used_by/'.sub('{id}', CGI.escape(id.to_s))
|
|
3442
3441
|
|
|
3443
3442
|
# query parameters
|
|
3444
3443
|
query_params = opts[:query_params] || {}
|
|
@@ -3477,6 +3476,68 @@ module Authentik::Api
|
|
|
3477
3476
|
return data, status_code, headers
|
|
3478
3477
|
end
|
|
3479
3478
|
|
|
3479
|
+
# Choose the target account, then return a flow link.
|
|
3480
|
+
# @param [Hash] opts the optional parameters
|
|
3481
|
+
# @option opts [UserAccountLockdownRequest] :user_account_lockdown_request
|
|
3482
|
+
# @return [Link]
|
|
3483
|
+
def core_users_account_lockdown_create(opts = {})
|
|
3484
|
+
data, _status_code, _headers = core_users_account_lockdown_create_with_http_info(opts)
|
|
3485
|
+
data
|
|
3486
|
+
end
|
|
3487
|
+
|
|
3488
|
+
# Choose the target account, then return a flow link.
|
|
3489
|
+
# @param [Hash] opts the optional parameters
|
|
3490
|
+
# @option opts [UserAccountLockdownRequest] :user_account_lockdown_request
|
|
3491
|
+
# @return [Array<(Link, Integer, Hash)>] Link data, response status code and response headers
|
|
3492
|
+
def core_users_account_lockdown_create_with_http_info(opts = {})
|
|
3493
|
+
if @api_client.config.debugging
|
|
3494
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_users_account_lockdown_create ...'
|
|
3495
|
+
end
|
|
3496
|
+
# resource path
|
|
3497
|
+
local_var_path = '/core/users/account_lockdown/'
|
|
3498
|
+
|
|
3499
|
+
# query parameters
|
|
3500
|
+
query_params = opts[:query_params] || {}
|
|
3501
|
+
|
|
3502
|
+
# header parameters
|
|
3503
|
+
header_params = opts[:header_params] || {}
|
|
3504
|
+
# HTTP header 'Accept' (if needed)
|
|
3505
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3506
|
+
# HTTP header 'Content-Type'
|
|
3507
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3508
|
+
if !content_type.nil?
|
|
3509
|
+
header_params['Content-Type'] = content_type
|
|
3510
|
+
end
|
|
3511
|
+
|
|
3512
|
+
# form parameters
|
|
3513
|
+
form_params = opts[:form_params] || {}
|
|
3514
|
+
|
|
3515
|
+
# http body (model)
|
|
3516
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'user_account_lockdown_request'])
|
|
3517
|
+
|
|
3518
|
+
# return_type
|
|
3519
|
+
return_type = opts[:debug_return_type] || 'Link'
|
|
3520
|
+
|
|
3521
|
+
# auth_names
|
|
3522
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3523
|
+
|
|
3524
|
+
new_options = opts.merge(
|
|
3525
|
+
:operation => :"CoreApi.core_users_account_lockdown_create",
|
|
3526
|
+
:header_params => header_params,
|
|
3527
|
+
:query_params => query_params,
|
|
3528
|
+
:form_params => form_params,
|
|
3529
|
+
:body => post_body,
|
|
3530
|
+
:auth_names => auth_names,
|
|
3531
|
+
:return_type => return_type
|
|
3532
|
+
)
|
|
3533
|
+
|
|
3534
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3535
|
+
if @api_client.config.debugging
|
|
3536
|
+
@api_client.config.logger.debug "API called: CoreApi#core_users_account_lockdown_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3537
|
+
end
|
|
3538
|
+
return data, status_code, headers
|
|
3539
|
+
end
|
|
3540
|
+
|
|
3480
3541
|
# User Viewset
|
|
3481
3542
|
# @param user_request [UserRequest]
|
|
3482
3543
|
# @param [Hash] opts the optional parameters
|
|
@@ -3565,7 +3626,7 @@ module Authentik::Api
|
|
|
3565
3626
|
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_destroy"
|
|
3566
3627
|
end
|
|
3567
3628
|
# resource path
|
|
3568
|
-
local_var_path = '/core/users/{id}/'.sub('{
|
|
3629
|
+
local_var_path = '/core/users/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
3569
3630
|
|
|
3570
3631
|
# query parameters
|
|
3571
3632
|
query_params = opts[:query_params] || {}
|
|
@@ -3629,7 +3690,7 @@ module Authentik::Api
|
|
|
3629
3690
|
# @option opts [Array<String>] :roles_by_name
|
|
3630
3691
|
# @option opts [Array<String>] :roles_by_pk
|
|
3631
3692
|
# @option opts [String] :search A search term.
|
|
3632
|
-
# @option opts [Array<
|
|
3693
|
+
# @option opts [Array<UserTypeEnum>] :type
|
|
3633
3694
|
# @option opts [String] :username
|
|
3634
3695
|
# @option opts [String] :uuid
|
|
3635
3696
|
# @return [DataExport]
|
|
@@ -3663,7 +3724,7 @@ module Authentik::Api
|
|
|
3663
3724
|
# @option opts [Array<String>] :roles_by_name
|
|
3664
3725
|
# @option opts [Array<String>] :roles_by_pk
|
|
3665
3726
|
# @option opts [String] :search A search term.
|
|
3666
|
-
# @option opts [Array<
|
|
3727
|
+
# @option opts [Array<UserTypeEnum>] :type
|
|
3667
3728
|
# @option opts [String] :username
|
|
3668
3729
|
# @option opts [String] :uuid
|
|
3669
3730
|
# @return [Array<(DataExport, Integer, Hash)>] DataExport data, response status code and response headers
|
|
@@ -3671,10 +3732,6 @@ module Authentik::Api
|
|
|
3671
3732
|
if @api_client.config.debugging
|
|
3672
3733
|
@api_client.config.logger.debug 'Calling API: CoreApi.core_users_export_create ...'
|
|
3673
3734
|
end
|
|
3674
|
-
allowable_values = ["external", "internal", "internal_service_account", "service_account"]
|
|
3675
|
-
if @api_client.config.client_side_validation && opts[:'type'] && !opts[:'type'].all? { |item| allowable_values.include?(item) }
|
|
3676
|
-
fail ArgumentError, "invalid value for \"type\", must include one of #{allowable_values}"
|
|
3677
|
-
end
|
|
3678
3735
|
# resource path
|
|
3679
3736
|
local_var_path = '/core/users/export/'
|
|
3680
3737
|
|
|
@@ -3769,7 +3826,7 @@ module Authentik::Api
|
|
|
3769
3826
|
fail ArgumentError, "Missing the required parameter 'impersonation_request' when calling CoreApi.core_users_impersonate_create"
|
|
3770
3827
|
end
|
|
3771
3828
|
# resource path
|
|
3772
|
-
local_var_path = '/core/users/{id}/impersonate/'.sub('{
|
|
3829
|
+
local_var_path = '/core/users/{id}/impersonate/'.sub('{id}', CGI.escape(id.to_s))
|
|
3773
3830
|
|
|
3774
3831
|
# query parameters
|
|
3775
3832
|
query_params = opts[:query_params] || {}
|
|
@@ -3897,7 +3954,7 @@ module Authentik::Api
|
|
|
3897
3954
|
# @option opts [Array<String>] :roles_by_name
|
|
3898
3955
|
# @option opts [Array<String>] :roles_by_pk
|
|
3899
3956
|
# @option opts [String] :search A search term.
|
|
3900
|
-
# @option opts [Array<
|
|
3957
|
+
# @option opts [Array<UserTypeEnum>] :type
|
|
3901
3958
|
# @option opts [String] :username
|
|
3902
3959
|
# @option opts [String] :uuid
|
|
3903
3960
|
# @return [PaginatedUserList]
|
|
@@ -3935,7 +3992,7 @@ module Authentik::Api
|
|
|
3935
3992
|
# @option opts [Array<String>] :roles_by_name
|
|
3936
3993
|
# @option opts [Array<String>] :roles_by_pk
|
|
3937
3994
|
# @option opts [String] :search A search term.
|
|
3938
|
-
# @option opts [Array<
|
|
3995
|
+
# @option opts [Array<UserTypeEnum>] :type
|
|
3939
3996
|
# @option opts [String] :username
|
|
3940
3997
|
# @option opts [String] :uuid
|
|
3941
3998
|
# @return [Array<(PaginatedUserList, Integer, Hash)>] PaginatedUserList data, response status code and response headers
|
|
@@ -3943,10 +4000,6 @@ module Authentik::Api
|
|
|
3943
4000
|
if @api_client.config.debugging
|
|
3944
4001
|
@api_client.config.logger.debug 'Calling API: CoreApi.core_users_list ...'
|
|
3945
4002
|
end
|
|
3946
|
-
allowable_values = ["external", "internal", "internal_service_account", "service_account"]
|
|
3947
|
-
if @api_client.config.client_side_validation && opts[:'type'] && !opts[:'type'].all? { |item| allowable_values.include?(item) }
|
|
3948
|
-
fail ArgumentError, "invalid value for \"type\", must include one of #{allowable_values}"
|
|
3949
|
-
end
|
|
3950
4003
|
# resource path
|
|
3951
4004
|
local_var_path = '/core/users/'
|
|
3952
4005
|
|
|
@@ -4096,7 +4149,7 @@ module Authentik::Api
|
|
|
4096
4149
|
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_partial_update"
|
|
4097
4150
|
end
|
|
4098
4151
|
# resource path
|
|
4099
|
-
local_var_path = '/core/users/{id}/'.sub('{
|
|
4152
|
+
local_var_path = '/core/users/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
4100
4153
|
|
|
4101
4154
|
# query parameters
|
|
4102
4155
|
query_params = opts[:query_params] || {}
|
|
@@ -4222,7 +4275,7 @@ module Authentik::Api
|
|
|
4222
4275
|
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_recovery_create"
|
|
4223
4276
|
end
|
|
4224
4277
|
# resource path
|
|
4225
|
-
local_var_path = '/core/users/{id}/recovery/'.sub('{
|
|
4278
|
+
local_var_path = '/core/users/{id}/recovery/'.sub('{id}', CGI.escape(id.to_s))
|
|
4226
4279
|
|
|
4227
4280
|
# query parameters
|
|
4228
4281
|
query_params = opts[:query_params] || {}
|
|
@@ -4294,7 +4347,7 @@ module Authentik::Api
|
|
|
4294
4347
|
fail ArgumentError, "Missing the required parameter 'user_recovery_email_request' when calling CoreApi.core_users_recovery_email_create"
|
|
4295
4348
|
end
|
|
4296
4349
|
# resource path
|
|
4297
|
-
local_var_path = '/core/users/{id}/recovery_email/'.sub('{
|
|
4350
|
+
local_var_path = '/core/users/{id}/recovery_email/'.sub('{id}', CGI.escape(id.to_s))
|
|
4298
4351
|
|
|
4299
4352
|
# query parameters
|
|
4300
4353
|
query_params = opts[:query_params] || {}
|
|
@@ -4360,7 +4413,7 @@ module Authentik::Api
|
|
|
4360
4413
|
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_retrieve"
|
|
4361
4414
|
end
|
|
4362
4415
|
# resource path
|
|
4363
|
-
local_var_path = '/core/users/{id}/'.sub('{
|
|
4416
|
+
local_var_path = '/core/users/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
4364
4417
|
|
|
4365
4418
|
# query parameters
|
|
4366
4419
|
query_params = opts[:query_params] || {}
|
|
@@ -4493,7 +4546,7 @@ module Authentik::Api
|
|
|
4493
4546
|
fail ArgumentError, "Missing the required parameter 'user_password_set_request' when calling CoreApi.core_users_set_password_create"
|
|
4494
4547
|
end
|
|
4495
4548
|
# resource path
|
|
4496
|
-
local_var_path = '/core/users/{id}/set_password/'.sub('{
|
|
4549
|
+
local_var_path = '/core/users/{id}/set_password/'.sub('{id}', CGI.escape(id.to_s))
|
|
4497
4550
|
|
|
4498
4551
|
# query parameters
|
|
4499
4552
|
query_params = opts[:query_params] || {}
|
|
@@ -4537,6 +4590,78 @@ module Authentik::Api
|
|
|
4537
4590
|
return data, status_code, headers
|
|
4538
4591
|
end
|
|
4539
4592
|
|
|
4593
|
+
# Set a user's password from a pre-hashed Django password value. Submit the Django password hash in the shared ``password`` request field. This updates authentik's local password verifier only. It does not attempt to propagate the password change to LDAP or Kerberos because no raw password is available from the request payload.
|
|
4594
|
+
# @param id [Integer] A unique integer value identifying this User.
|
|
4595
|
+
# @param user_password_hash_set_request [UserPasswordHashSetRequest]
|
|
4596
|
+
# @param [Hash] opts the optional parameters
|
|
4597
|
+
# @return [nil]
|
|
4598
|
+
def core_users_set_password_hash_create(id, user_password_hash_set_request, opts = {})
|
|
4599
|
+
core_users_set_password_hash_create_with_http_info(id, user_password_hash_set_request, opts)
|
|
4600
|
+
nil
|
|
4601
|
+
end
|
|
4602
|
+
|
|
4603
|
+
# Set a user's password from a pre-hashed Django password value. Submit the Django password hash in the shared ``password`` request field. This updates authentik's local password verifier only. It does not attempt to propagate the password change to LDAP or Kerberos because no raw password is available from the request payload.
|
|
4604
|
+
# @param id [Integer] A unique integer value identifying this User.
|
|
4605
|
+
# @param user_password_hash_set_request [UserPasswordHashSetRequest]
|
|
4606
|
+
# @param [Hash] opts the optional parameters
|
|
4607
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
4608
|
+
def core_users_set_password_hash_create_with_http_info(id, user_password_hash_set_request, opts = {})
|
|
4609
|
+
if @api_client.config.debugging
|
|
4610
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_users_set_password_hash_create ...'
|
|
4611
|
+
end
|
|
4612
|
+
# verify the required parameter 'id' is set
|
|
4613
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
4614
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_set_password_hash_create"
|
|
4615
|
+
end
|
|
4616
|
+
# verify the required parameter 'user_password_hash_set_request' is set
|
|
4617
|
+
if @api_client.config.client_side_validation && user_password_hash_set_request.nil?
|
|
4618
|
+
fail ArgumentError, "Missing the required parameter 'user_password_hash_set_request' when calling CoreApi.core_users_set_password_hash_create"
|
|
4619
|
+
end
|
|
4620
|
+
# resource path
|
|
4621
|
+
local_var_path = '/core/users/{id}/set_password_hash/'.sub('{id}', CGI.escape(id.to_s))
|
|
4622
|
+
|
|
4623
|
+
# query parameters
|
|
4624
|
+
query_params = opts[:query_params] || {}
|
|
4625
|
+
|
|
4626
|
+
# header parameters
|
|
4627
|
+
header_params = opts[:header_params] || {}
|
|
4628
|
+
# HTTP header 'Accept' (if needed)
|
|
4629
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
4630
|
+
# HTTP header 'Content-Type'
|
|
4631
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
4632
|
+
if !content_type.nil?
|
|
4633
|
+
header_params['Content-Type'] = content_type
|
|
4634
|
+
end
|
|
4635
|
+
|
|
4636
|
+
# form parameters
|
|
4637
|
+
form_params = opts[:form_params] || {}
|
|
4638
|
+
|
|
4639
|
+
# http body (model)
|
|
4640
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(user_password_hash_set_request)
|
|
4641
|
+
|
|
4642
|
+
# return_type
|
|
4643
|
+
return_type = opts[:debug_return_type]
|
|
4644
|
+
|
|
4645
|
+
# auth_names
|
|
4646
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
4647
|
+
|
|
4648
|
+
new_options = opts.merge(
|
|
4649
|
+
:operation => :"CoreApi.core_users_set_password_hash_create",
|
|
4650
|
+
:header_params => header_params,
|
|
4651
|
+
:query_params => query_params,
|
|
4652
|
+
:form_params => form_params,
|
|
4653
|
+
:body => post_body,
|
|
4654
|
+
:auth_names => auth_names,
|
|
4655
|
+
:return_type => return_type
|
|
4656
|
+
)
|
|
4657
|
+
|
|
4658
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4659
|
+
if @api_client.config.debugging
|
|
4660
|
+
@api_client.config.logger.debug "API called: CoreApi#core_users_set_password_hash_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4661
|
+
end
|
|
4662
|
+
return data, status_code, headers
|
|
4663
|
+
end
|
|
4664
|
+
|
|
4540
4665
|
# User Viewset
|
|
4541
4666
|
# @param id [Integer] A unique integer value identifying this User.
|
|
4542
4667
|
# @param user_request [UserRequest]
|
|
@@ -4565,7 +4690,7 @@ module Authentik::Api
|
|
|
4565
4690
|
fail ArgumentError, "Missing the required parameter 'user_request' when calling CoreApi.core_users_update"
|
|
4566
4691
|
end
|
|
4567
4692
|
# resource path
|
|
4568
|
-
local_var_path = '/core/users/{id}/'.sub('{
|
|
4693
|
+
local_var_path = '/core/users/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
4569
4694
|
|
|
4570
4695
|
# query parameters
|
|
4571
4696
|
query_params = opts[:query_params] || {}
|
|
@@ -4631,7 +4756,7 @@ module Authentik::Api
|
|
|
4631
4756
|
fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_used_by_list"
|
|
4632
4757
|
end
|
|
4633
4758
|
# resource path
|
|
4634
|
-
local_var_path = '/core/users/{id}/used_by/'.sub('{
|
|
4759
|
+
local_var_path = '/core/users/{id}/used_by/'.sub('{id}', CGI.escape(id.to_s))
|
|
4635
4760
|
|
|
4636
4761
|
# query parameters
|
|
4637
4762
|
query_params = opts[:query_params] || {}
|