authentik-api 2025.12.4 → 2026.2.2.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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/README_API.md +59 -7
  3. data/lib/authentik/api/api/core_api.rb +109 -12
  4. data/lib/authentik/api/api/crypto_api.rb +0 -3
  5. data/lib/authentik/api/api/endpoints_api.rb +459 -0
  6. data/lib/authentik/api/api/events_api.rb +3 -3
  7. data/lib/authentik/api/api/lifecycle_api.rb +681 -0
  8. data/lib/authentik/api/api/policies_api.rb +1 -1
  9. data/lib/authentik/api/api/providers_api.rb +705 -3
  10. data/lib/authentik/api/api/rbac_api.rb +6 -9
  11. data/lib/authentik/api/api/stages_api.rb +1 -1
  12. data/lib/authentik/api/models/alg_enum.rb +3 -1
  13. data/lib/authentik/api/models/app_enum.rb +4 -1
  14. data/lib/authentik/api/models/application.rb +1 -15
  15. data/lib/authentik/api/models/bulk_delete_session_response.rb +158 -0
  16. data/lib/authentik/api/models/certificate_key_pair.rb +5 -4
  17. data/lib/authentik/api/models/content_type_enum.rb +35 -0
  18. data/lib/authentik/api/models/contextual_flow_info_layout_enum.rb +3 -1
  19. data/lib/authentik/api/models/current_brand_flags.rb +53 -1
  20. data/lib/authentik/api/models/device_access_group.rb +15 -4
  21. data/lib/authentik/api/models/device_access_group_request.rb +15 -4
  22. data/lib/authentik/api/models/device_fact_snapshot.rb +53 -5
  23. data/lib/authentik/api/models/enrollment_token.rb +1 -15
  24. data/lib/authentik/api/models/event_actions.rb +6 -1
  25. data/lib/authentik/api/models/fleet_connector.rb +349 -0
  26. data/lib/authentik/api/models/fleet_connector_request.rb +294 -0
  27. data/lib/authentik/api/models/flow_layout_enum.rb +3 -1
  28. data/lib/authentik/api/models/identification_challenge.rb +20 -1
  29. data/lib/authentik/api/models/lifecycle_iteration.rb +525 -0
  30. data/lib/authentik/api/models/lifecycle_iteration_request.rb +181 -0
  31. data/lib/authentik/api/models/lifecycle_iteration_state_enum.rb +36 -0
  32. data/lib/authentik/api/models/lifecycle_rule.rb +440 -0
  33. data/lib/authentik/api/models/lifecycle_rule_request.rb +394 -0
  34. data/lib/authentik/api/models/model_enum.rb +6 -1
  35. data/lib/authentik/api/models/model_request.rb +4 -2
  36. data/lib/authentik/api/models/operating_system.rb +3 -0
  37. data/lib/authentik/api/models/operating_system_request.rb +3 -0
  38. data/lib/authentik/api/models/paginated_fleet_connector_list.rb +214 -0
  39. data/lib/authentik/api/models/paginated_lifecycle_iteration_list.rb +214 -0
  40. data/lib/authentik/api/models/paginated_lifecycle_rule_list.rb +214 -0
  41. data/lib/authentik/api/models/paginated_ws_federation_provider_list.rb +214 -0
  42. data/lib/authentik/api/models/patched_device_access_group_request.rb +15 -4
  43. data/lib/authentik/api/models/patched_fleet_connector_request.rb +273 -0
  44. data/lib/authentik/api/models/patched_lifecycle_rule_request.rb +353 -0
  45. data/lib/authentik/api/models/patched_role_request.rb +0 -9
  46. data/lib/authentik/api/models/patched_saml_provider_request.rb +1 -1
  47. data/lib/authentik/api/models/patched_scim_provider_request.rb +13 -11
  48. data/lib/authentik/api/models/patched_settings_request_flags.rb +53 -1
  49. data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +457 -0
  50. data/lib/authentik/api/models/provider_model_enum.rb +2 -1
  51. data/lib/authentik/api/models/review.rb +247 -0
  52. data/lib/authentik/api/models/review_request.rb +184 -0
  53. data/lib/authentik/api/models/reviewer_group.rb +184 -0
  54. data/lib/authentik/api/models/reviewer_user.rb +258 -0
  55. data/lib/authentik/api/models/role.rb +0 -9
  56. data/lib/authentik/api/models/role_request.rb +0 -9
  57. data/lib/authentik/api/models/{saml_provider_logout_method_enum.rb → saml_logout_methods.rb} +3 -3
  58. data/lib/authentik/api/models/saml_metadata.rb +1 -15
  59. data/lib/authentik/api/models/saml_provider.rb +1 -1
  60. data/lib/authentik/api/models/saml_provider_request.rb +1 -1
  61. data/lib/authentik/api/models/scim_provider.rb +13 -11
  62. data/lib/authentik/api/models/scim_provider_request.rb +13 -11
  63. data/lib/authentik/api/models/task.rb +1 -1
  64. data/lib/authentik/api/models/{state_enum.rb → task_state_enum.rb} +3 -3
  65. data/lib/authentik/api/models/user_recovery_email_request.rb +187 -0
  66. data/lib/authentik/api/models/user_recovery_link_request.rb +161 -0
  67. data/lib/authentik/api/models/vendor_enum.rb +35 -0
  68. data/lib/authentik/api/models/ws_federation_provider.rb +668 -0
  69. data/lib/authentik/api/models/ws_federation_provider_request.rb +512 -0
  70. data/lib/authentik/api/version.rb +1 -1
  71. data/spec/api/core_api_spec.rb +21 -1
  72. data/spec/api/crypto_api_spec.rb +0 -1
  73. data/spec/api/endpoints_api_spec.rb +83 -0
  74. data/spec/api/lifecycle_api_spec.rb +144 -0
  75. data/spec/api/providers_api_spec.rb +137 -1
  76. data/spec/api/rbac_api_spec.rb +2 -3
  77. data/spec/models/bulk_delete_session_response_spec.rb +30 -0
  78. data/spec/models/content_type_enum_spec.rb +24 -0
  79. data/spec/models/current_brand_flags_spec.rb +12 -0
  80. data/spec/models/device_access_group_request_spec.rb +6 -0
  81. data/spec/models/device_access_group_spec.rb +6 -0
  82. data/spec/models/device_fact_snapshot_spec.rb +6 -0
  83. data/spec/models/fleet_connector_request_spec.rb +72 -0
  84. data/spec/models/fleet_connector_spec.rb +90 -0
  85. data/spec/models/identification_challenge_spec.rb +12 -0
  86. data/spec/models/lifecycle_iteration_request_spec.rb +30 -0
  87. data/spec/models/lifecycle_iteration_spec.rb +108 -0
  88. data/spec/models/lifecycle_iteration_state_enum_spec.rb +24 -0
  89. data/spec/models/lifecycle_rule_request_spec.rb +84 -0
  90. data/spec/models/lifecycle_rule_spec.rb +108 -0
  91. data/spec/models/paginated_fleet_connector_list_spec.rb +42 -0
  92. data/spec/models/paginated_lifecycle_iteration_list_spec.rb +42 -0
  93. data/spec/models/paginated_lifecycle_rule_list_spec.rb +42 -0
  94. data/spec/models/paginated_ws_federation_provider_list_spec.rb +42 -0
  95. data/spec/models/patched_device_access_group_request_spec.rb +6 -0
  96. data/spec/models/patched_fleet_connector_request_spec.rb +72 -0
  97. data/spec/models/patched_lifecycle_rule_request_spec.rb +84 -0
  98. data/spec/models/patched_scim_provider_request_spec.rb +3 -3
  99. data/spec/models/patched_settings_request_flags_spec.rb +12 -0
  100. data/spec/models/patched_ws_federation_provider_request_spec.rb +138 -0
  101. data/spec/models/review_request_spec.rb +36 -0
  102. data/spec/models/review_spec.rb +54 -0
  103. data/spec/models/reviewer_group_spec.rb +36 -0
  104. data/spec/models/reviewer_user_spec.rb +48 -0
  105. data/spec/models/saml_logout_methods_spec.rb +24 -0
  106. data/spec/models/scim_provider_request_spec.rb +3 -3
  107. data/spec/models/scim_provider_spec.rb +3 -3
  108. data/spec/models/task_state_enum_spec.rb +24 -0
  109. data/spec/models/user_recovery_email_request_spec.rb +36 -0
  110. data/spec/models/user_recovery_link_request_spec.rb +30 -0
  111. data/spec/models/{state_enum_spec.rb → vendor_enum_spec.rb} +6 -6
  112. data/spec/models/ws_federation_provider_request_spec.rb +138 -0
  113. data/spec/models/ws_federation_provider_spec.rb +204 -0
  114. metadata +85 -7
  115. data/spec/models/saml_provider_logout_method_enum_spec.rb +0 -24
