authentik-api 2026.2.3 → 2026.5.0.rc2
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 +66 -14
- data/lib/authentik/api/api/admin_api.rb +4 -12
- data/lib/authentik/api/api/core_api.rb +143 -18
- data/lib/authentik/api/api/crypto_api.rb +2 -6
- data/lib/authentik/api/api/endpoints_api.rb +1577 -656
- data/lib/authentik/api/api/events_api.rb +121 -38
- data/lib/authentik/api/api/flows_api.rb +8 -90
- data/lib/authentik/api/api/lifecycle_api.rb +22 -13
- data/lib/authentik/api/api/managed_api.rb +73 -0
- data/lib/authentik/api/api/policies_api.rb +5 -6
- data/lib/authentik/api/api/providers_api.rb +46 -108
- data/lib/authentik/api/api/rbac_api.rb +0 -5
- data/lib/authentik/api/api/schema_api.rb +4 -12
- data/lib/authentik/api/api/sources_api.rb +35 -96
- data/lib/authentik/api/api/ssf_api.rb +63 -6
- data/lib/authentik/api/api/stages_api.rb +581 -102
- data/lib/authentik/api/api/tasks_api.rb +5 -13
- 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/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_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/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_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
|
@@ -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?
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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]
|
|
@@ -209,7 +209,7 @@ module Authentik::Api
|
|
|
209
209
|
# CertificateKeyPair Viewset
|
|
210
210
|
# @param [Hash] opts the optional parameters
|
|
211
211
|
# @option opts [Boolean] :has_key Only return certificate-key pairs with keys
|
|
212
|
-
# @option opts [Array<
|
|
212
|
+
# @option opts [Array<KeyTypeEnum>] :key_type
|
|
213
213
|
# @option opts [String] :managed
|
|
214
214
|
# @option opts [String] :name
|
|
215
215
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
@@ -225,7 +225,7 @@ module Authentik::Api
|
|
|
225
225
|
# CertificateKeyPair Viewset
|
|
226
226
|
# @param [Hash] opts the optional parameters
|
|
227
227
|
# @option opts [Boolean] :has_key Only return certificate-key pairs with keys
|
|
228
|
-
# @option opts [Array<
|
|
228
|
+
# @option opts [Array<KeyTypeEnum>] :key_type
|
|
229
229
|
# @option opts [String] :managed
|
|
230
230
|
# @option opts [String] :name
|
|
231
231
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
@@ -237,10 +237,6 @@ module Authentik::Api
|
|
|
237
237
|
if @api_client.config.debugging
|
|
238
238
|
@api_client.config.logger.debug 'Calling API: CryptoApi.crypto_certificatekeypairs_list ...'
|
|
239
239
|
end
|
|
240
|
-
allowable_values = ["dsa", "ec", "ed25519", "ed448", "rsa"]
|
|
241
|
-
if @api_client.config.client_side_validation && opts[:'key_type'] && !opts[:'key_type'].all? { |item| allowable_values.include?(item) }
|
|
242
|
-
fail ArgumentError, "invalid value for \"key_type\", must include one of #{allowable_values}"
|
|
243
|
-
end
|
|
244
240
|
# resource path
|
|
245
241
|
local_var_path = '/crypto/certificatekeypairs/'
|
|
246
242
|
|