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
|
@@ -9,19 +9,23 @@ require 'time'
|
|
|
9
9
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
class CurrentBrandFlags < ApiModelBase
|
|
12
|
-
|
|
12
|
+
# Configure if applications without any policy/group/user bindings should be accessible to any user.
|
|
13
|
+
attr_accessor :core_default_app_access
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
# Include additional information in audit logs, may incur a performance penalty.
|
|
16
|
+
attr_accessor :enterprise_audit_include_expanded_diff
|
|
15
17
|
|
|
18
|
+
# Upon successful authentication, re-start authentication in other open tabs.
|
|
16
19
|
attr_accessor :flows_continuous_login
|
|
17
20
|
|
|
21
|
+
# Refresh other tabs after successful authentication.
|
|
18
22
|
attr_accessor :flows_refresh_others
|
|
19
23
|
|
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
25
|
def self.attribute_map
|
|
22
26
|
{
|
|
27
|
+
:'core_default_app_access' => :'core_default_app_access',
|
|
23
28
|
:'enterprise_audit_include_expanded_diff' => :'enterprise_audit_include_expanded_diff',
|
|
24
|
-
:'policies_buffered_access_view' => :'policies_buffered_access_view',
|
|
25
29
|
:'flows_continuous_login' => :'flows_continuous_login',
|
|
26
30
|
:'flows_refresh_others' => :'flows_refresh_others'
|
|
27
31
|
}
|
|
@@ -40,8 +44,8 @@ module Authentik::Api
|
|
|
40
44
|
# Attribute type mapping.
|
|
41
45
|
def self.openapi_types
|
|
42
46
|
{
|
|
47
|
+
:'core_default_app_access' => :'Boolean',
|
|
43
48
|
:'enterprise_audit_include_expanded_diff' => :'Boolean',
|
|
44
|
-
:'policies_buffered_access_view' => :'Boolean',
|
|
45
49
|
:'flows_continuous_login' => :'Boolean',
|
|
46
50
|
:'flows_refresh_others' => :'Boolean'
|
|
47
51
|
}
|
|
@@ -69,16 +73,16 @@ module Authentik::Api
|
|
|
69
73
|
h[k.to_sym] = v
|
|
70
74
|
}
|
|
71
75
|
|
|
72
|
-
if attributes.key?(:'
|
|
73
|
-
self.
|
|
76
|
+
if attributes.key?(:'core_default_app_access')
|
|
77
|
+
self.core_default_app_access = attributes[:'core_default_app_access']
|
|
74
78
|
else
|
|
75
|
-
self.
|
|
79
|
+
self.core_default_app_access = nil
|
|
76
80
|
end
|
|
77
81
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
self.
|
|
82
|
+
if attributes.key?(:'enterprise_audit_include_expanded_diff')
|
|
83
|
+
self.enterprise_audit_include_expanded_diff = attributes[:'enterprise_audit_include_expanded_diff']
|
|
80
84
|
else
|
|
81
|
-
self.
|
|
85
|
+
self.enterprise_audit_include_expanded_diff = nil
|
|
82
86
|
end
|
|
83
87
|
|
|
84
88
|
if attributes.key?(:'flows_continuous_login')
|
|
@@ -99,12 +103,12 @@ module Authentik::Api
|
|
|
99
103
|
def list_invalid_properties
|
|
100
104
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
101
105
|
invalid_properties = Array.new
|
|
102
|
-
if @
|
|
103
|
-
invalid_properties.push('invalid value for "
|
|
106
|
+
if @core_default_app_access.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "core_default_app_access", core_default_app_access cannot be nil.')
|
|
104
108
|
end
|
|
105
109
|
|
|
106
|
-
if @
|
|
107
|
-
invalid_properties.push('invalid value for "
|
|
110
|
+
if @enterprise_audit_include_expanded_diff.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "enterprise_audit_include_expanded_diff", enterprise_audit_include_expanded_diff cannot be nil.')
|
|
108
112
|
end
|
|
109
113
|
|
|
110
114
|
if @flows_continuous_login.nil?
|
|
@@ -122,31 +126,31 @@ module Authentik::Api
|
|
|
122
126
|
# @return true if the model is valid
|
|
123
127
|
def valid?
|
|
124
128
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
129
|
+
return false if @core_default_app_access.nil?
|
|
125
130
|
return false if @enterprise_audit_include_expanded_diff.nil?
|
|
126
|
-
return false if @policies_buffered_access_view.nil?
|
|
127
131
|
return false if @flows_continuous_login.nil?
|
|
128
132
|
return false if @flows_refresh_others.nil?
|
|
129
133
|
true
|
|
130
134
|
end
|
|
131
135
|
|
|
132
136
|
# Custom attribute writer method with validation
|
|
133
|
-
# @param [Object]
|
|
134
|
-
def
|
|
135
|
-
if
|
|
136
|
-
fail ArgumentError, '
|
|
137
|
+
# @param [Object] core_default_app_access Value to be assigned
|
|
138
|
+
def core_default_app_access=(core_default_app_access)
|
|
139
|
+
if core_default_app_access.nil?
|
|
140
|
+
fail ArgumentError, 'core_default_app_access cannot be nil'
|
|
137
141
|
end
|
|
138
142
|
|
|
139
|
-
@
|
|
143
|
+
@core_default_app_access = core_default_app_access
|
|
140
144
|
end
|
|
141
145
|
|
|
142
146
|
# Custom attribute writer method with validation
|
|
143
|
-
# @param [Object]
|
|
144
|
-
def
|
|
145
|
-
if
|
|
146
|
-
fail ArgumentError, '
|
|
147
|
+
# @param [Object] enterprise_audit_include_expanded_diff Value to be assigned
|
|
148
|
+
def enterprise_audit_include_expanded_diff=(enterprise_audit_include_expanded_diff)
|
|
149
|
+
if enterprise_audit_include_expanded_diff.nil?
|
|
150
|
+
fail ArgumentError, 'enterprise_audit_include_expanded_diff cannot be nil'
|
|
147
151
|
end
|
|
148
152
|
|
|
149
|
-
@
|
|
153
|
+
@enterprise_audit_include_expanded_diff = enterprise_audit_include_expanded_diff
|
|
150
154
|
end
|
|
151
155
|
|
|
152
156
|
# Custom attribute writer method with validation
|
|
@@ -174,8 +178,8 @@ module Authentik::Api
|
|
|
174
178
|
def ==(o)
|
|
175
179
|
return true if self.equal?(o)
|
|
176
180
|
self.class == o.class &&
|
|
181
|
+
core_default_app_access == o.core_default_app_access &&
|
|
177
182
|
enterprise_audit_include_expanded_diff == o.enterprise_audit_include_expanded_diff &&
|
|
178
|
-
policies_buffered_access_view == o.policies_buffered_access_view &&
|
|
179
183
|
flows_continuous_login == o.flows_continuous_login &&
|
|
180
184
|
flows_refresh_others == o.flows_refresh_others
|
|
181
185
|
end
|
|
@@ -189,7 +193,7 @@ module Authentik::Api
|
|
|
189
193
|
# Calculates hash code according to all attributes.
|
|
190
194
|
# @return [Integer] Hash code
|
|
191
195
|
def hash
|
|
192
|
-
[
|
|
196
|
+
[core_default_app_access, enterprise_audit_include_expanded_diff, flows_continuous_login, flows_refresh_others].hash
|
|
193
197
|
end
|
|
194
198
|
|
|
195
199
|
# Builds the object from hash
|
|
@@ -11,9 +11,11 @@ module Authentik::Api
|
|
|
11
11
|
class DeliveryMethodEnum
|
|
12
12
|
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_PUSH = "https://schemas.openid.net/secevent/risc/delivery-method/push".freeze
|
|
13
13
|
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_POLL = "https://schemas.openid.net/secevent/risc/delivery-method/poll".freeze
|
|
14
|
+
URN_IETF_RFC_8935 = "urn:ietf:rfc:8935".freeze
|
|
15
|
+
URN_IETF_RFC_8936 = "urn:ietf:rfc:8936".freeze
|
|
14
16
|
|
|
15
17
|
def self.all_vars
|
|
16
|
-
@all_vars ||= [HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_PUSH, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_POLL].freeze
|
|
18
|
+
@all_vars ||= [HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_PUSH, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_POLL, URN_IETF_RFC_8935, URN_IETF_RFC_8936].freeze
|
|
17
19
|
end
|
|
18
20
|
|
|
19
21
|
# Builds the enum from string
|
|
@@ -105,6 +105,9 @@ module Authentik::Api
|
|
|
105
105
|
:'policy',
|
|
106
106
|
:'group',
|
|
107
107
|
:'user',
|
|
108
|
+
:'policy_obj',
|
|
109
|
+
:'group_obj',
|
|
110
|
+
:'user_obj',
|
|
108
111
|
:'connector',
|
|
109
112
|
])
|
|
110
113
|
end
|
|
@@ -215,18 +218,6 @@ module Authentik::Api
|
|
|
215
218
|
invalid_properties.push('invalid value for "pk", pk cannot be nil.')
|
|
216
219
|
end
|
|
217
220
|
|
|
218
|
-
if @policy_obj.nil?
|
|
219
|
-
invalid_properties.push('invalid value for "policy_obj", policy_obj cannot be nil.')
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
if @group_obj.nil?
|
|
223
|
-
invalid_properties.push('invalid value for "group_obj", group_obj cannot be nil.')
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
if @user_obj.nil?
|
|
227
|
-
invalid_properties.push('invalid value for "user_obj", user_obj cannot be nil.')
|
|
228
|
-
end
|
|
229
|
-
|
|
230
221
|
if @target.nil?
|
|
231
222
|
invalid_properties.push('invalid value for "target", target cannot be nil.')
|
|
232
223
|
end
|
|
@@ -263,9 +254,6 @@ module Authentik::Api
|
|
|
263
254
|
def valid?
|
|
264
255
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
265
256
|
return false if @pk.nil?
|
|
266
|
-
return false if @policy_obj.nil?
|
|
267
|
-
return false if @group_obj.nil?
|
|
268
|
-
return false if @user_obj.nil?
|
|
269
257
|
return false if @target.nil?
|
|
270
258
|
return false if @order.nil?
|
|
271
259
|
return false if @order > 2147483647
|
|
@@ -286,36 +274,6 @@ module Authentik::Api
|
|
|
286
274
|
@pk = pk
|
|
287
275
|
end
|
|
288
276
|
|
|
289
|
-
# Custom attribute writer method with validation
|
|
290
|
-
# @param [Object] policy_obj Value to be assigned
|
|
291
|
-
def policy_obj=(policy_obj)
|
|
292
|
-
if policy_obj.nil?
|
|
293
|
-
fail ArgumentError, 'policy_obj cannot be nil'
|
|
294
|
-
end
|
|
295
|
-
|
|
296
|
-
@policy_obj = policy_obj
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
# Custom attribute writer method with validation
|
|
300
|
-
# @param [Object] group_obj Value to be assigned
|
|
301
|
-
def group_obj=(group_obj)
|
|
302
|
-
if group_obj.nil?
|
|
303
|
-
fail ArgumentError, 'group_obj cannot be nil'
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
@group_obj = group_obj
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
# Custom attribute writer method with validation
|
|
310
|
-
# @param [Object] user_obj Value to be assigned
|
|
311
|
-
def user_obj=(user_obj)
|
|
312
|
-
if user_obj.nil?
|
|
313
|
-
fail ArgumentError, 'user_obj cannot be nil'
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
@user_obj = user_obj
|
|
317
|
-
end
|
|
318
|
-
|
|
319
277
|
# Custom attribute writer method with validation
|
|
320
278
|
# @param [Object] target Value to be assigned
|
|
321
279
|
def target=(target)
|
|
@@ -44,6 +44,8 @@ module Authentik::Api
|
|
|
44
44
|
# Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched.
|
|
45
45
|
attr_accessor :model
|
|
46
46
|
|
|
47
|
+
attr_accessor :query
|
|
48
|
+
|
|
47
49
|
class EnumAttributeValidator
|
|
48
50
|
attr_reader :datatype
|
|
49
51
|
attr_reader :allowable_values
|
|
@@ -80,7 +82,8 @@ module Authentik::Api
|
|
|
80
82
|
:'action' => :'action',
|
|
81
83
|
:'client_ip' => :'client_ip',
|
|
82
84
|
:'app' => :'app',
|
|
83
|
-
:'model' => :'model'
|
|
85
|
+
:'model' => :'model',
|
|
86
|
+
:'query' => :'query'
|
|
84
87
|
}
|
|
85
88
|
end
|
|
86
89
|
|
|
@@ -108,7 +111,8 @@ module Authentik::Api
|
|
|
108
111
|
:'action' => :'EventActions',
|
|
109
112
|
:'client_ip' => :'String',
|
|
110
113
|
:'app' => :'AppEnum',
|
|
111
|
-
:'model' => :'ModelEnum'
|
|
114
|
+
:'model' => :'ModelEnum',
|
|
115
|
+
:'query' => :'String'
|
|
112
116
|
}
|
|
113
117
|
end
|
|
114
118
|
|
|
@@ -118,7 +122,8 @@ module Authentik::Api
|
|
|
118
122
|
:'action',
|
|
119
123
|
:'client_ip',
|
|
120
124
|
:'app',
|
|
121
|
-
:'model'
|
|
125
|
+
:'model',
|
|
126
|
+
:'query'
|
|
122
127
|
])
|
|
123
128
|
end
|
|
124
129
|
|
|
@@ -199,6 +204,10 @@ module Authentik::Api
|
|
|
199
204
|
if attributes.key?(:'model')
|
|
200
205
|
self.model = attributes[:'model']
|
|
201
206
|
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'query')
|
|
209
|
+
self.query = attributes[:'query']
|
|
210
|
+
end
|
|
202
211
|
end
|
|
203
212
|
|
|
204
213
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -337,7 +346,8 @@ module Authentik::Api
|
|
|
337
346
|
action == o.action &&
|
|
338
347
|
client_ip == o.client_ip &&
|
|
339
348
|
app == o.app &&
|
|
340
|
-
model == o.model
|
|
349
|
+
model == o.model &&
|
|
350
|
+
query == o.query
|
|
341
351
|
end
|
|
342
352
|
|
|
343
353
|
# @see the `==` method
|
|
@@ -349,7 +359,7 @@ module Authentik::Api
|
|
|
349
359
|
# Calculates hash code according to all attributes.
|
|
350
360
|
# @return [Integer] Hash code
|
|
351
361
|
def hash
|
|
352
|
-
[pk, name, execution_logging, component, verbose_name, verbose_name_plural, meta_model_name, bound_to, action, client_ip, app, model].hash
|
|
362
|
+
[pk, name, execution_logging, component, verbose_name, verbose_name_plural, meta_model_name, bound_to, action, client_ip, app, model, query].hash
|
|
353
363
|
end
|
|
354
364
|
|
|
355
365
|
# Builds the object from hash
|
|
@@ -27,6 +27,8 @@ module Authentik::Api
|
|
|
27
27
|
# Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched.
|
|
28
28
|
attr_accessor :model
|
|
29
29
|
|
|
30
|
+
attr_accessor :query
|
|
31
|
+
|
|
30
32
|
class EnumAttributeValidator
|
|
31
33
|
attr_reader :datatype
|
|
32
34
|
attr_reader :allowable_values
|
|
@@ -57,7 +59,8 @@ module Authentik::Api
|
|
|
57
59
|
:'action' => :'action',
|
|
58
60
|
:'client_ip' => :'client_ip',
|
|
59
61
|
:'app' => :'app',
|
|
60
|
-
:'model' => :'model'
|
|
62
|
+
:'model' => :'model',
|
|
63
|
+
:'query' => :'query'
|
|
61
64
|
}
|
|
62
65
|
end
|
|
63
66
|
|
|
@@ -79,7 +82,8 @@ module Authentik::Api
|
|
|
79
82
|
:'action' => :'EventActions',
|
|
80
83
|
:'client_ip' => :'String',
|
|
81
84
|
:'app' => :'AppEnum',
|
|
82
|
-
:'model' => :'ModelEnum'
|
|
85
|
+
:'model' => :'ModelEnum',
|
|
86
|
+
:'query' => :'String'
|
|
83
87
|
}
|
|
84
88
|
end
|
|
85
89
|
|
|
@@ -89,7 +93,8 @@ module Authentik::Api
|
|
|
89
93
|
:'action',
|
|
90
94
|
:'client_ip',
|
|
91
95
|
:'app',
|
|
92
|
-
:'model'
|
|
96
|
+
:'model',
|
|
97
|
+
:'query'
|
|
93
98
|
])
|
|
94
99
|
end
|
|
95
100
|
|
|
@@ -134,6 +139,10 @@ module Authentik::Api
|
|
|
134
139
|
if attributes.key?(:'model')
|
|
135
140
|
self.model = attributes[:'model']
|
|
136
141
|
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'query')
|
|
144
|
+
self.query = attributes[:'query']
|
|
145
|
+
end
|
|
137
146
|
end
|
|
138
147
|
|
|
139
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -153,6 +162,10 @@ module Authentik::Api
|
|
|
153
162
|
invalid_properties.push('invalid value for "client_ip", the character length must be greater than or equal to 1.')
|
|
154
163
|
end
|
|
155
164
|
|
|
165
|
+
if !@query.nil? && @query.to_s.length < 1
|
|
166
|
+
invalid_properties.push('invalid value for "query", the character length must be greater than or equal to 1.')
|
|
167
|
+
end
|
|
168
|
+
|
|
156
169
|
invalid_properties
|
|
157
170
|
end
|
|
158
171
|
|
|
@@ -163,6 +176,7 @@ module Authentik::Api
|
|
|
163
176
|
return false if @name.nil?
|
|
164
177
|
return false if @name.to_s.length < 1
|
|
165
178
|
return false if !@client_ip.nil? && @client_ip.to_s.length < 1
|
|
179
|
+
return false if !@query.nil? && @query.to_s.length < 1
|
|
166
180
|
true
|
|
167
181
|
end
|
|
168
182
|
|
|
@@ -190,6 +204,16 @@ module Authentik::Api
|
|
|
190
204
|
@client_ip = client_ip
|
|
191
205
|
end
|
|
192
206
|
|
|
207
|
+
# Custom attribute writer method with validation
|
|
208
|
+
# @param [Object] query Value to be assigned
|
|
209
|
+
def query=(query)
|
|
210
|
+
if !query.nil? && query.to_s.length < 1
|
|
211
|
+
fail ArgumentError, 'invalid value for "query", the character length must be greater than or equal to 1.'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
@query = query
|
|
215
|
+
end
|
|
216
|
+
|
|
193
217
|
# Checks equality by comparing each attribute.
|
|
194
218
|
# @param [Object] Object to be compared
|
|
195
219
|
def ==(o)
|
|
@@ -200,7 +224,8 @@ module Authentik::Api
|
|
|
200
224
|
action == o.action &&
|
|
201
225
|
client_ip == o.client_ip &&
|
|
202
226
|
app == o.app &&
|
|
203
|
-
model == o.model
|
|
227
|
+
model == o.model &&
|
|
228
|
+
query == o.query
|
|
204
229
|
end
|
|
205
230
|
|
|
206
231
|
# @see the `==` method
|
|
@@ -212,7 +237,7 @@ module Authentik::Api
|
|
|
212
237
|
# Calculates hash code according to all attributes.
|
|
213
238
|
# @return [Integer] Hash code
|
|
214
239
|
def hash
|
|
215
|
-
[name, execution_logging, action, client_ip, app, model].hash
|
|
240
|
+
[name, execution_logging, action, client_ip, app, model, query].hash
|
|
216
241
|
end
|
|
217
242
|
|
|
218
243
|
# Builds the object from hash
|
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
# Count of unique users in events and aggregated counts per specified deltas
|
|
12
|
+
class EventStats < ApiModelBase
|
|
13
|
+
attr_accessor :unique_users
|
|
14
|
+
|
|
15
|
+
attr_accessor :count_step
|
|
16
|
+
|
|
17
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
|
+
def self.attribute_map
|
|
19
|
+
{
|
|
20
|
+
:'unique_users' => :'unique_users',
|
|
21
|
+
:'count_step' => :'count_step'
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Returns attribute mapping this model knows about
|
|
26
|
+
def self.acceptable_attribute_map
|
|
27
|
+
attribute_map
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns all the JSON keys this model knows about
|
|
31
|
+
def self.acceptable_attributes
|
|
32
|
+
acceptable_attribute_map.values
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
def self.openapi_types
|
|
37
|
+
{
|
|
38
|
+
:'unique_users' => :'Integer',
|
|
39
|
+
:'count_step' => :'Hash<String, Object>'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# List of attributes with nullable: true
|
|
44
|
+
def self.openapi_nullable
|
|
45
|
+
Set.new([
|
|
46
|
+
])
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::EventStats` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
59
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::EventStats`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
61
|
+
end
|
|
62
|
+
h[k.to_sym] = v
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if attributes.key?(:'unique_users')
|
|
66
|
+
self.unique_users = attributes[:'unique_users']
|
|
67
|
+
else
|
|
68
|
+
self.unique_users = nil
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'count_step')
|
|
72
|
+
if (value = attributes[:'count_step']).is_a?(Hash)
|
|
73
|
+
self.count_step = value
|
|
74
|
+
end
|
|
75
|
+
else
|
|
76
|
+
self.count_step = nil
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
81
|
+
# @return Array for valid properties with the reasons
|
|
82
|
+
def list_invalid_properties
|
|
83
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
84
|
+
invalid_properties = Array.new
|
|
85
|
+
if @unique_users.nil?
|
|
86
|
+
invalid_properties.push('invalid value for "unique_users", unique_users cannot be nil.')
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if @count_step.nil?
|
|
90
|
+
invalid_properties.push('invalid value for "count_step", count_step cannot be nil.')
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
invalid_properties
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Check to see if the all the properties in the model are valid
|
|
97
|
+
# @return true if the model is valid
|
|
98
|
+
def valid?
|
|
99
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
100
|
+
return false if @unique_users.nil?
|
|
101
|
+
return false if @count_step.nil?
|
|
102
|
+
true
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Custom attribute writer method with validation
|
|
106
|
+
# @param [Object] unique_users Value to be assigned
|
|
107
|
+
def unique_users=(unique_users)
|
|
108
|
+
if unique_users.nil?
|
|
109
|
+
fail ArgumentError, 'unique_users cannot be nil'
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
@unique_users = unique_users
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Custom attribute writer method with validation
|
|
116
|
+
# @param [Object] count_step Value to be assigned
|
|
117
|
+
def count_step=(count_step)
|
|
118
|
+
if count_step.nil?
|
|
119
|
+
fail ArgumentError, 'count_step cannot be nil'
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
@count_step = count_step
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Checks equality by comparing each attribute.
|
|
126
|
+
# @param [Object] Object to be compared
|
|
127
|
+
def ==(o)
|
|
128
|
+
return true if self.equal?(o)
|
|
129
|
+
self.class == o.class &&
|
|
130
|
+
unique_users == o.unique_users &&
|
|
131
|
+
count_step == o.count_step
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# @see the `==` method
|
|
135
|
+
# @param [Object] Object to be compared
|
|
136
|
+
def eql?(o)
|
|
137
|
+
self == o
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Calculates hash code according to all attributes.
|
|
141
|
+
# @return [Integer] Hash code
|
|
142
|
+
def hash
|
|
143
|
+
[unique_users, count_step].hash
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Builds the object from hash
|
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
148
|
+
# @return [Object] Returns the model itself
|
|
149
|
+
def self.build_from_hash(attributes)
|
|
150
|
+
return nil unless attributes.is_a?(Hash)
|
|
151
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
152
|
+
transformed_hash = {}
|
|
153
|
+
openapi_types.each_pair do |key, type|
|
|
154
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
155
|
+
transformed_hash["#{key}"] = nil
|
|
156
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
157
|
+
# check to ensure the input is an array given that the attribute
|
|
158
|
+
# is documented as an array but the input is not
|
|
159
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
160
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
161
|
+
end
|
|
162
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
163
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
new(transformed_hash)
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Returns the object in the form of hash
|
|
170
|
+
# @return [Hash] Returns the object in the form of hash
|
|
171
|
+
def to_hash
|
|
172
|
+
hash = {}
|
|
173
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
174
|
+
value = self.send(attr)
|
|
175
|
+
if value.nil?
|
|
176
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
177
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
hash[param] = _to_hash(value)
|
|
181
|
+
end
|
|
182
|
+
hash
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
end
|
|
@@ -10,11 +10,17 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
class EventsRequestedEnum
|
|
12
12
|
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_REVOKED = "https://schemas.openid.net/secevent/caep/event-type/session-revoked".freeze
|
|
13
|
+
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_TOKEN_CLAIMS_CHANGE = "https://schemas.openid.net/secevent/caep/event-type/token-claims-change".freeze
|
|
13
14
|
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_CREDENTIAL_CHANGE = "https://schemas.openid.net/secevent/caep/event-type/credential-change".freeze
|
|
15
|
+
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_ASSURANCE_LEVEL_CHANGE = "https://schemas.openid.net/secevent/caep/event-type/assurance-level-change".freeze
|
|
16
|
+
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_DEVICE_COMPLIANCE_CHANGE = "https://schemas.openid.net/secevent/caep/event-type/device-compliance-change".freeze
|
|
17
|
+
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_ESTABLISHED = "https://schemas.openid.net/secevent/caep/event-type/session-established".freeze
|
|
18
|
+
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_PRESENTED = "https://schemas.openid.net/secevent/caep/event-type/session-presented".freeze
|
|
19
|
+
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_RISK_LEVEL_CHANGE = "https://schemas.openid.net/secevent/caep/event-type/risk-level-change".freeze
|
|
14
20
|
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_SSF_EVENT_TYPE_VERIFICATION = "https://schemas.openid.net/secevent/ssf/event-type/verification".freeze
|
|
15
21
|
|
|
16
22
|
def self.all_vars
|
|
17
|
-
@all_vars ||= [HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_REVOKED, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_CREDENTIAL_CHANGE, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_SSF_EVENT_TYPE_VERIFICATION].freeze
|
|
23
|
+
@all_vars ||= [HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_REVOKED, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_TOKEN_CLAIMS_CHANGE, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_CREDENTIAL_CHANGE, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_ASSURANCE_LEVEL_CHANGE, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_DEVICE_COMPLIANCE_CHANGE, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_ESTABLISHED, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_PRESENTED, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_RISK_LEVEL_CHANGE, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_SSF_EVENT_TYPE_VERIFICATION].freeze
|
|
18
24
|
end
|
|
19
25
|
|
|
20
26
|
# Builds the enum from string
|
|
@@ -0,0 +1,34 @@
|
|
|
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 ForceBindingEnum
|
|
12
|
+
URN_OASIS_NAMES_TC_SAML_2_0_BINDINGS_HTTP_POST = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST".freeze
|
|
13
|
+
URN_OASIS_NAMES_TC_SAML_2_0_BINDINGS_HTTP_REDIRECT = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect".freeze
|
|
14
|
+
|
|
15
|
+
def self.all_vars
|
|
16
|
+
@all_vars ||= [URN_OASIS_NAMES_TC_SAML_2_0_BINDINGS_HTTP_POST, URN_OASIS_NAMES_TC_SAML_2_0_BINDINGS_HTTP_REDIRECT].freeze
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Builds the enum from string
|
|
20
|
+
# @param [String] The enum value in the form of the string
|
|
21
|
+
# @return [String] The enum value
|
|
22
|
+
def self.build_from_hash(value)
|
|
23
|
+
new.build_from_hash(value)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def build_from_hash(value)
|
|
30
|
+
return value if ForceBindingEnum.all_vars.include?(value)
|
|
31
|
+
raise "Invalid ENUM value #{value} for class #ForceBindingEnum"
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -8,13 +8,12 @@ require 'date'
|
|
|
8
8
|
require 'time'
|
|
9
9
|
|
|
10
10
|
module Authentik::Api
|
|
11
|
-
class
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
REQUIRED = "required".freeze
|
|
11
|
+
class FormatEnum
|
|
12
|
+
JSON = "json".freeze
|
|
13
|
+
YAML = "yaml".freeze
|
|
15
14
|
|
|
16
15
|
def self.all_vars
|
|
17
|
-
@all_vars ||= [
|
|
16
|
+
@all_vars ||= [JSON, YAML].freeze
|
|
18
17
|
end
|
|
19
18
|
|
|
20
19
|
# Builds the enum from string
|
|
@@ -28,8 +27,8 @@ module Authentik::Api
|
|
|
28
27
|
# @param [String] The enum value in the form of the string
|
|
29
28
|
# @return [String] The enum value
|
|
30
29
|
def build_from_hash(value)
|
|
31
|
-
return value if
|
|
32
|
-
raise "Invalid ENUM value #{value} for class #
|
|
30
|
+
return value if FormatEnum.all_vars.include?(value)
|
|
31
|
+
raise "Invalid ENUM value #{value} for class #FormatEnum"
|
|
33
32
|
end
|
|
34
33
|
end
|
|
35
34
|
end
|