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
|
@@ -0,0 +1,273 @@
|
|
|
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 AppleIndependentSecureEnclaveRequest < ApiModelBase
|
|
12
|
+
attr_accessor :uuid
|
|
13
|
+
|
|
14
|
+
# The user that this device belongs to.
|
|
15
|
+
attr_accessor :user
|
|
16
|
+
|
|
17
|
+
attr_accessor :apple_secure_enclave_key
|
|
18
|
+
|
|
19
|
+
attr_accessor :apple_enclave_key_id
|
|
20
|
+
|
|
21
|
+
attr_accessor :device_type
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'uuid' => :'uuid',
|
|
27
|
+
:'user' => :'user',
|
|
28
|
+
:'apple_secure_enclave_key' => :'apple_secure_enclave_key',
|
|
29
|
+
:'apple_enclave_key_id' => :'apple_enclave_key_id',
|
|
30
|
+
:'device_type' => :'device_type'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Returns attribute mapping this model knows about
|
|
35
|
+
def self.acceptable_attribute_map
|
|
36
|
+
attribute_map
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns all the JSON keys this model knows about
|
|
40
|
+
def self.acceptable_attributes
|
|
41
|
+
acceptable_attribute_map.values
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'uuid' => :'String',
|
|
48
|
+
:'user' => :'Integer',
|
|
49
|
+
:'apple_secure_enclave_key' => :'String',
|
|
50
|
+
:'apple_enclave_key_id' => :'String',
|
|
51
|
+
:'device_type' => :'String'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::AppleIndependentSecureEnclaveRequest` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::AppleIndependentSecureEnclaveRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'uuid')
|
|
78
|
+
self.uuid = attributes[:'uuid']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'user')
|
|
82
|
+
self.user = attributes[:'user']
|
|
83
|
+
else
|
|
84
|
+
self.user = nil
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'apple_secure_enclave_key')
|
|
88
|
+
self.apple_secure_enclave_key = attributes[:'apple_secure_enclave_key']
|
|
89
|
+
else
|
|
90
|
+
self.apple_secure_enclave_key = nil
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'apple_enclave_key_id')
|
|
94
|
+
self.apple_enclave_key_id = attributes[:'apple_enclave_key_id']
|
|
95
|
+
else
|
|
96
|
+
self.apple_enclave_key_id = nil
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'device_type')
|
|
100
|
+
self.device_type = attributes[:'device_type']
|
|
101
|
+
else
|
|
102
|
+
self.device_type = nil
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
107
|
+
# @return Array for valid properties with the reasons
|
|
108
|
+
def list_invalid_properties
|
|
109
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
110
|
+
invalid_properties = Array.new
|
|
111
|
+
if @user.nil?
|
|
112
|
+
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if @apple_secure_enclave_key.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "apple_secure_enclave_key", apple_secure_enclave_key cannot be nil.')
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if @apple_secure_enclave_key.to_s.length < 1
|
|
120
|
+
invalid_properties.push('invalid value for "apple_secure_enclave_key", the character length must be greater than or equal to 1.')
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if @apple_enclave_key_id.nil?
|
|
124
|
+
invalid_properties.push('invalid value for "apple_enclave_key_id", apple_enclave_key_id cannot be nil.')
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if @apple_enclave_key_id.to_s.length < 1
|
|
128
|
+
invalid_properties.push('invalid value for "apple_enclave_key_id", the character length must be greater than or equal to 1.')
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if @device_type.nil?
|
|
132
|
+
invalid_properties.push('invalid value for "device_type", device_type cannot be nil.')
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if @device_type.to_s.length < 1
|
|
136
|
+
invalid_properties.push('invalid value for "device_type", the character length must be greater than or equal to 1.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
invalid_properties
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Check to see if the all the properties in the model are valid
|
|
143
|
+
# @return true if the model is valid
|
|
144
|
+
def valid?
|
|
145
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
+
return false if @user.nil?
|
|
147
|
+
return false if @apple_secure_enclave_key.nil?
|
|
148
|
+
return false if @apple_secure_enclave_key.to_s.length < 1
|
|
149
|
+
return false if @apple_enclave_key_id.nil?
|
|
150
|
+
return false if @apple_enclave_key_id.to_s.length < 1
|
|
151
|
+
return false if @device_type.nil?
|
|
152
|
+
return false if @device_type.to_s.length < 1
|
|
153
|
+
true
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Custom attribute writer method with validation
|
|
157
|
+
# @param [Object] user Value to be assigned
|
|
158
|
+
def user=(user)
|
|
159
|
+
if user.nil?
|
|
160
|
+
fail ArgumentError, 'user cannot be nil'
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
@user = user
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Custom attribute writer method with validation
|
|
167
|
+
# @param [Object] apple_secure_enclave_key Value to be assigned
|
|
168
|
+
def apple_secure_enclave_key=(apple_secure_enclave_key)
|
|
169
|
+
if apple_secure_enclave_key.nil?
|
|
170
|
+
fail ArgumentError, 'apple_secure_enclave_key cannot be nil'
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if apple_secure_enclave_key.to_s.length < 1
|
|
174
|
+
fail ArgumentError, 'invalid value for "apple_secure_enclave_key", the character length must be greater than or equal to 1.'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
@apple_secure_enclave_key = apple_secure_enclave_key
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Custom attribute writer method with validation
|
|
181
|
+
# @param [Object] apple_enclave_key_id Value to be assigned
|
|
182
|
+
def apple_enclave_key_id=(apple_enclave_key_id)
|
|
183
|
+
if apple_enclave_key_id.nil?
|
|
184
|
+
fail ArgumentError, 'apple_enclave_key_id cannot be nil'
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if apple_enclave_key_id.to_s.length < 1
|
|
188
|
+
fail ArgumentError, 'invalid value for "apple_enclave_key_id", the character length must be greater than or equal to 1.'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@apple_enclave_key_id = apple_enclave_key_id
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method with validation
|
|
195
|
+
# @param [Object] device_type Value to be assigned
|
|
196
|
+
def device_type=(device_type)
|
|
197
|
+
if device_type.nil?
|
|
198
|
+
fail ArgumentError, 'device_type cannot be nil'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if device_type.to_s.length < 1
|
|
202
|
+
fail ArgumentError, 'invalid value for "device_type", the character length must be greater than or equal to 1.'
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
@device_type = device_type
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Checks equality by comparing each attribute.
|
|
209
|
+
# @param [Object] Object to be compared
|
|
210
|
+
def ==(o)
|
|
211
|
+
return true if self.equal?(o)
|
|
212
|
+
self.class == o.class &&
|
|
213
|
+
uuid == o.uuid &&
|
|
214
|
+
user == o.user &&
|
|
215
|
+
apple_secure_enclave_key == o.apple_secure_enclave_key &&
|
|
216
|
+
apple_enclave_key_id == o.apple_enclave_key_id &&
|
|
217
|
+
device_type == o.device_type
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# @see the `==` method
|
|
221
|
+
# @param [Object] Object to be compared
|
|
222
|
+
def eql?(o)
|
|
223
|
+
self == o
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Calculates hash code according to all attributes.
|
|
227
|
+
# @return [Integer] Hash code
|
|
228
|
+
def hash
|
|
229
|
+
[uuid, user, apple_secure_enclave_key, apple_enclave_key_id, device_type].hash
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Builds the object from hash
|
|
233
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
234
|
+
# @return [Object] Returns the model itself
|
|
235
|
+
def self.build_from_hash(attributes)
|
|
236
|
+
return nil unless attributes.is_a?(Hash)
|
|
237
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
238
|
+
transformed_hash = {}
|
|
239
|
+
openapi_types.each_pair do |key, type|
|
|
240
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
241
|
+
transformed_hash["#{key}"] = nil
|
|
242
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
243
|
+
# check to ensure the input is an array given that the attribute
|
|
244
|
+
# is documented as an array but the input is not
|
|
245
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
246
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
247
|
+
end
|
|
248
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
249
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
new(transformed_hash)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Returns the object in the form of hash
|
|
256
|
+
# @return [Hash] Returns the object in the form of hash
|
|
257
|
+
def to_hash
|
|
258
|
+
hash = {}
|
|
259
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
260
|
+
value = self.send(attr)
|
|
261
|
+
if value.nil?
|
|
262
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
263
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
hash[param] = _to_hash(value)
|
|
267
|
+
end
|
|
268
|
+
hash
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
end
|
|
@@ -49,6 +49,9 @@ module Authentik::Api
|
|
|
49
49
|
|
|
50
50
|
attr_accessor :group
|
|
51
51
|
|
|
52
|
+
# Hide this application from the user's My applications page.
|
|
53
|
+
attr_accessor :meta_hide
|
|
54
|
+
|
|
52
55
|
class EnumAttributeValidator
|
|
53
56
|
attr_reader :datatype
|
|
54
57
|
attr_reader :allowable_values
|
|
@@ -90,7 +93,8 @@ module Authentik::Api
|
|
|
90
93
|
:'meta_description' => :'meta_description',
|
|
91
94
|
:'meta_publisher' => :'meta_publisher',
|
|
92
95
|
:'policy_engine_mode' => :'policy_engine_mode',
|
|
93
|
-
:'group' => :'group'
|
|
96
|
+
:'group' => :'group',
|
|
97
|
+
:'meta_hide' => :'meta_hide'
|
|
94
98
|
}
|
|
95
99
|
end
|
|
96
100
|
|
|
@@ -123,7 +127,8 @@ module Authentik::Api
|
|
|
123
127
|
:'meta_description' => :'String',
|
|
124
128
|
:'meta_publisher' => :'String',
|
|
125
129
|
:'policy_engine_mode' => :'PolicyEngineMode',
|
|
126
|
-
:'group' => :'String'
|
|
130
|
+
:'group' => :'String',
|
|
131
|
+
:'meta_hide' => :'Boolean'
|
|
127
132
|
}
|
|
128
133
|
end
|
|
129
134
|
|
|
@@ -241,6 +246,10 @@ module Authentik::Api
|
|
|
241
246
|
if attributes.key?(:'group')
|
|
242
247
|
self.group = attributes[:'group']
|
|
243
248
|
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'meta_hide')
|
|
251
|
+
self.meta_hide = attributes[:'meta_hide']
|
|
252
|
+
end
|
|
244
253
|
end
|
|
245
254
|
|
|
246
255
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -350,7 +359,8 @@ module Authentik::Api
|
|
|
350
359
|
meta_description == o.meta_description &&
|
|
351
360
|
meta_publisher == o.meta_publisher &&
|
|
352
361
|
policy_engine_mode == o.policy_engine_mode &&
|
|
353
|
-
group == o.group
|
|
362
|
+
group == o.group &&
|
|
363
|
+
meta_hide == o.meta_hide
|
|
354
364
|
end
|
|
355
365
|
|
|
356
366
|
# @see the `==` method
|
|
@@ -362,7 +372,7 @@ module Authentik::Api
|
|
|
362
372
|
# Calculates hash code according to all attributes.
|
|
363
373
|
# @return [Integer] Hash code
|
|
364
374
|
def hash
|
|
365
|
-
[pk, name, slug, provider, provider_obj, backchannel_providers, backchannel_providers_obj, launch_url, open_in_new_tab, meta_launch_url, meta_icon, meta_icon_url, meta_icon_themed_urls, meta_description, meta_publisher, policy_engine_mode, group].hash
|
|
375
|
+
[pk, name, slug, provider, provider_obj, backchannel_providers, backchannel_providers_obj, launch_url, open_in_new_tab, meta_launch_url, meta_icon, meta_icon_url, meta_icon_themed_urls, meta_description, meta_publisher, policy_engine_mode, group, meta_hide].hash
|
|
366
376
|
end
|
|
367
377
|
|
|
368
378
|
# Builds the object from hash
|
|
@@ -35,6 +35,9 @@ module Authentik::Api
|
|
|
35
35
|
|
|
36
36
|
attr_accessor :group
|
|
37
37
|
|
|
38
|
+
# Hide this application from the user's My applications page.
|
|
39
|
+
attr_accessor :meta_hide
|
|
40
|
+
|
|
38
41
|
class EnumAttributeValidator
|
|
39
42
|
attr_reader :datatype
|
|
40
43
|
attr_reader :allowable_values
|
|
@@ -70,7 +73,8 @@ module Authentik::Api
|
|
|
70
73
|
:'meta_description' => :'meta_description',
|
|
71
74
|
:'meta_publisher' => :'meta_publisher',
|
|
72
75
|
:'policy_engine_mode' => :'policy_engine_mode',
|
|
73
|
-
:'group' => :'group'
|
|
76
|
+
:'group' => :'group',
|
|
77
|
+
:'meta_hide' => :'meta_hide'
|
|
74
78
|
}
|
|
75
79
|
end
|
|
76
80
|
|
|
@@ -97,7 +101,8 @@ module Authentik::Api
|
|
|
97
101
|
:'meta_description' => :'String',
|
|
98
102
|
:'meta_publisher' => :'String',
|
|
99
103
|
:'policy_engine_mode' => :'PolicyEngineMode',
|
|
100
|
-
:'group' => :'String'
|
|
104
|
+
:'group' => :'String',
|
|
105
|
+
:'meta_hide' => :'Boolean'
|
|
101
106
|
}
|
|
102
107
|
end
|
|
103
108
|
|
|
@@ -173,6 +178,10 @@ module Authentik::Api
|
|
|
173
178
|
if attributes.key?(:'group')
|
|
174
179
|
self.group = attributes[:'group']
|
|
175
180
|
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'meta_hide')
|
|
183
|
+
self.meta_hide = attributes[:'meta_hide']
|
|
184
|
+
end
|
|
176
185
|
end
|
|
177
186
|
|
|
178
187
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -264,7 +273,8 @@ module Authentik::Api
|
|
|
264
273
|
meta_description == o.meta_description &&
|
|
265
274
|
meta_publisher == o.meta_publisher &&
|
|
266
275
|
policy_engine_mode == o.policy_engine_mode &&
|
|
267
|
-
group == o.group
|
|
276
|
+
group == o.group &&
|
|
277
|
+
meta_hide == o.meta_hide
|
|
268
278
|
end
|
|
269
279
|
|
|
270
280
|
# @see the `==` method
|
|
@@ -276,7 +286,7 @@ module Authentik::Api
|
|
|
276
286
|
# Calculates hash code according to all attributes.
|
|
277
287
|
# @return [Integer] Hash code
|
|
278
288
|
def hash
|
|
279
|
-
[name, slug, provider, backchannel_providers, open_in_new_tab, meta_launch_url, meta_icon, meta_description, meta_publisher, policy_engine_mode, group].hash
|
|
289
|
+
[name, slug, provider, backchannel_providers, open_in_new_tab, meta_launch_url, meta_icon, meta_description, meta_publisher, policy_engine_mode, group, meta_hide].hash
|
|
280
290
|
end
|
|
281
291
|
|
|
282
292
|
# Builds the object from hash
|
|
@@ -47,6 +47,8 @@ module Authentik::Api
|
|
|
47
47
|
# List of attributes with nullable: true
|
|
48
48
|
def self.openapi_nullable
|
|
49
49
|
Set.new([
|
|
50
|
+
:'brand',
|
|
51
|
+
:'model'
|
|
50
52
|
])
|
|
51
53
|
end
|
|
52
54
|
|
|
@@ -90,18 +92,10 @@ module Authentik::Api
|
|
|
90
92
|
def list_invalid_properties
|
|
91
93
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
92
94
|
invalid_properties = Array.new
|
|
93
|
-
if @brand.nil?
|
|
94
|
-
invalid_properties.push('invalid value for "brand", brand cannot be nil.')
|
|
95
|
-
end
|
|
96
|
-
|
|
97
95
|
if @family.nil?
|
|
98
96
|
invalid_properties.push('invalid value for "family", family cannot be nil.')
|
|
99
97
|
end
|
|
100
98
|
|
|
101
|
-
if @model.nil?
|
|
102
|
-
invalid_properties.push('invalid value for "model", model cannot be nil.')
|
|
103
|
-
end
|
|
104
|
-
|
|
105
99
|
invalid_properties
|
|
106
100
|
end
|
|
107
101
|
|
|
@@ -109,22 +103,10 @@ module Authentik::Api
|
|
|
109
103
|
# @return true if the model is valid
|
|
110
104
|
def valid?
|
|
111
105
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
112
|
-
return false if @brand.nil?
|
|
113
106
|
return false if @family.nil?
|
|
114
|
-
return false if @model.nil?
|
|
115
107
|
true
|
|
116
108
|
end
|
|
117
109
|
|
|
118
|
-
# Custom attribute writer method with validation
|
|
119
|
-
# @param [Object] brand Value to be assigned
|
|
120
|
-
def brand=(brand)
|
|
121
|
-
if brand.nil?
|
|
122
|
-
fail ArgumentError, 'brand cannot be nil'
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
@brand = brand
|
|
126
|
-
end
|
|
127
|
-
|
|
128
110
|
# Custom attribute writer method with validation
|
|
129
111
|
# @param [Object] family Value to be assigned
|
|
130
112
|
def family=(family)
|
|
@@ -135,16 +117,6 @@ module Authentik::Api
|
|
|
135
117
|
@family = family
|
|
136
118
|
end
|
|
137
119
|
|
|
138
|
-
# Custom attribute writer method with validation
|
|
139
|
-
# @param [Object] model Value to be assigned
|
|
140
|
-
def model=(model)
|
|
141
|
-
if model.nil?
|
|
142
|
-
fail ArgumentError, 'model cannot be nil'
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
@model = model
|
|
146
|
-
end
|
|
147
|
-
|
|
148
120
|
# Checks equality by comparing each attribute.
|
|
149
121
|
# @param [Object] Object to be compared
|
|
150
122
|
def ==(o)
|
|
@@ -55,6 +55,10 @@ module Authentik::Api
|
|
|
55
55
|
# List of attributes with nullable: true
|
|
56
56
|
def self.openapi_nullable
|
|
57
57
|
Set.new([
|
|
58
|
+
:'major',
|
|
59
|
+
:'minor',
|
|
60
|
+
:'patch',
|
|
61
|
+
:'patch_minor'
|
|
58
62
|
])
|
|
59
63
|
end
|
|
60
64
|
|
|
@@ -114,22 +118,6 @@ module Authentik::Api
|
|
|
114
118
|
invalid_properties.push('invalid value for "family", family cannot be nil.')
|
|
115
119
|
end
|
|
116
120
|
|
|
117
|
-
if @major.nil?
|
|
118
|
-
invalid_properties.push('invalid value for "major", major cannot be nil.')
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
if @minor.nil?
|
|
122
|
-
invalid_properties.push('invalid value for "minor", minor cannot be nil.')
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
if @patch.nil?
|
|
126
|
-
invalid_properties.push('invalid value for "patch", patch cannot be nil.')
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
if @patch_minor.nil?
|
|
130
|
-
invalid_properties.push('invalid value for "patch_minor", patch_minor cannot be nil.')
|
|
131
|
-
end
|
|
132
|
-
|
|
133
121
|
invalid_properties
|
|
134
122
|
end
|
|
135
123
|
|
|
@@ -138,10 +126,6 @@ module Authentik::Api
|
|
|
138
126
|
def valid?
|
|
139
127
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
140
128
|
return false if @family.nil?
|
|
141
|
-
return false if @major.nil?
|
|
142
|
-
return false if @minor.nil?
|
|
143
|
-
return false if @patch.nil?
|
|
144
|
-
return false if @patch_minor.nil?
|
|
145
129
|
true
|
|
146
130
|
end
|
|
147
131
|
|
|
@@ -155,46 +139,6 @@ module Authentik::Api
|
|
|
155
139
|
@family = family
|
|
156
140
|
end
|
|
157
141
|
|
|
158
|
-
# Custom attribute writer method with validation
|
|
159
|
-
# @param [Object] major Value to be assigned
|
|
160
|
-
def major=(major)
|
|
161
|
-
if major.nil?
|
|
162
|
-
fail ArgumentError, 'major cannot be nil'
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
@major = major
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
# Custom attribute writer method with validation
|
|
169
|
-
# @param [Object] minor Value to be assigned
|
|
170
|
-
def minor=(minor)
|
|
171
|
-
if minor.nil?
|
|
172
|
-
fail ArgumentError, 'minor cannot be nil'
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
@minor = minor
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
# Custom attribute writer method with validation
|
|
179
|
-
# @param [Object] patch Value to be assigned
|
|
180
|
-
def patch=(patch)
|
|
181
|
-
if patch.nil?
|
|
182
|
-
fail ArgumentError, 'patch cannot be nil'
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
@patch = patch
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
# Custom attribute writer method with validation
|
|
189
|
-
# @param [Object] patch_minor Value to be assigned
|
|
190
|
-
def patch_minor=(patch_minor)
|
|
191
|
-
if patch_minor.nil?
|
|
192
|
-
fail ArgumentError, 'patch_minor cannot be nil'
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
@patch_minor = patch_minor
|
|
196
|
-
end
|
|
197
|
-
|
|
198
142
|
# Checks equality by comparing each attribute.
|
|
199
143
|
# @param [Object] Object to be compared
|
|
200
144
|
def ==(o)
|
|
@@ -15,9 +15,10 @@ module Authentik::Api
|
|
|
15
15
|
REQUIRE_SUPERUSER = "require_superuser".freeze
|
|
16
16
|
REQUIRE_REDIRECT = "require_redirect".freeze
|
|
17
17
|
REQUIRE_OUTPOST = "require_outpost".freeze
|
|
18
|
+
REQUIRE_TOKEN = "require_token".freeze
|
|
18
19
|
|
|
19
20
|
def self.all_vars
|
|
20
|
-
@all_vars ||= [NONE, REQUIRE_AUTHENTICATED, REQUIRE_UNAUTHENTICATED, REQUIRE_SUPERUSER, REQUIRE_REDIRECT, REQUIRE_OUTPOST].freeze
|
|
21
|
+
@all_vars ||= [NONE, REQUIRE_AUTHENTICATED, REQUIRE_UNAUTHENTICATED, REQUIRE_SUPERUSER, REQUIRE_REDIRECT, REQUIRE_OUTPOST, REQUIRE_TOKEN].freeze
|
|
21
22
|
end
|
|
22
23
|
|
|
23
24
|
# Builds the enum from string
|
|
@@ -42,10 +42,20 @@ module Authentik::Api
|
|
|
42
42
|
# Enforce user verification for WebAuthn devices.
|
|
43
43
|
attr_accessor :webauthn_user_verification
|
|
44
44
|
|
|
45
|
+
attr_accessor :webauthn_hints
|
|
46
|
+
|
|
45
47
|
attr_accessor :webauthn_allowed_device_types
|
|
46
48
|
|
|
47
49
|
attr_accessor :webauthn_allowed_device_types_obj
|
|
48
50
|
|
|
51
|
+
attr_accessor :email_otp_throttling_factor
|
|
52
|
+
|
|
53
|
+
attr_accessor :sms_otp_throttling_factor
|
|
54
|
+
|
|
55
|
+
attr_accessor :totp_otp_throttling_factor
|
|
56
|
+
|
|
57
|
+
attr_accessor :static_otp_throttling_factor
|
|
58
|
+
|
|
49
59
|
class EnumAttributeValidator
|
|
50
60
|
attr_reader :datatype
|
|
51
61
|
attr_reader :allowable_values
|
|
@@ -83,8 +93,13 @@ module Authentik::Api
|
|
|
83
93
|
:'configuration_stages' => :'configuration_stages',
|
|
84
94
|
:'last_auth_threshold' => :'last_auth_threshold',
|
|
85
95
|
:'webauthn_user_verification' => :'webauthn_user_verification',
|
|
96
|
+
:'webauthn_hints' => :'webauthn_hints',
|
|
86
97
|
:'webauthn_allowed_device_types' => :'webauthn_allowed_device_types',
|
|
87
|
-
:'webauthn_allowed_device_types_obj' => :'webauthn_allowed_device_types_obj'
|
|
98
|
+
:'webauthn_allowed_device_types_obj' => :'webauthn_allowed_device_types_obj',
|
|
99
|
+
:'email_otp_throttling_factor' => :'email_otp_throttling_factor',
|
|
100
|
+
:'sms_otp_throttling_factor' => :'sms_otp_throttling_factor',
|
|
101
|
+
:'totp_otp_throttling_factor' => :'totp_otp_throttling_factor',
|
|
102
|
+
:'static_otp_throttling_factor' => :'static_otp_throttling_factor'
|
|
88
103
|
}
|
|
89
104
|
end
|
|
90
105
|
|
|
@@ -113,8 +128,13 @@ module Authentik::Api
|
|
|
113
128
|
:'configuration_stages' => :'Array<String>',
|
|
114
129
|
:'last_auth_threshold' => :'String',
|
|
115
130
|
:'webauthn_user_verification' => :'UserVerificationEnum',
|
|
131
|
+
:'webauthn_hints' => :'Array<WebAuthnHintEnum>',
|
|
116
132
|
:'webauthn_allowed_device_types' => :'Array<String>',
|
|
117
|
-
:'webauthn_allowed_device_types_obj' => :'Array<WebAuthnDeviceType>'
|
|
133
|
+
:'webauthn_allowed_device_types_obj' => :'Array<WebAuthnDeviceType>',
|
|
134
|
+
:'email_otp_throttling_factor' => :'Float',
|
|
135
|
+
:'sms_otp_throttling_factor' => :'Float',
|
|
136
|
+
:'totp_otp_throttling_factor' => :'Float',
|
|
137
|
+
:'static_otp_throttling_factor' => :'Float'
|
|
118
138
|
}
|
|
119
139
|
end
|
|
120
140
|
|
|
@@ -208,6 +228,12 @@ module Authentik::Api
|
|
|
208
228
|
self.webauthn_user_verification = attributes[:'webauthn_user_verification']
|
|
209
229
|
end
|
|
210
230
|
|
|
231
|
+
if attributes.key?(:'webauthn_hints')
|
|
232
|
+
if (value = attributes[:'webauthn_hints']).is_a?(Array)
|
|
233
|
+
self.webauthn_hints = value
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
211
237
|
if attributes.key?(:'webauthn_allowed_device_types')
|
|
212
238
|
if (value = attributes[:'webauthn_allowed_device_types']).is_a?(Array)
|
|
213
239
|
self.webauthn_allowed_device_types = value
|
|
@@ -221,6 +247,22 @@ module Authentik::Api
|
|
|
221
247
|
else
|
|
222
248
|
self.webauthn_allowed_device_types_obj = nil
|
|
223
249
|
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'email_otp_throttling_factor')
|
|
252
|
+
self.email_otp_throttling_factor = attributes[:'email_otp_throttling_factor']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'sms_otp_throttling_factor')
|
|
256
|
+
self.sms_otp_throttling_factor = attributes[:'sms_otp_throttling_factor']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'totp_otp_throttling_factor')
|
|
260
|
+
self.totp_otp_throttling_factor = attributes[:'totp_otp_throttling_factor']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.key?(:'static_otp_throttling_factor')
|
|
264
|
+
self.static_otp_throttling_factor = attributes[:'static_otp_throttling_factor']
|
|
265
|
+
end
|
|
224
266
|
end
|
|
225
267
|
|
|
226
268
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -375,8 +417,13 @@ module Authentik::Api
|
|
|
375
417
|
configuration_stages == o.configuration_stages &&
|
|
376
418
|
last_auth_threshold == o.last_auth_threshold &&
|
|
377
419
|
webauthn_user_verification == o.webauthn_user_verification &&
|
|
420
|
+
webauthn_hints == o.webauthn_hints &&
|
|
378
421
|
webauthn_allowed_device_types == o.webauthn_allowed_device_types &&
|
|
379
|
-
webauthn_allowed_device_types_obj == o.webauthn_allowed_device_types_obj
|
|
422
|
+
webauthn_allowed_device_types_obj == o.webauthn_allowed_device_types_obj &&
|
|
423
|
+
email_otp_throttling_factor == o.email_otp_throttling_factor &&
|
|
424
|
+
sms_otp_throttling_factor == o.sms_otp_throttling_factor &&
|
|
425
|
+
totp_otp_throttling_factor == o.totp_otp_throttling_factor &&
|
|
426
|
+
static_otp_throttling_factor == o.static_otp_throttling_factor
|
|
380
427
|
end
|
|
381
428
|
|
|
382
429
|
# @see the `==` method
|
|
@@ -388,7 +435,7 @@ module Authentik::Api
|
|
|
388
435
|
# Calculates hash code according to all attributes.
|
|
389
436
|
# @return [Integer] Hash code
|
|
390
437
|
def hash
|
|
391
|
-
[pk, name, component, verbose_name, verbose_name_plural, meta_model_name, flow_set, not_configured_action, device_classes, configuration_stages, last_auth_threshold, webauthn_user_verification, webauthn_allowed_device_types, webauthn_allowed_device_types_obj].hash
|
|
438
|
+
[pk, name, component, verbose_name, verbose_name_plural, meta_model_name, flow_set, not_configured_action, device_classes, configuration_stages, last_auth_threshold, webauthn_user_verification, webauthn_hints, webauthn_allowed_device_types, webauthn_allowed_device_types_obj, email_otp_throttling_factor, sms_otp_throttling_factor, totp_otp_throttling_factor, static_otp_throttling_factor].hash
|
|
392
439
|
end
|
|
393
440
|
|
|
394
441
|
# Builds the object from hash
|