@@ -0,0 +1,457 @@
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
+ # WSFederationProvider Serializer
12
+ class PatchedWSFederationProviderRequest < ApiModelBase
13
+ attr_accessor :name
14
+
15
+ # Flow used for authentication when the associated application is accessed by an un-authenticated user.
16
+ attr_accessor :authentication_flow
17
+
18
+ # Flow used when authorizing this provider.
19
+ attr_accessor :authorization_flow
20
+
21
+ # Flow used ending the session from a provider.
22
+ attr_accessor :invalidation_flow
23
+
24
+ attr_accessor :property_mappings
25
+
26
+ attr_accessor :reply_url
27
+
28
+ attr_accessor :wtrealm
29
+
30
+ # Assertion valid not before current time + this value (Format: hours=-1;minutes=-2;seconds=-3).
31
+ attr_accessor :assertion_valid_not_before
32
+
33
+ # Assertion not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
34
+ attr_accessor :assertion_valid_not_on_or_after
35
+
36
+ # Session not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
37
+ attr_accessor :session_valid_not_on_or_after
38
+
39
+ # Configure how the NameID value will be created. When left empty, the NameIDPolicy of the incoming request will be considered
40
+ attr_accessor :name_id_mapping
41
+
42
+ # Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
43
+ attr_accessor :authn_context_class_ref_mapping
44
+
45
+ attr_accessor :digest_algorithm
46
+
47
+ attr_accessor :signature_algorithm
48
+
49
+ # Keypair used to sign outgoing Responses going to the Service Provider.
50
+ attr_accessor :signing_kp
51
+
52
+ # When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
53
+ attr_accessor :encryption_kp
54
+
55
+ attr_accessor :sign_assertion
56
+
57
+ attr_accessor :sign_logout_request
58
+
59
+ attr_accessor :default_name_id_policy
60
+
61
+ class EnumAttributeValidator
62
+ attr_reader :datatype
63
+ attr_reader :allowable_values
64
+
65
+ def initialize(datatype, allowable_values)
66
+ @allowable_values = allowable_values.map do |value|
67
+ case datatype.to_s
68
+ when /Integer/i
69
+ value.to_i
70
+ when /Float/i
71
+ value.to_f
72
+ else
73
+ value
74
+ end
75
+ end
76
+ end
77
+
78
+ def valid?(value)
79
+ !value || allowable_values.include?(value)
80
+ end
81
+ end
82
+
83
+ # Attribute mapping from ruby-style variable name to JSON key.
84
+ def self.attribute_map
85
+ {
86
+ :'name' => :'name',
87
+ :'authentication_flow' => :'authentication_flow',
88
+ :'authorization_flow' => :'authorization_flow',
89
+ :'invalidation_flow' => :'invalidation_flow',
90
+ :'property_mappings' => :'property_mappings',
91
+ :'reply_url' => :'reply_url',
92
+ :'wtrealm' => :'wtrealm',
93
+ :'assertion_valid_not_before' => :'assertion_valid_not_before',
94
+ :'assertion_valid_not_on_or_after' => :'assertion_valid_not_on_or_after',
95
+ :'session_valid_not_on_or_after' => :'session_valid_not_on_or_after',
96
+ :'name_id_mapping' => :'name_id_mapping',
97
+ :'authn_context_class_ref_mapping' => :'authn_context_class_ref_mapping',
98
+ :'digest_algorithm' => :'digest_algorithm',
99
+ :'signature_algorithm' => :'signature_algorithm',
100
+ :'signing_kp' => :'signing_kp',
101
+ :'encryption_kp' => :'encryption_kp',
102
+ :'sign_assertion' => :'sign_assertion',
103
+ :'sign_logout_request' => :'sign_logout_request',
104
+ :'default_name_id_policy' => :'default_name_id_policy'
105
+ }
106
+ end
107
+
108
+ # Returns attribute mapping this model knows about
109
+ def self.acceptable_attribute_map
110
+ attribute_map
111
+ end
112
+
113
+ # Returns all the JSON keys this model knows about
114
+ def self.acceptable_attributes
115
+ acceptable_attribute_map.values
116
+ end
117
+
118
+ # Attribute type mapping.
119
+ def self.openapi_types
120
+ {
121
+ :'name' => :'String',
122
+ :'authentication_flow' => :'String',
123
+ :'authorization_flow' => :'String',
124
+ :'invalidation_flow' => :'String',
125
+ :'property_mappings' => :'Array<String>',
126
+ :'reply_url' => :'String',
127
+ :'wtrealm' => :'String',
128
+ :'assertion_valid_not_before' => :'String',
129
+ :'assertion_valid_not_on_or_after' => :'String',
130
+ :'session_valid_not_on_or_after' => :'String',
131
+ :'name_id_mapping' => :'String',
132
+ :'authn_context_class_ref_mapping' => :'String',
133
+ :'digest_algorithm' => :'DigestAlgorithmEnum',
134
+ :'signature_algorithm' => :'SignatureAlgorithmEnum',
135
+ :'signing_kp' => :'String',
136
+ :'encryption_kp' => :'String',
137
+ :'sign_assertion' => :'Boolean',
138
+ :'sign_logout_request' => :'Boolean',
139
+ :'default_name_id_policy' => :'SAMLNameIDPolicyEnum'
140
+ }
141
+ end
142
+
143
+ # List of attributes with nullable: true
144
+ def self.openapi_nullable
145
+ Set.new([
146
+ :'authentication_flow',
147
+ :'name_id_mapping',
148
+ :'authn_context_class_ref_mapping',
149
+ :'signing_kp',
150
+ :'encryption_kp',
151
+ ])
152
+ end
153
+
154
+ # Initializes the object
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ def initialize(attributes = {})
157
+ if (!attributes.is_a?(Hash))
158
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::PatchedWSFederationProviderRequest` initialize method"
159
+ end
160
+
161
+ # check to see if the attribute exists and convert string to symbol for hash key
162
+ acceptable_attribute_map = self.class.acceptable_attribute_map
163
+ attributes = attributes.each_with_object({}) { |(k, v), h|
164
+ if (!acceptable_attribute_map.key?(k.to_sym))
165
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::PatchedWSFederationProviderRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
166
+ end
167
+ h[k.to_sym] = v
168
+ }
169
+
170
+ if attributes.key?(:'name')
171
+ self.name = attributes[:'name']
172
+ end
173
+
174
+ if attributes.key?(:'authentication_flow')
175
+ self.authentication_flow = attributes[:'authentication_flow']
176
+ end
177
+
178
+ if attributes.key?(:'authorization_flow')
179
+ self.authorization_flow = attributes[:'authorization_flow']
180
+ end
181
+
182
+ if attributes.key?(:'invalidation_flow')
183
+ self.invalidation_flow = attributes[:'invalidation_flow']
184
+ end
185
+
186
+ if attributes.key?(:'property_mappings')
187
+ if (value = attributes[:'property_mappings']).is_a?(Array)
188
+ self.property_mappings = value
189
+ end
190
+ end
191
+
192
+ if attributes.key?(:'reply_url')
193
+ self.reply_url = attributes[:'reply_url']
194
+ end
195
+
196
+ if attributes.key?(:'wtrealm')
197
+ self.wtrealm = attributes[:'wtrealm']
198
+ end
199
+
200
+ if attributes.key?(:'assertion_valid_not_before')
201
+ self.assertion_valid_not_before = attributes[:'assertion_valid_not_before']
202
+ end
203
+
204
+ if attributes.key?(:'assertion_valid_not_on_or_after')
205
+ self.assertion_valid_not_on_or_after = attributes[:'assertion_valid_not_on_or_after']
206
+ end
207
+
208
+ if attributes.key?(:'session_valid_not_on_or_after')
209
+ self.session_valid_not_on_or_after = attributes[:'session_valid_not_on_or_after']
210
+ end
211
+
212
+ if attributes.key?(:'name_id_mapping')
213
+ self.name_id_mapping = attributes[:'name_id_mapping']
214
+ end
215
+
216
+ if attributes.key?(:'authn_context_class_ref_mapping')
217
+ self.authn_context_class_ref_mapping = attributes[:'authn_context_class_ref_mapping']
218
+ end
219
+
220
+ if attributes.key?(:'digest_algorithm')
221
+ self.digest_algorithm = attributes[:'digest_algorithm']
222
+ end
223
+
224
+ if attributes.key?(:'signature_algorithm')
225
+ self.signature_algorithm = attributes[:'signature_algorithm']
226
+ end
227
+
228
+ if attributes.key?(:'signing_kp')
229
+ self.signing_kp = attributes[:'signing_kp']
230
+ end
231
+
232
+ if attributes.key?(:'encryption_kp')
233
+ self.encryption_kp = attributes[:'encryption_kp']
234
+ end
235
+
236
+ if attributes.key?(:'sign_assertion')
237
+ self.sign_assertion = attributes[:'sign_assertion']
238
+ end
239
+
240
+ if attributes.key?(:'sign_logout_request')
241
+ self.sign_logout_request = attributes[:'sign_logout_request']
242
+ end
243
+
244
+ if attributes.key?(:'default_name_id_policy')
245
+ self.default_name_id_policy = attributes[:'default_name_id_policy']
246
+ end
247
+ end
248
+
249
+ # Show invalid properties with the reasons. Usually used together with valid?
250
+ # @return Array for valid properties with the reasons
251
+ def list_invalid_properties
252
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
253
+ invalid_properties = Array.new
254
+ if !@name.nil? && @name.to_s.length < 1
255
+ invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
256
+ end
257
+
258
+ if !@reply_url.nil? && @reply_url.to_s.length < 1
259
+ invalid_properties.push('invalid value for "reply_url", the character length must be greater than or equal to 1.')
260
+ end
261
+
262
+ if !@wtrealm.nil? && @wtrealm.to_s.length < 1
263
+ invalid_properties.push('invalid value for "wtrealm", the character length must be greater than or equal to 1.')
264
+ end
265
+
266
+ if !@assertion_valid_not_before.nil? && @assertion_valid_not_before.to_s.length < 1
267
+ invalid_properties.push('invalid value for "assertion_valid_not_before", the character length must be greater than or equal to 1.')
268
+ end
269
+
270
+ if !@assertion_valid_not_on_or_after.nil? && @assertion_valid_not_on_or_after.to_s.length < 1
271
+ invalid_properties.push('invalid value for "assertion_valid_not_on_or_after", the character length must be greater than or equal to 1.')
272
+ end
273
+
274
+ if !@session_valid_not_on_or_after.nil? && @session_valid_not_on_or_after.to_s.length < 1
275
+ invalid_properties.push('invalid value for "session_valid_not_on_or_after", the character length must be greater than or equal to 1.')
276
+ end
277
+
278
+ invalid_properties
279
+ end
280
+
281
+ # Check to see if the all the properties in the model are valid
282
+ # @return true if the model is valid
283
+ def valid?
284
+ warn '[DEPRECATED] the `valid?` method is obsolete'
285
+ return false if !@name.nil? && @name.to_s.length < 1
286
+ return false if !@reply_url.nil? && @reply_url.to_s.length < 1
287
+ return false if !@wtrealm.nil? && @wtrealm.to_s.length < 1
288
+ return false if !@assertion_valid_not_before.nil? && @assertion_valid_not_before.to_s.length < 1
289
+ return false if !@assertion_valid_not_on_or_after.nil? && @assertion_valid_not_on_or_after.to_s.length < 1
290
+ return false if !@session_valid_not_on_or_after.nil? && @session_valid_not_on_or_after.to_s.length < 1
291
+ true
292
+ end
293
+
294
+ # Custom attribute writer method with validation
295
+ # @param [Object] name Value to be assigned
296
+ def name=(name)
297
+ if name.nil?
298
+ fail ArgumentError, 'name cannot be nil'
299
+ end
300
+
301
+ if name.to_s.length < 1
302
+ fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
303
+ end
304
+
305
+ @name = name
306
+ end
307
+
308
+ # Custom attribute writer method with validation
309
+ # @param [Object] reply_url Value to be assigned
310
+ def reply_url=(reply_url)
311
+ if reply_url.nil?
312
+ fail ArgumentError, 'reply_url cannot be nil'
313
+ end
314
+
315
+ if reply_url.to_s.length < 1
316
+ fail ArgumentError, 'invalid value for "reply_url", the character length must be greater than or equal to 1.'
317
+ end
318
+
319
+ @reply_url = reply_url
320
+ end
321
+
322
+ # Custom attribute writer method with validation
323
+ # @param [Object] wtrealm Value to be assigned
324
+ def wtrealm=(wtrealm)
325
+ if wtrealm.nil?
326
+ fail ArgumentError, 'wtrealm cannot be nil'
327
+ end
328
+
329
+ if wtrealm.to_s.length < 1
330
+ fail ArgumentError, 'invalid value for "wtrealm", the character length must be greater than or equal to 1.'
331
+ end
332
+
333
+ @wtrealm = wtrealm
334
+ end
335
+
336
+ # Custom attribute writer method with validation
337
+ # @param [Object] assertion_valid_not_before Value to be assigned
338
+ def assertion_valid_not_before=(assertion_valid_not_before)
339
+ if assertion_valid_not_before.nil?
340
+ fail ArgumentError, 'assertion_valid_not_before cannot be nil'
341
+ end
342
+
343
+ if assertion_valid_not_before.to_s.length < 1
344
+ fail ArgumentError, 'invalid value for "assertion_valid_not_before", the character length must be greater than or equal to 1.'
345
+ end
346
+
347
+ @assertion_valid_not_before = assertion_valid_not_before
348
+ end
349
+
350
+ # Custom attribute writer method with validation
351
+ # @param [Object] assertion_valid_not_on_or_after Value to be assigned
352
+ def assertion_valid_not_on_or_after=(assertion_valid_not_on_or_after)
353
+ if assertion_valid_not_on_or_after.nil?
354
+ fail ArgumentError, 'assertion_valid_not_on_or_after cannot be nil'
355
+ end
356
+
357
+ if assertion_valid_not_on_or_after.to_s.length < 1
358
+ fail ArgumentError, 'invalid value for "assertion_valid_not_on_or_after", the character length must be greater than or equal to 1.'
359
+ end
360
+
361
+ @assertion_valid_not_on_or_after = assertion_valid_not_on_or_after
362
+ end
363
+
364
+ # Custom attribute writer method with validation
365
+ # @param [Object] session_valid_not_on_or_after Value to be assigned
366
+ def session_valid_not_on_or_after=(session_valid_not_on_or_after)
367
+ if session_valid_not_on_or_after.nil?
368
+ fail ArgumentError, 'session_valid_not_on_or_after cannot be nil'
369
+ end
370
+
371
+ if session_valid_not_on_or_after.to_s.length < 1
372
+ fail ArgumentError, 'invalid value for "session_valid_not_on_or_after", the character length must be greater than or equal to 1.'
373
+ end
374
+
375
+ @session_valid_not_on_or_after = session_valid_not_on_or_after
376
+ end
377
+
378
+ # Checks equality by comparing each attribute.
379
+ # @param [Object] Object to be compared
380
+ def ==(o)
381
+ return true if self.equal?(o)
382
+ self.class == o.class &&
383
+ name == o.name &&
384
+ authentication_flow == o.authentication_flow &&
385
+ authorization_flow == o.authorization_flow &&
386
+ invalidation_flow == o.invalidation_flow &&
387
+ property_mappings == o.property_mappings &&
388
+ reply_url == o.reply_url &&
389
+ wtrealm == o.wtrealm &&
390
+ assertion_valid_not_before == o.assertion_valid_not_before &&
391
+ assertion_valid_not_on_or_after == o.assertion_valid_not_on_or_after &&
392
+ session_valid_not_on_or_after == o.session_valid_not_on_or_after &&
393
+ name_id_mapping == o.name_id_mapping &&
394
+ authn_context_class_ref_mapping == o.authn_context_class_ref_mapping &&
395
+ digest_algorithm == o.digest_algorithm &&
396
+ signature_algorithm == o.signature_algorithm &&
397
+ signing_kp == o.signing_kp &&
398
+ encryption_kp == o.encryption_kp &&
399
+ sign_assertion == o.sign_assertion &&
400
+ sign_logout_request == o.sign_logout_request &&
401
+ default_name_id_policy == o.default_name_id_policy
402
+ end
403
+
404
+ # @see the `==` method
405
+ # @param [Object] Object to be compared
406
+ def eql?(o)
407
+ self == o
408
+ end
409
+
410
+ # Calculates hash code according to all attributes.
411
+ # @return [Integer] Hash code
412
+ def hash
413
+ [name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, reply_url, wtrealm, assertion_valid_not_before, assertion_valid_not_on_or_after, session_valid_not_on_or_after, name_id_mapping, authn_context_class_ref_mapping, digest_algorithm, signature_algorithm, signing_kp, encryption_kp, sign_assertion, sign_logout_request, default_name_id_policy].hash
414
+ end
415
+
416
+ # Builds the object from hash
417
+ # @param [Hash] attributes Model attributes in the form of hash
418
+ # @return [Object] Returns the model itself
419
+ def self.build_from_hash(attributes)
420
+ return nil unless attributes.is_a?(Hash)
421
+ attributes = attributes.transform_keys(&:to_sym)
422
+ transformed_hash = {}
423
+ openapi_types.each_pair do |key, type|
424
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
425
+ transformed_hash["#{key}"] = nil
426
+ elsif type =~ /\AArray<(.*)>/i
427
+ # check to ensure the input is an array given that the attribute
428
+ # is documented as an array but the input is not
429
+ if attributes[attribute_map[key]].is_a?(Array)
430
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
431
+ end
432
+ elsif !attributes[attribute_map[key]].nil?
433
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
434
+ end
435
+ end
436
+ new(transformed_hash)
437
+ end
438
+
439
+ # Returns the object in the form of hash
440
+ # @return [Hash] Returns the object in the form of hash
441
+ def to_hash
442
+ hash = {}
443
+ self.class.attribute_map.each_pair do |attr, param|
444
+ value = self.send(attr)
445
+ if value.nil?
446
+ is_nullable = self.class.openapi_nullable.include?(attr)
447
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
448
+ end
449
+
450
+ hash[param] = _to_hash(value)
451
+ end
452
+ hash
453
+ end
454
+
455
+ end
456
+
457
+ end
@@ -19,9 +19,10 @@ module Authentik::Api
19
19
  AUTHENTIK_PROVIDERS_SAML_SAMLPROVIDER = "authentik_providers_saml.samlprovider".freeze
20
20
  AUTHENTIK_PROVIDERS_SCIM_SCIMPROVIDER = "authentik_providers_scim.scimprovider".freeze
21
21
  AUTHENTIK_PROVIDERS_SSF_SSFPROVIDER = "authentik_providers_ssf.ssfprovider".freeze
22
+ AUTHENTIK_PROVIDERS_WS_FEDERATION_WSFEDERATIONPROVIDER = "authentik_providers_ws_federation.wsfederationprovider".freeze
22
23
 
23
24
  def self.all_vars
24
- @all_vars ||= [AUTHENTIK_PROVIDERS_GOOGLE_WORKSPACE_GOOGLEWORKSPACEPROVIDER, AUTHENTIK_PROVIDERS_LDAP_LDAPPROVIDER, AUTHENTIK_PROVIDERS_MICROSOFT_ENTRA_MICROSOFTENTRAPROVIDER, AUTHENTIK_PROVIDERS_OAUTH2_OAUTH2PROVIDER, AUTHENTIK_PROVIDERS_PROXY_PROXYPROVIDER, AUTHENTIK_PROVIDERS_RAC_RACPROVIDER, AUTHENTIK_PROVIDERS_RADIUS_RADIUSPROVIDER, AUTHENTIK_PROVIDERS_SAML_SAMLPROVIDER, AUTHENTIK_PROVIDERS_SCIM_SCIMPROVIDER, AUTHENTIK_PROVIDERS_SSF_SSFPROVIDER].freeze
25
+ @all_vars ||= [AUTHENTIK_PROVIDERS_GOOGLE_WORKSPACE_GOOGLEWORKSPACEPROVIDER, AUTHENTIK_PROVIDERS_LDAP_LDAPPROVIDER, AUTHENTIK_PROVIDERS_MICROSOFT_ENTRA_MICROSOFTENTRAPROVIDER, AUTHENTIK_PROVIDERS_OAUTH2_OAUTH2PROVIDER, AUTHENTIK_PROVIDERS_PROXY_PROXYPROVIDER, AUTHENTIK_PROVIDERS_RAC_RACPROVIDER, AUTHENTIK_PROVIDERS_RADIUS_RADIUSPROVIDER, AUTHENTIK_PROVIDERS_SAML_SAMLPROVIDER, AUTHENTIK_PROVIDERS_SCIM_SCIMPROVIDER, AUTHENTIK_PROVIDERS_SSF_SSFPROVIDER, AUTHENTIK_PROVIDERS_WS_FEDERATION_WSFEDERATIONPROVIDER].freeze
25
26
  end
26
27
 
27
28
  # Builds the enum from string