authentik-api 2026.2.3 → 2026.5.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/README_API.md +66 -14
- data/lib/authentik/api/api/admin_api.rb +4 -12
- data/lib/authentik/api/api/core_api.rb +143 -18
- data/lib/authentik/api/api/crypto_api.rb +2 -6
- data/lib/authentik/api/api/endpoints_api.rb +1577 -656
- data/lib/authentik/api/api/events_api.rb +121 -38
- data/lib/authentik/api/api/flows_api.rb +8 -90
- data/lib/authentik/api/api/lifecycle_api.rb +22 -13
- data/lib/authentik/api/api/managed_api.rb +73 -0
- data/lib/authentik/api/api/policies_api.rb +5 -6
- data/lib/authentik/api/api/providers_api.rb +46 -108
- data/lib/authentik/api/api/rbac_api.rb +0 -5
- data/lib/authentik/api/api/schema_api.rb +4 -12
- data/lib/authentik/api/api/sources_api.rb +35 -96
- data/lib/authentik/api/api/ssf_api.rb +63 -6
- data/lib/authentik/api/api/stages_api.rb +581 -102
- data/lib/authentik/api/api/tasks_api.rb +5 -13
- data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
- data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
- data/lib/authentik/api/models/app_enum.rb +3 -2
- data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
- data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
- data/lib/authentik/api/models/application.rb +14 -4
- data/lib/authentik/api/models/application_request.rb +14 -4
- data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
- data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
- data/lib/authentik/api/models/authentication_enum.rb +2 -1
- data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
- data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
- data/lib/authentik/api/models/brand.rb +11 -1
- data/lib/authentik/api/models/brand_request.rb +11 -1
- data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
- data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
- data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
- data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/consent_stage.rb +1 -1
- data/lib/authentik/api/models/consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/country_code_enum.rb +3 -3
- data/lib/authentik/api/models/current_brand.rb +10 -1
- data/lib/authentik/api/models/current_brand_flags.rb +31 -27
- data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
- data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
- data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/event_stats.rb +187 -0
- data/lib/authentik/api/models/event_volume.rb +1 -1
- data/lib/authentik/api/models/events_requested_enum.rb +7 -1
- data/lib/authentik/api/models/force_binding_enum.rb +34 -0
- data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
- data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
- data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
- data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
- data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
- data/lib/authentik/api/models/grant_types_enum.rb +39 -0
- data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
- data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
- data/lib/authentik/api/models/key_type_enum.rb +3 -3
- data/lib/authentik/api/models/lang_enum.rb +131 -0
- data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
- data/lib/authentik/api/models/logout_url.rb +209 -0
- data/lib/authentik/api/models/model_enum.rb +3 -1
- data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
- data/lib/authentik/api/models/notification_transport.rb +13 -2
- data/lib/authentik/api/models/notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/operating_system.rb +0 -17
- data/lib/authentik/api/models/operating_system_request.rb +2 -9
- data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
- data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
- data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
- data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
- data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
- data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
- data/lib/authentik/api/models/patched_application_request.rb +14 -4
- data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/patched_brand_request.rb +11 -1
- data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
- data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
- data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
- data/lib/authentik/api/models/redirect_uri.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
- data/lib/authentik/api/models/related_rule.rb +250 -0
- data/lib/authentik/api/models/saml_provider.rb +98 -8
- data/lib/authentik/api/models/saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/saml_source.rb +11 -1
- data/lib/authentik/api/models/saml_source_request.rb +11 -1
- data/lib/authentik/api/models/ssf_provider.rb +41 -4
- data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/ssf_stream.rb +10 -1
- data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
- data/lib/authentik/api/models/task.rb +1 -1
- data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
- data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/usage_enum.rb +33 -0
- data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
- data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
- data/lib/authentik/api/models/vendor_enum.rb +2 -1
- data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +2 -2
- data/spec/api/core_api_spec.rb +27 -3
- data/spec/api/crypto_api_spec.rb +1 -1
- data/spec/api/endpoints_api_spec.rb +167 -0
- data/spec/api/events_api_spec.rb +33 -7
- data/spec/api/flows_api_spec.rb +4 -16
- data/spec/api/lifecycle_api_spec.rb +6 -3
- data/spec/api/managed_api_spec.rb +13 -0
- data/spec/api/policies_api_spec.rb +2 -1
- data/spec/api/providers_api_spec.rb +21 -19
- data/spec/api/schema_api_spec.rb +2 -2
- data/spec/api/sources_api_spec.rb +17 -16
- data/spec/api/ssf_api_spec.rb +12 -1
- data/spec/api/stages_api_spec.rb +117 -18
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/account_lockdown_stage_spec.rb +96 -0
- data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
- data/spec/models/application_request_spec.rb +6 -0
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/authenticator_validate_stage_spec.rb +30 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
- data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
- data/spec/models/brand_request_spec.rb +6 -0
- data/spec/models/brand_spec.rb +6 -0
- data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
- data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
- data/spec/models/current_brand_flags_spec.rb +2 -2
- data/spec/models/current_brand_spec.rb +6 -0
- data/spec/models/event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/event_matcher_policy_spec.rb +6 -0
- data/spec/models/event_stats_spec.rb +36 -0
- data/spec/models/force_binding_enum_spec.rb +24 -0
- data/spec/models/format_enum_spec.rb +24 -0
- data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
- data/spec/models/google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/google_chrome_connector_spec.rb +78 -0
- data/spec/models/grant_types_enum_spec.rb +24 -0
- data/spec/models/group_ldap_source_connection_spec.rb +6 -0
- data/spec/models/invitation_send_email_request_spec.rb +48 -0
- data/spec/models/lang_enum_spec.rb +24 -0
- data/spec/models/lifecycle_iteration_spec.rb +2 -14
- data/spec/models/logout_url_spec.rb +60 -0
- data/spec/models/native_logout_challenge_spec.rb +13 -7
- data/spec/models/notification_transport_request_spec.rb +6 -0
- data/spec/models/notification_transport_spec.rb +6 -0
- data/spec/models/o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/o_auth2_provider_spec.rb +6 -0
- data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
- data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
- data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
- data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
- data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/patched_application_request_spec.rb +6 -0
- data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/patched_brand_request_spec.rb +6 -0
- data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/patched_notification_transport_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/patched_saml_provider_request_spec.rb +7 -1
- data/spec/models/patched_saml_source_request_spec.rb +6 -0
- data/spec/models/patched_settings_request_flags_spec.rb +2 -2
- data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
- data/spec/models/redirect_uri_request_spec.rb +6 -0
- data/spec/models/redirect_uri_spec.rb +6 -0
- data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
- data/spec/models/related_rule_spec.rb +54 -0
- data/spec/models/saml_provider_request_spec.rb +7 -1
- data/spec/models/saml_provider_spec.rb +25 -1
- data/spec/models/saml_source_request_spec.rb +6 -0
- data/spec/models/saml_source_spec.rb +6 -0
- data/spec/models/ssf_provider_request_spec.rb +6 -0
- data/spec/models/ssf_provider_spec.rb +12 -0
- data/spec/models/ssf_stream_spec.rb +6 -0
- data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
- data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
- data/spec/models/transport_mode_enum_spec.rb +24 -0
- data/spec/models/usage_enum_spec.rb +24 -0
- data/spec/models/user_account_lockdown_request_spec.rb +30 -0
- data/spec/models/user_ldap_source_connection_spec.rb +6 -0
- data/spec/models/user_password_hash_set_request_spec.rb +30 -0
- data/spec/models/web_authn_hint_enum_spec.rb +24 -0
- data/spec/zeitwerk_spec.rb +34 -0
- metadata +113 -32
- data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
|
@@ -16,19 +16,43 @@ module Authentik::Api
|
|
|
16
16
|
|
|
17
17
|
attr_accessor :response_errors
|
|
18
18
|
|
|
19
|
+
attr_accessor :provider_name
|
|
20
|
+
|
|
21
|
+
attr_accessor :is_complete
|
|
22
|
+
|
|
19
23
|
attr_accessor :post_url
|
|
20
24
|
|
|
25
|
+
attr_accessor :redirect_url
|
|
26
|
+
|
|
27
|
+
attr_accessor :saml_binding
|
|
28
|
+
|
|
21
29
|
attr_accessor :saml_request
|
|
22
30
|
|
|
23
|
-
attr_accessor :
|
|
31
|
+
attr_accessor :saml_response
|
|
24
32
|
|
|
25
|
-
attr_accessor :
|
|
33
|
+
attr_accessor :saml_relay_state
|
|
26
34
|
|
|
27
|
-
|
|
35
|
+
class EnumAttributeValidator
|
|
36
|
+
attr_reader :datatype
|
|
37
|
+
attr_reader :allowable_values
|
|
28
38
|
|
|
29
|
-
|
|
39
|
+
def initialize(datatype, allowable_values)
|
|
40
|
+
@allowable_values = allowable_values.map do |value|
|
|
41
|
+
case datatype.to_s
|
|
42
|
+
when /Integer/i
|
|
43
|
+
value.to_i
|
|
44
|
+
when /Float/i
|
|
45
|
+
value.to_f
|
|
46
|
+
else
|
|
47
|
+
value
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
30
51
|
|
|
31
|
-
|
|
52
|
+
def valid?(value)
|
|
53
|
+
!value || allowable_values.include?(value)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
32
56
|
|
|
33
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
58
|
def self.attribute_map
|
|
@@ -36,13 +60,14 @@ module Authentik::Api
|
|
|
36
60
|
:'flow_info' => :'flow_info',
|
|
37
61
|
:'component' => :'component',
|
|
38
62
|
:'response_errors' => :'response_errors',
|
|
39
|
-
:'post_url' => :'post_url',
|
|
40
|
-
:'saml_request' => :'saml_request',
|
|
41
|
-
:'relay_state' => :'relay_state',
|
|
42
63
|
:'provider_name' => :'provider_name',
|
|
43
|
-
:'
|
|
64
|
+
:'is_complete' => :'is_complete',
|
|
65
|
+
:'post_url' => :'post_url',
|
|
44
66
|
:'redirect_url' => :'redirect_url',
|
|
45
|
-
:'
|
|
67
|
+
:'saml_binding' => :'saml_binding',
|
|
68
|
+
:'saml_request' => :'saml_request',
|
|
69
|
+
:'saml_response' => :'saml_response',
|
|
70
|
+
:'saml_relay_state' => :'saml_relay_state'
|
|
46
71
|
}
|
|
47
72
|
end
|
|
48
73
|
|
|
@@ -62,13 +87,14 @@ module Authentik::Api
|
|
|
62
87
|
:'flow_info' => :'ContextualFlowInfo',
|
|
63
88
|
:'component' => :'String',
|
|
64
89
|
:'response_errors' => :'Hash<String, Array<ErrorDetail>>',
|
|
65
|
-
:'post_url' => :'String',
|
|
66
|
-
:'saml_request' => :'String',
|
|
67
|
-
:'relay_state' => :'String',
|
|
68
90
|
:'provider_name' => :'String',
|
|
69
|
-
:'
|
|
91
|
+
:'is_complete' => :'Boolean',
|
|
92
|
+
:'post_url' => :'String',
|
|
70
93
|
:'redirect_url' => :'String',
|
|
71
|
-
:'
|
|
94
|
+
:'saml_binding' => :'SAMLBindingsEnum',
|
|
95
|
+
:'saml_request' => :'String',
|
|
96
|
+
:'saml_response' => :'String',
|
|
97
|
+
:'saml_relay_state' => :'String'
|
|
72
98
|
}
|
|
73
99
|
end
|
|
74
100
|
|
|
@@ -110,34 +136,38 @@ module Authentik::Api
|
|
|
110
136
|
end
|
|
111
137
|
end
|
|
112
138
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
139
|
+
if attributes.key?(:'provider_name')
|
|
140
|
+
self.provider_name = attributes[:'provider_name']
|
|
115
141
|
end
|
|
116
142
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
self.
|
|
143
|
+
if attributes.key?(:'is_complete')
|
|
144
|
+
self.is_complete = attributes[:'is_complete']
|
|
145
|
+
else
|
|
146
|
+
self.is_complete = false
|
|
119
147
|
end
|
|
120
148
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
149
|
+
if attributes.key?(:'post_url')
|
|
150
|
+
self.post_url = attributes[:'post_url']
|
|
123
151
|
end
|
|
124
152
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
153
|
+
if attributes.key?(:'redirect_url')
|
|
154
|
+
self.redirect_url = attributes[:'redirect_url']
|
|
127
155
|
end
|
|
128
156
|
|
|
129
|
-
if attributes.key?(:'
|
|
130
|
-
self.
|
|
157
|
+
if attributes.key?(:'saml_binding')
|
|
158
|
+
self.saml_binding = attributes[:'saml_binding']
|
|
131
159
|
end
|
|
132
160
|
|
|
133
|
-
if attributes.key?(:'
|
|
134
|
-
self.
|
|
161
|
+
if attributes.key?(:'saml_request')
|
|
162
|
+
self.saml_request = attributes[:'saml_request']
|
|
135
163
|
end
|
|
136
164
|
|
|
137
|
-
if attributes.key?(:'
|
|
138
|
-
self.
|
|
139
|
-
|
|
140
|
-
|
|
165
|
+
if attributes.key?(:'saml_response')
|
|
166
|
+
self.saml_response = attributes[:'saml_response']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'saml_relay_state')
|
|
170
|
+
self.saml_relay_state = attributes[:'saml_relay_state']
|
|
141
171
|
end
|
|
142
172
|
end
|
|
143
173
|
|
|
@@ -164,13 +194,14 @@ module Authentik::Api
|
|
|
164
194
|
flow_info == o.flow_info &&
|
|
165
195
|
component == o.component &&
|
|
166
196
|
response_errors == o.response_errors &&
|
|
167
|
-
post_url == o.post_url &&
|
|
168
|
-
saml_request == o.saml_request &&
|
|
169
|
-
relay_state == o.relay_state &&
|
|
170
197
|
provider_name == o.provider_name &&
|
|
171
|
-
|
|
198
|
+
is_complete == o.is_complete &&
|
|
199
|
+
post_url == o.post_url &&
|
|
172
200
|
redirect_url == o.redirect_url &&
|
|
173
|
-
|
|
201
|
+
saml_binding == o.saml_binding &&
|
|
202
|
+
saml_request == o.saml_request &&
|
|
203
|
+
saml_response == o.saml_response &&
|
|
204
|
+
saml_relay_state == o.saml_relay_state
|
|
174
205
|
end
|
|
175
206
|
|
|
176
207
|
# @see the `==` method
|
|
@@ -182,7 +213,7 @@ module Authentik::Api
|
|
|
182
213
|
# Calculates hash code according to all attributes.
|
|
183
214
|
# @return [Integer] Hash code
|
|
184
215
|
def hash
|
|
185
|
-
[flow_info, component, response_errors,
|
|
216
|
+
[flow_info, component, response_errors, provider_name, is_complete, post_url, redirect_url, saml_binding, saml_request, saml_response, saml_relay_state].hash
|
|
186
217
|
end
|
|
187
218
|
|
|
188
219
|
# Builds the object from hash
|
|
@@ -21,6 +21,9 @@ module Authentik::Api
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :webhook_url
|
|
23
23
|
|
|
24
|
+
# When set, the selected ceritifcate is used to validate the certificate of the webhook server.
|
|
25
|
+
attr_accessor :webhook_ca
|
|
26
|
+
|
|
24
27
|
# Customize the body of the request. Mapping should return data that is JSON-serializable.
|
|
25
28
|
attr_accessor :webhook_mapping_body
|
|
26
29
|
|
|
@@ -64,6 +67,7 @@ module Authentik::Api
|
|
|
64
67
|
:'mode' => :'mode',
|
|
65
68
|
:'mode_verbose' => :'mode_verbose',
|
|
66
69
|
:'webhook_url' => :'webhook_url',
|
|
70
|
+
:'webhook_ca' => :'webhook_ca',
|
|
67
71
|
:'webhook_mapping_body' => :'webhook_mapping_body',
|
|
68
72
|
:'webhook_mapping_headers' => :'webhook_mapping_headers',
|
|
69
73
|
:'email_subject_prefix' => :'email_subject_prefix',
|
|
@@ -87,9 +91,10 @@ module Authentik::Api
|
|
|
87
91
|
{
|
|
88
92
|
:'pk' => :'String',
|
|
89
93
|
:'name' => :'String',
|
|
90
|
-
:'mode' => :'
|
|
94
|
+
:'mode' => :'TransportModeEnum',
|
|
91
95
|
:'mode_verbose' => :'String',
|
|
92
96
|
:'webhook_url' => :'String',
|
|
97
|
+
:'webhook_ca' => :'String',
|
|
93
98
|
:'webhook_mapping_body' => :'String',
|
|
94
99
|
:'webhook_mapping_headers' => :'String',
|
|
95
100
|
:'email_subject_prefix' => :'String',
|
|
@@ -101,6 +106,7 @@ module Authentik::Api
|
|
|
101
106
|
# List of attributes with nullable: true
|
|
102
107
|
def self.openapi_nullable
|
|
103
108
|
Set.new([
|
|
109
|
+
:'webhook_ca',
|
|
104
110
|
:'webhook_mapping_body',
|
|
105
111
|
:'webhook_mapping_headers',
|
|
106
112
|
])
|
|
@@ -148,6 +154,10 @@ module Authentik::Api
|
|
|
148
154
|
self.webhook_url = attributes[:'webhook_url']
|
|
149
155
|
end
|
|
150
156
|
|
|
157
|
+
if attributes.key?(:'webhook_ca')
|
|
158
|
+
self.webhook_ca = attributes[:'webhook_ca']
|
|
159
|
+
end
|
|
160
|
+
|
|
151
161
|
if attributes.key?(:'webhook_mapping_body')
|
|
152
162
|
self.webhook_mapping_body = attributes[:'webhook_mapping_body']
|
|
153
163
|
end
|
|
@@ -239,6 +249,7 @@ module Authentik::Api
|
|
|
239
249
|
mode == o.mode &&
|
|
240
250
|
mode_verbose == o.mode_verbose &&
|
|
241
251
|
webhook_url == o.webhook_url &&
|
|
252
|
+
webhook_ca == o.webhook_ca &&
|
|
242
253
|
webhook_mapping_body == o.webhook_mapping_body &&
|
|
243
254
|
webhook_mapping_headers == o.webhook_mapping_headers &&
|
|
244
255
|
email_subject_prefix == o.email_subject_prefix &&
|
|
@@ -255,7 +266,7 @@ module Authentik::Api
|
|
|
255
266
|
# Calculates hash code according to all attributes.
|
|
256
267
|
# @return [Integer] Hash code
|
|
257
268
|
def hash
|
|
258
|
-
[pk, name, mode, mode_verbose, webhook_url, webhook_mapping_body, webhook_mapping_headers, email_subject_prefix, email_template, send_once].hash
|
|
269
|
+
[pk, name, mode, mode_verbose, webhook_url, webhook_ca, webhook_mapping_body, webhook_mapping_headers, email_subject_prefix, email_template, send_once].hash
|
|
259
270
|
end
|
|
260
271
|
|
|
261
272
|
# Builds the object from hash
|
|
@@ -16,6 +16,9 @@ module Authentik::Api
|
|
|
16
16
|
|
|
17
17
|
attr_accessor :webhook_url
|
|
18
18
|
|
|
19
|
+
# When set, the selected ceritifcate is used to validate the certificate of the webhook server.
|
|
20
|
+
attr_accessor :webhook_ca
|
|
21
|
+
|
|
19
22
|
# Customize the body of the request. Mapping should return data that is JSON-serializable.
|
|
20
23
|
attr_accessor :webhook_mapping_body
|
|
21
24
|
|
|
@@ -57,6 +60,7 @@ module Authentik::Api
|
|
|
57
60
|
:'name' => :'name',
|
|
58
61
|
:'mode' => :'mode',
|
|
59
62
|
:'webhook_url' => :'webhook_url',
|
|
63
|
+
:'webhook_ca' => :'webhook_ca',
|
|
60
64
|
:'webhook_mapping_body' => :'webhook_mapping_body',
|
|
61
65
|
:'webhook_mapping_headers' => :'webhook_mapping_headers',
|
|
62
66
|
:'email_subject_prefix' => :'email_subject_prefix',
|
|
@@ -79,8 +83,9 @@ module Authentik::Api
|
|
|
79
83
|
def self.openapi_types
|
|
80
84
|
{
|
|
81
85
|
:'name' => :'String',
|
|
82
|
-
:'mode' => :'
|
|
86
|
+
:'mode' => :'TransportModeEnum',
|
|
83
87
|
:'webhook_url' => :'String',
|
|
88
|
+
:'webhook_ca' => :'String',
|
|
84
89
|
:'webhook_mapping_body' => :'String',
|
|
85
90
|
:'webhook_mapping_headers' => :'String',
|
|
86
91
|
:'email_subject_prefix' => :'String',
|
|
@@ -92,6 +97,7 @@ module Authentik::Api
|
|
|
92
97
|
# List of attributes with nullable: true
|
|
93
98
|
def self.openapi_nullable
|
|
94
99
|
Set.new([
|
|
100
|
+
:'webhook_ca',
|
|
95
101
|
:'webhook_mapping_body',
|
|
96
102
|
:'webhook_mapping_headers',
|
|
97
103
|
])
|
|
@@ -127,6 +133,10 @@ module Authentik::Api
|
|
|
127
133
|
self.webhook_url = attributes[:'webhook_url']
|
|
128
134
|
end
|
|
129
135
|
|
|
136
|
+
if attributes.key?(:'webhook_ca')
|
|
137
|
+
self.webhook_ca = attributes[:'webhook_ca']
|
|
138
|
+
end
|
|
139
|
+
|
|
130
140
|
if attributes.key?(:'webhook_mapping_body')
|
|
131
141
|
self.webhook_mapping_body = attributes[:'webhook_mapping_body']
|
|
132
142
|
end
|
|
@@ -214,6 +224,7 @@ module Authentik::Api
|
|
|
214
224
|
name == o.name &&
|
|
215
225
|
mode == o.mode &&
|
|
216
226
|
webhook_url == o.webhook_url &&
|
|
227
|
+
webhook_ca == o.webhook_ca &&
|
|
217
228
|
webhook_mapping_body == o.webhook_mapping_body &&
|
|
218
229
|
webhook_mapping_headers == o.webhook_mapping_headers &&
|
|
219
230
|
email_subject_prefix == o.email_subject_prefix &&
|
|
@@ -230,7 +241,7 @@ module Authentik::Api
|
|
|
230
241
|
# Calculates hash code according to all attributes.
|
|
231
242
|
# @return [Integer] Hash code
|
|
232
243
|
def hash
|
|
233
|
-
[name, mode, webhook_url, webhook_mapping_body, webhook_mapping_headers, email_subject_prefix, email_template, send_once].hash
|
|
244
|
+
[name, mode, webhook_url, webhook_ca, webhook_mapping_body, webhook_mapping_headers, email_subject_prefix, email_template, send_once].hash
|
|
234
245
|
end
|
|
235
246
|
|
|
236
247
|
# Builds the object from hash
|
|
@@ -52,6 +52,8 @@ module Authentik::Api
|
|
|
52
52
|
# Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
53
53
|
attr_accessor :client_type
|
|
54
54
|
|
|
55
|
+
attr_accessor :grant_types
|
|
56
|
+
|
|
55
57
|
attr_accessor :client_id
|
|
56
58
|
|
|
57
59
|
attr_accessor :client_secret
|
|
@@ -134,6 +136,7 @@ module Authentik::Api
|
|
|
134
136
|
:'verbose_name_plural' => :'verbose_name_plural',
|
|
135
137
|
:'meta_model_name' => :'meta_model_name',
|
|
136
138
|
:'client_type' => :'client_type',
|
|
139
|
+
:'grant_types' => :'grant_types',
|
|
137
140
|
:'client_id' => :'client_id',
|
|
138
141
|
:'client_secret' => :'client_secret',
|
|
139
142
|
:'access_code_validity' => :'access_code_validity',
|
|
@@ -181,6 +184,7 @@ module Authentik::Api
|
|
|
181
184
|
:'verbose_name_plural' => :'String',
|
|
182
185
|
:'meta_model_name' => :'String',
|
|
183
186
|
:'client_type' => :'ClientTypeEnum',
|
|
187
|
+
:'grant_types' => :'Array<GrantTypesEnum>',
|
|
184
188
|
:'client_id' => :'String',
|
|
185
189
|
:'client_secret' => :'String',
|
|
186
190
|
:'access_code_validity' => :'String',
|
|
@@ -315,6 +319,12 @@ module Authentik::Api
|
|
|
315
319
|
self.client_type = attributes[:'client_type']
|
|
316
320
|
end
|
|
317
321
|
|
|
322
|
+
if attributes.key?(:'grant_types')
|
|
323
|
+
if (value = attributes[:'grant_types']).is_a?(Array)
|
|
324
|
+
self.grant_types = value
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
|
|
318
328
|
if attributes.key?(:'client_id')
|
|
319
329
|
self.client_id = attributes[:'client_id']
|
|
320
330
|
end
|
|
@@ -596,6 +606,7 @@ module Authentik::Api
|
|
|
596
606
|
verbose_name_plural == o.verbose_name_plural &&
|
|
597
607
|
meta_model_name == o.meta_model_name &&
|
|
598
608
|
client_type == o.client_type &&
|
|
609
|
+
grant_types == o.grant_types &&
|
|
599
610
|
client_id == o.client_id &&
|
|
600
611
|
client_secret == o.client_secret &&
|
|
601
612
|
access_code_validity == o.access_code_validity &&
|
|
@@ -623,7 +634,7 @@ module Authentik::Api
|
|
|
623
634
|
# Calculates hash code according to all attributes.
|
|
624
635
|
# @return [Integer] Hash code
|
|
625
636
|
def hash
|
|
626
|
-
[pk, name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, component, assigned_application_slug, assigned_application_name, assigned_backchannel_application_slug, assigned_backchannel_application_name, verbose_name, verbose_name_plural, meta_model_name, client_type, client_id, client_secret, access_code_validity, access_token_validity, refresh_token_validity, refresh_token_threshold, include_claims_in_id_token, signing_key, encryption_key, redirect_uris, logout_uri, logout_method, sub_mode, issuer_mode, jwt_federation_sources, jwt_federation_providers].hash
|
|
637
|
+
[pk, name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, component, assigned_application_slug, assigned_application_name, assigned_backchannel_application_slug, assigned_backchannel_application_name, verbose_name, verbose_name_plural, meta_model_name, client_type, grant_types, client_id, client_secret, access_code_validity, access_token_validity, refresh_token_validity, refresh_token_threshold, include_claims_in_id_token, signing_key, encryption_key, redirect_uris, logout_uri, logout_method, sub_mode, issuer_mode, jwt_federation_sources, jwt_federation_providers].hash
|
|
627
638
|
end
|
|
628
639
|
|
|
629
640
|
# Builds the object from hash
|
|
@@ -26,6 +26,8 @@ module Authentik::Api
|
|
|
26
26
|
# Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
27
27
|
attr_accessor :client_type
|
|
28
28
|
|
|
29
|
+
attr_accessor :grant_types
|
|
30
|
+
|
|
29
31
|
attr_accessor :client_id
|
|
30
32
|
|
|
31
33
|
attr_accessor :client_secret
|
|
@@ -99,6 +101,7 @@ module Authentik::Api
|
|
|
99
101
|
:'invalidation_flow' => :'invalidation_flow',
|
|
100
102
|
:'property_mappings' => :'property_mappings',
|
|
101
103
|
:'client_type' => :'client_type',
|
|
104
|
+
:'grant_types' => :'grant_types',
|
|
102
105
|
:'client_id' => :'client_id',
|
|
103
106
|
:'client_secret' => :'client_secret',
|
|
104
107
|
:'access_code_validity' => :'access_code_validity',
|
|
@@ -137,6 +140,7 @@ module Authentik::Api
|
|
|
137
140
|
:'invalidation_flow' => :'String',
|
|
138
141
|
:'property_mappings' => :'Array<String>',
|
|
139
142
|
:'client_type' => :'ClientTypeEnum',
|
|
143
|
+
:'grant_types' => :'Array<GrantTypesEnum>',
|
|
140
144
|
:'client_id' => :'String',
|
|
141
145
|
:'client_secret' => :'String',
|
|
142
146
|
:'access_code_validity' => :'String',
|
|
@@ -213,6 +217,12 @@ module Authentik::Api
|
|
|
213
217
|
self.client_type = attributes[:'client_type']
|
|
214
218
|
end
|
|
215
219
|
|
|
220
|
+
if attributes.key?(:'grant_types')
|
|
221
|
+
if (value = attributes[:'grant_types']).is_a?(Array)
|
|
222
|
+
self.grant_types = value
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
216
226
|
if attributes.key?(:'client_id')
|
|
217
227
|
self.client_id = attributes[:'client_id']
|
|
218
228
|
end
|
|
@@ -504,6 +514,7 @@ module Authentik::Api
|
|
|
504
514
|
invalidation_flow == o.invalidation_flow &&
|
|
505
515
|
property_mappings == o.property_mappings &&
|
|
506
516
|
client_type == o.client_type &&
|
|
517
|
+
grant_types == o.grant_types &&
|
|
507
518
|
client_id == o.client_id &&
|
|
508
519
|
client_secret == o.client_secret &&
|
|
509
520
|
access_code_validity == o.access_code_validity &&
|
|
@@ -531,7 +542,7 @@ module Authentik::Api
|
|
|
531
542
|
# Calculates hash code according to all attributes.
|
|
532
543
|
# @return [Integer] Hash code
|
|
533
544
|
def hash
|
|
534
|
-
[name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, client_type, client_id, client_secret, access_code_validity, access_token_validity, refresh_token_validity, refresh_token_threshold, include_claims_in_id_token, signing_key, encryption_key, redirect_uris, logout_uri, logout_method, sub_mode, issuer_mode, jwt_federation_sources, jwt_federation_providers].hash
|
|
545
|
+
[name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, client_type, grant_types, client_id, client_secret, access_code_validity, access_token_validity, refresh_token_validity, refresh_token_threshold, include_claims_in_id_token, signing_key, encryption_key, redirect_uris, logout_uri, logout_method, sub_mode, issuer_mode, jwt_federation_sources, jwt_federation_providers].hash
|
|
535
546
|
end
|
|
536
547
|
|
|
537
548
|
# Builds the object from hash
|
|
@@ -110,8 +110,6 @@ module Authentik::Api
|
|
|
110
110
|
|
|
111
111
|
if attributes.key?(:'arch')
|
|
112
112
|
self.arch = attributes[:'arch']
|
|
113
|
-
else
|
|
114
|
-
self.arch = nil
|
|
115
113
|
end
|
|
116
114
|
end
|
|
117
115
|
|
|
@@ -124,10 +122,6 @@ module Authentik::Api
|
|
|
124
122
|
invalid_properties.push('invalid value for "family", family cannot be nil.')
|
|
125
123
|
end
|
|
126
124
|
|
|
127
|
-
if @arch.nil?
|
|
128
|
-
invalid_properties.push('invalid value for "arch", arch cannot be nil.')
|
|
129
|
-
end
|
|
130
|
-
|
|
131
125
|
invalid_properties
|
|
132
126
|
end
|
|
133
127
|
|
|
@@ -136,7 +130,6 @@ module Authentik::Api
|
|
|
136
130
|
def valid?
|
|
137
131
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
138
132
|
return false if @family.nil?
|
|
139
|
-
return false if @arch.nil?
|
|
140
133
|
true
|
|
141
134
|
end
|
|
142
135
|
|
|
@@ -150,16 +143,6 @@ module Authentik::Api
|
|
|
150
143
|
@family = family
|
|
151
144
|
end
|
|
152
145
|
|
|
153
|
-
# Custom attribute writer method with validation
|
|
154
|
-
# @param [Object] arch Value to be assigned
|
|
155
|
-
def arch=(arch)
|
|
156
|
-
if arch.nil?
|
|
157
|
-
fail ArgumentError, 'arch cannot be nil'
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
@arch = arch
|
|
161
|
-
end
|
|
162
|
-
|
|
163
146
|
# Checks equality by comparing each attribute.
|
|
164
147
|
# @param [Object] Object to be compared
|
|
165
148
|
def ==(o)
|
|
@@ -110,8 +110,6 @@ module Authentik::Api
|
|
|
110
110
|
|
|
111
111
|
if attributes.key?(:'arch')
|
|
112
112
|
self.arch = attributes[:'arch']
|
|
113
|
-
else
|
|
114
|
-
self.arch = nil
|
|
115
113
|
end
|
|
116
114
|
end
|
|
117
115
|
|
|
@@ -132,11 +130,7 @@ module Authentik::Api
|
|
|
132
130
|
invalid_properties.push('invalid value for "version", the character length must be greater than or equal to 1.')
|
|
133
131
|
end
|
|
134
132
|
|
|
135
|
-
if
|
|
136
|
-
invalid_properties.push('invalid value for "arch", arch cannot be nil.')
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
if @arch.to_s.length < 1
|
|
133
|
+
if !@arch.nil? && @arch.to_s.length < 1
|
|
140
134
|
invalid_properties.push('invalid value for "arch", the character length must be greater than or equal to 1.')
|
|
141
135
|
end
|
|
142
136
|
|
|
@@ -150,8 +144,7 @@ module Authentik::Api
|
|
|
150
144
|
return false if @family.nil?
|
|
151
145
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
152
146
|
return false if !@version.nil? && @version.to_s.length < 1
|
|
153
|
-
return false if
|
|
154
|
-
return false if @arch.to_s.length < 1
|
|
147
|
+
return false if !@arch.nil? && @arch.to_s.length < 1
|
|
155
148
|
true
|
|
156
149
|
end
|
|
157
150
|
|