authentik-api 2026.2.4 → 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 +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/expiring_base_grant_model.rb +1 -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_kerberos_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/group_ldap_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_o_auth_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_plex_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_saml_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_telegram_source_connection_request.rb +27 -1
- 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_group_kerberos_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_ldap_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_o_auth_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_plex_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_saml_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_telegram_source_connection_request.rb +10 -1
- 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/patched_user_kerberos_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_ldap_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_o_auth_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_plex_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_saml_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_telegram_source_connection_request.rb +10 -1
- 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/token_model.rb +1 -1
- 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_kerberos_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/user_ldap_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_o_auth_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
- data/lib/authentik/api/models/user_plex_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_saml_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_telegram_source_connection_request.rb +27 -1
- 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_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/group_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/group_ldap_source_connection_spec.rb +6 -0
- data/spec/models/group_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/group_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/group_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/group_source_connection_request_spec.rb +6 -0
- data/spec/models/group_telegram_source_connection_request_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_group_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_telegram_source_connection_request_spec.rb +6 -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/patched_user_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_telegram_source_connection_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_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/user_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/user_ldap_source_connection_spec.rb +6 -0
- data/spec/models/user_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/user_password_hash_set_request_spec.rb +30 -0
- data/spec/models/user_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/user_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/user_source_connection_request_spec.rb +6 -0
- data/spec/models/user_telegram_source_connection_request_spec.rb +6 -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
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'date'
|
|
8
|
+
require 'time'
|
|
9
|
+
|
|
10
|
+
module Authentik::Api
|
|
11
|
+
# Payload to set a users' password hash directly
|
|
12
|
+
class UserPasswordHashSetRequest < ApiModelBase
|
|
13
|
+
attr_accessor :password
|
|
14
|
+
|
|
15
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
16
|
+
def self.attribute_map
|
|
17
|
+
{
|
|
18
|
+
:'password' => :'password'
|
|
19
|
+
}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Returns attribute mapping this model knows about
|
|
23
|
+
def self.acceptable_attribute_map
|
|
24
|
+
attribute_map
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns all the JSON keys this model knows about
|
|
28
|
+
def self.acceptable_attributes
|
|
29
|
+
acceptable_attribute_map.values
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.openapi_types
|
|
34
|
+
{
|
|
35
|
+
:'password' => :'String'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# List of attributes with nullable: true
|
|
40
|
+
def self.openapi_nullable
|
|
41
|
+
Set.new([
|
|
42
|
+
])
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
47
|
+
def initialize(attributes = {})
|
|
48
|
+
if (!attributes.is_a?(Hash))
|
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::UserPasswordHashSetRequest` initialize method"
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
53
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::UserPasswordHashSetRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
57
|
+
end
|
|
58
|
+
h[k.to_sym] = v
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if attributes.key?(:'password')
|
|
62
|
+
self.password = attributes[:'password']
|
|
63
|
+
else
|
|
64
|
+
self.password = nil
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
69
|
+
# @return Array for valid properties with the reasons
|
|
70
|
+
def list_invalid_properties
|
|
71
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
72
|
+
invalid_properties = Array.new
|
|
73
|
+
if @password.nil?
|
|
74
|
+
invalid_properties.push('invalid value for "password", password cannot be nil.')
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if @password.to_s.length < 1
|
|
78
|
+
invalid_properties.push('invalid value for "password", the character length must be greater than or equal to 1.')
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
invalid_properties
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Check to see if the all the properties in the model are valid
|
|
85
|
+
# @return true if the model is valid
|
|
86
|
+
def valid?
|
|
87
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
88
|
+
return false if @password.nil?
|
|
89
|
+
return false if @password.to_s.length < 1
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Custom attribute writer method with validation
|
|
94
|
+
# @param [Object] password Value to be assigned
|
|
95
|
+
def password=(password)
|
|
96
|
+
if password.nil?
|
|
97
|
+
fail ArgumentError, 'password cannot be nil'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if password.to_s.length < 1
|
|
101
|
+
fail ArgumentError, 'invalid value for "password", the character length must be greater than or equal to 1.'
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
@password = password
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Checks equality by comparing each attribute.
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
password == o.password
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# @see the `==` method
|
|
116
|
+
# @param [Object] Object to be compared
|
|
117
|
+
def eql?(o)
|
|
118
|
+
self == o
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Calculates hash code according to all attributes.
|
|
122
|
+
# @return [Integer] Hash code
|
|
123
|
+
def hash
|
|
124
|
+
[password].hash
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Builds the object from hash
|
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
|
+
# @return [Object] Returns the model itself
|
|
130
|
+
def self.build_from_hash(attributes)
|
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
133
|
+
transformed_hash = {}
|
|
134
|
+
openapi_types.each_pair do |key, type|
|
|
135
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
136
|
+
transformed_hash["#{key}"] = nil
|
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
141
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
new(transformed_hash)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Returns the object in the form of hash
|
|
151
|
+
# @return [Hash] Returns the object in the form of hash
|
|
152
|
+
def to_hash
|
|
153
|
+
hash = {}
|
|
154
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
155
|
+
value = self.send(attr)
|
|
156
|
+
if value.nil?
|
|
157
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
158
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
hash[param] = _to_hash(value)
|
|
162
|
+
end
|
|
163
|
+
hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
end
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# User source connection
|
|
12
12
|
class UserPlexSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :user
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -19,6 +21,7 @@ module Authentik::Api
|
|
|
19
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
22
|
def self.attribute_map
|
|
21
23
|
{
|
|
24
|
+
:'user' => :'user',
|
|
22
25
|
:'source' => :'source',
|
|
23
26
|
:'identifier' => :'identifier',
|
|
24
27
|
:'plex_token' => :'plex_token'
|
|
@@ -38,6 +41,7 @@ module Authentik::Api
|
|
|
38
41
|
# Attribute type mapping.
|
|
39
42
|
def self.openapi_types
|
|
40
43
|
{
|
|
44
|
+
:'user' => :'Integer',
|
|
41
45
|
:'source' => :'String',
|
|
42
46
|
:'identifier' => :'String',
|
|
43
47
|
:'plex_token' => :'String'
|
|
@@ -66,6 +70,12 @@ module Authentik::Api
|
|
|
66
70
|
h[k.to_sym] = v
|
|
67
71
|
}
|
|
68
72
|
|
|
73
|
+
if attributes.key?(:'user')
|
|
74
|
+
self.user = attributes[:'user']
|
|
75
|
+
else
|
|
76
|
+
self.user = nil
|
|
77
|
+
end
|
|
78
|
+
|
|
69
79
|
if attributes.key?(:'source')
|
|
70
80
|
self.source = attributes[:'source']
|
|
71
81
|
else
|
|
@@ -90,6 +100,10 @@ module Authentik::Api
|
|
|
90
100
|
def list_invalid_properties
|
|
91
101
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
92
102
|
invalid_properties = Array.new
|
|
103
|
+
if @user.nil?
|
|
104
|
+
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
105
|
+
end
|
|
106
|
+
|
|
93
107
|
if @source.nil?
|
|
94
108
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
95
109
|
end
|
|
@@ -117,6 +131,7 @@ module Authentik::Api
|
|
|
117
131
|
# @return true if the model is valid
|
|
118
132
|
def valid?
|
|
119
133
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
134
|
+
return false if @user.nil?
|
|
120
135
|
return false if @source.nil?
|
|
121
136
|
return false if @identifier.nil?
|
|
122
137
|
return false if @identifier.to_s.length < 1
|
|
@@ -125,6 +140,16 @@ module Authentik::Api
|
|
|
125
140
|
true
|
|
126
141
|
end
|
|
127
142
|
|
|
143
|
+
# Custom attribute writer method with validation
|
|
144
|
+
# @param [Object] user Value to be assigned
|
|
145
|
+
def user=(user)
|
|
146
|
+
if user.nil?
|
|
147
|
+
fail ArgumentError, 'user cannot be nil'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
@user = user
|
|
151
|
+
end
|
|
152
|
+
|
|
128
153
|
# Custom attribute writer method with validation
|
|
129
154
|
# @param [Object] source Value to be assigned
|
|
130
155
|
def source=(source)
|
|
@@ -168,6 +193,7 @@ module Authentik::Api
|
|
|
168
193
|
def ==(o)
|
|
169
194
|
return true if self.equal?(o)
|
|
170
195
|
self.class == o.class &&
|
|
196
|
+
user == o.user &&
|
|
171
197
|
source == o.source &&
|
|
172
198
|
identifier == o.identifier &&
|
|
173
199
|
plex_token == o.plex_token
|
|
@@ -182,7 +208,7 @@ module Authentik::Api
|
|
|
182
208
|
# Calculates hash code according to all attributes.
|
|
183
209
|
# @return [Integer] Hash code
|
|
184
210
|
def hash
|
|
185
|
-
[source, identifier, plex_token].hash
|
|
211
|
+
[user, source, identifier, plex_token].hash
|
|
186
212
|
end
|
|
187
213
|
|
|
188
214
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# User source connection
|
|
12
12
|
class UserSAMLSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :user
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'user' => :'user',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'user' => :'Integer',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'user')
|
|
70
|
+
self.user = attributes[:'user']
|
|
71
|
+
else
|
|
72
|
+
self.user = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @user.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @user.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] user Value to be assigned
|
|
125
|
+
def user=(user)
|
|
126
|
+
if user.nil?
|
|
127
|
+
fail ArgumentError, 'user cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@user = user
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
user == o.user &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[user, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# User source connection
|
|
12
12
|
class UserSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :user
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'user' => :'user',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'user' => :'Integer',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'user')
|
|
70
|
+
self.user = attributes[:'user']
|
|
71
|
+
else
|
|
72
|
+
self.user = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @user.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @user.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] user Value to be assigned
|
|
125
|
+
def user=(user)
|
|
126
|
+
if user.nil?
|
|
127
|
+
fail ArgumentError, 'user cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@user = user
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
user == o.user &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[user, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# User source connection
|
|
12
12
|
class UserTelegramSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :user
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'user' => :'user',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'user' => :'Integer',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'user')
|
|
70
|
+
self.user = attributes[:'user']
|
|
71
|
+
else
|
|
72
|
+
self.user = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @user.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @user.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] user Value to be assigned
|
|
125
|
+
def user=(user)
|
|
126
|
+
if user.nil?
|
|
127
|
+
fail ArgumentError, 'user cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@user = user
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
user == o.user &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[user, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -12,9 +12,10 @@ module Authentik::Api
|
|
|
12
12
|
GOAUTHENTIK_IO_MERGED = "goauthentik.io/@merged".freeze
|
|
13
13
|
GOAUTHENTIK_IO_PLATFORM = "goauthentik.io/platform".freeze
|
|
14
14
|
FLEETDM_COM = "fleetdm.com".freeze
|
|
15
|
+
CHROME_GOOGLE_COM = "chrome.google.com".freeze
|
|
15
16
|
|
|
16
17
|
def self.all_vars
|
|
17
|
-
@all_vars ||= [GOAUTHENTIK_IO_MERGED, GOAUTHENTIK_IO_PLATFORM, FLEETDM_COM].freeze
|
|
18
|
+
@all_vars ||= [GOAUTHENTIK_IO_MERGED, GOAUTHENTIK_IO_PLATFORM, FLEETDM_COM, CHROME_GOOGLE_COM].freeze
|
|
18
19
|
end
|
|
19
20
|
|
|
20
21
|
# Builds the enum from string
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'date'
|
|
8
|
+
require 'time'
|
|
9
|
+
|
|
10
|
+
module Authentik::Api
|
|
11
|
+
class WebAuthnHintEnum
|
|
12
|
+
SECURITY_KEY = "security-key".freeze
|
|
13
|
+
CLIENT_DEVICE = "client-device".freeze
|
|
14
|
+
HYBRID = "hybrid".freeze
|
|
15
|
+
|
|
16
|
+
def self.all_vars
|
|
17
|
+
@all_vars ||= [SECURITY_KEY, CLIENT_DEVICE, HYBRID].freeze
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# Builds the enum from string
|
|
21
|
+
# @param [String] The enum value in the form of the string
|
|
22
|
+
# @return [String] The enum value
|
|
23
|
+
def self.build_from_hash(value)
|
|
24
|
+
new.build_from_hash(value)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Builds the enum from string
|
|
28
|
+
# @param [String] The enum value in the form of the string
|
|
29
|
+
# @return [String] The enum value
|
|
30
|
+
def build_from_hash(value)
|
|
31
|
+
return value if WebAuthnHintEnum.all_vars.include?(value)
|
|
32
|
+
raise "Invalid ENUM value #{value} for class #WebAuthnHintEnum"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
data/spec/api/admin_api_spec.rb
CHANGED
|
@@ -53,7 +53,7 @@ describe 'AdminApi' do
|
|
|
53
53
|
# Delete file from storage backend.
|
|
54
54
|
# @param [Hash] opts the optional parameters
|
|
55
55
|
# @option opts [String] :name
|
|
56
|
-
# @option opts [
|
|
56
|
+
# @option opts [UsageEnum] :usage
|
|
57
57
|
# @return [nil]
|
|
58
58
|
describe 'admin_file_destroy test' do
|
|
59
59
|
it 'should work' do
|
|
@@ -66,7 +66,7 @@ describe 'AdminApi' do
|
|
|
66
66
|
# @param [Hash] opts the optional parameters
|
|
67
67
|
# @option opts [Boolean] :manageable_only
|
|
68
68
|
# @option opts [String] :search A search term.
|
|
69
|
-
# @option opts [
|
|
69
|
+
# @option opts [UsageEnum] :usage
|
|
70
70
|
# @return [Array<FileList>]
|
|
71
71
|
describe 'admin_file_list test' do
|
|
72
72
|
it 'should work' do
|
data/spec/api/core_api_spec.rb
CHANGED
|
@@ -321,6 +321,7 @@ describe 'CoreApi' do
|
|
|
321
321
|
# @option opts [String] :flow_authentication
|
|
322
322
|
# @option opts [String] :flow_device_code
|
|
323
323
|
# @option opts [String] :flow_invalidation
|
|
324
|
+
# @option opts [String] :flow_lockdown
|
|
324
325
|
# @option opts [String] :flow_recovery
|
|
325
326
|
# @option opts [String] :flow_unenrollment
|
|
326
327
|
# @option opts [String] :flow_user_settings
|
|
@@ -530,7 +531,7 @@ describe 'CoreApi' do
|
|
|
530
531
|
# @option opts [Time] :expires
|
|
531
532
|
# @option opts [Boolean] :expiring
|
|
532
533
|
# @option opts [String] :identifier
|
|
533
|
-
# @option opts [
|
|
534
|
+
# @option opts [IntentEnum] :intent
|
|
534
535
|
# @option opts [String] :managed
|
|
535
536
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
536
537
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -673,6 +674,17 @@ describe 'CoreApi' do
|
|
|
673
674
|
end
|
|
674
675
|
end
|
|
675
676
|
|
|
677
|
+
# unit tests for core_users_account_lockdown_create
|
|
678
|
+
# Choose the target account, then return a flow link.
|
|
679
|
+
# @param [Hash] opts the optional parameters
|
|
680
|
+
# @option opts [UserAccountLockdownRequest] :user_account_lockdown_request
|
|
681
|
+
# @return [Link]
|
|
682
|
+
describe 'core_users_account_lockdown_create test' do
|
|
683
|
+
it 'should work' do
|
|
684
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
685
|
+
end
|
|
686
|
+
end
|
|
687
|
+
|
|
676
688
|
# unit tests for core_users_create
|
|
677
689
|
# User Viewset
|
|
678
690
|
# @param user_request
|
|
@@ -721,7 +733,7 @@ describe 'CoreApi' do
|
|
|
721
733
|
# @option opts [Array<String>] :roles_by_name
|
|
722
734
|
# @option opts [Array<String>] :roles_by_pk
|
|
723
735
|
# @option opts [String] :search A search term.
|
|
724
|
-
# @option opts [Array<
|
|
736
|
+
# @option opts [Array<UserTypeEnum>] :type
|
|
725
737
|
# @option opts [String] :username
|
|
726
738
|
# @option opts [String] :uuid
|
|
727
739
|
# @return [DataExport]
|
|
@@ -783,7 +795,7 @@ describe 'CoreApi' do
|
|
|
783
795
|
# @option opts [Array<String>] :roles_by_name
|
|
784
796
|
# @option opts [Array<String>] :roles_by_pk
|
|
785
797
|
# @option opts [String] :search A search term.
|
|
786
|
-
# @option opts [Array<
|
|
798
|
+
# @option opts [Array<UserTypeEnum>] :type
|
|
787
799
|
# @option opts [String] :username
|
|
788
800
|
# @option opts [String] :uuid
|
|
789
801
|
# @return [PaginatedUserList]
|
|
@@ -884,6 +896,18 @@ describe 'CoreApi' do
|
|
|
884
896
|
end
|
|
885
897
|
end
|
|
886
898
|
|
|
899
|
+
# unit tests for core_users_set_password_hash_create
|
|
900
|
+
# 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.
|
|
901
|
+
# @param id A unique integer value identifying this User.
|
|
902
|
+
# @param user_password_hash_set_request
|
|
903
|
+
# @param [Hash] opts the optional parameters
|
|
904
|
+
# @return [nil]
|
|
905
|
+
describe 'core_users_set_password_hash_create test' do
|
|
906
|
+
it 'should work' do
|
|
907
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
908
|
+
end
|
|
909
|
+
end
|
|
910
|
+
|
|
887
911
|
# unit tests for core_users_update
|
|
888
912
|
# User Viewset
|
|
889
913
|
# @param id A unique integer value identifying this User.
|
data/spec/api/crypto_api_spec.rb
CHANGED
|
@@ -63,7 +63,7 @@ describe 'CryptoApi' do
|
|
|
63
63
|
# CertificateKeyPair Viewset
|
|
64
64
|
# @param [Hash] opts the optional parameters
|
|
65
65
|
# @option opts [Boolean] :has_key Only return certificate-key pairs with keys
|
|
66
|
-
# @option opts [Array<
|
|
66
|
+
# @option opts [Array<KeyTypeEnum>] :key_type
|
|
67
67
|
# @option opts [String] :managed
|
|
68
68
|
# @option opts [String] :name
|
|
69
69
|
# @option opts [String] :ordering Which field to use when ordering the results.
|