authentik-api 2026.5.6 → 2026.8.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.
Files changed (184) hide show
  1. checksums.yaml +4 -4
  2. data/README_API.md +104 -8
  3. data/lib/authentik/api/api/admin_api.rb +3 -0
  4. data/lib/authentik/api/api/core_api.rb +651 -27
  5. data/lib/authentik/api/api/endpoints_api.rb +7 -7
  6. data/lib/authentik/api/api/events_api.rb +35 -2
  7. data/lib/authentik/api/api/lifecycle_api.rb +258 -0
  8. data/lib/authentik/api/api/providers_api.rb +401 -0
  9. data/lib/authentik/api/api/requests_api.rb +1858 -0
  10. data/lib/authentik/api/api/sources_api.rb +6 -3
  11. data/lib/authentik/api/configuration.rb +14 -0
  12. data/lib/authentik/api/inflector.rb +2 -1
  13. data/lib/authentik/api/models/app_enum.rb +3 -1
  14. data/lib/authentik/api/models/application.rb +27 -1
  15. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +1 -11
  16. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +1 -11
  17. data/lib/authentik/api/models/brand.rb +31 -1
  18. data/lib/authentik/api/models/brand_request.rb +31 -1
  19. data/lib/authentik/api/models/captcha_stage.rb +32 -1
  20. data/lib/authentik/api/models/captcha_stage_request.rb +32 -1
  21. data/lib/authentik/api/models/compatibility_mode_enum.rb +2 -1
  22. data/lib/authentik/api/models/content_type.rb +30 -4
  23. data/lib/authentik/api/models/current_brand.rb +45 -1
  24. data/lib/authentik/api/models/current_brand_flags.rb +1 -55
  25. data/lib/authentik/api/models/device_user_binding.rb +39 -1
  26. data/lib/authentik/api/models/event_actions.rb +6 -1
  27. data/lib/authentik/api/models/grant_request.rb +382 -0
  28. data/lib/authentik/api/models/{reviewer_group.rb → grant_request_create_request.rb} +29 -42
  29. data/lib/authentik/api/models/{grant_types_enum.rb → grant_type_enum.rb} +5 -4
  30. data/lib/authentik/api/models/last_task_status_enum.rb +2 -1
  31. data/lib/authentik/api/models/ldap_outpost_config.rb +1 -1
  32. data/lib/authentik/api/models/ldap_source.rb +14 -4
  33. data/lib/authentik/api/models/ldap_source_request.rb +14 -4
  34. data/lib/authentik/api/models/lifecycle_rule.rb +2 -2
  35. data/lib/authentik/api/models/model_enum.rb +8 -1
  36. data/lib/authentik/api/models/notification_mode_enum.rb +35 -0
  37. data/lib/authentik/api/models/o_auth2_dynamic_client_registration.rb +291 -0
  38. data/lib/authentik/api/models/o_auth2_dynamic_client_registration_request.rb +303 -0
  39. data/lib/authentik/api/models/o_auth2_provider.rb +1 -1
  40. data/lib/authentik/api/models/o_auth2_provider_request.rb +1 -1
  41. data/lib/authentik/api/models/o_auth2_provider_setup_urls.rb +16 -4
  42. data/lib/authentik/api/models/o_auth_source.rb +0 -60
  43. data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
  44. data/lib/authentik/api/models/object_attribute.rb +420 -0
  45. data/lib/authentik/api/models/object_attribute_request.rb +358 -0
  46. data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
  47. data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
  48. data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
  49. data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
  50. data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
  51. data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
  52. data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
  53. data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
  54. data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
  55. data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
  56. data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
  57. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
  58. data/lib/authentik/api/models/patched_brand_request.rb +31 -1
  59. data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
  60. data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
  61. data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
  62. data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
  63. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
  64. data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
  65. data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
  66. data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
  67. data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
  68. data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
  69. data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
  70. data/lib/authentik/api/models/patched_settings_request.rb +30 -1
  71. data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
  72. data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
  73. data/lib/authentik/api/models/policy_binding.rb +42 -4
  74. data/lib/authentik/api/models/provider_type_enum.rb +2 -3
  75. data/lib/authentik/api/models/related_rule.rb +2 -2
  76. data/lib/authentik/api/models/related_target.rb +266 -0
  77. data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
  78. data/lib/authentik/api/models/request_rule.rb +329 -0
  79. data/lib/authentik/api/models/request_rule_binding.rb +353 -0
  80. data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
  81. data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
  82. data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
  83. data/lib/authentik/api/models/request_rule_request.rb +284 -0
  84. data/lib/authentik/api/models/request_status.rb +36 -0
  85. data/lib/authentik/api/models/requestable_target.rb +278 -0
  86. data/lib/authentik/api/models/review.rb +1 -1
  87. data/lib/authentik/api/models/saml_source.rb +35 -8
  88. data/lib/authentik/api/models/saml_source_request.rb +8 -8
  89. data/lib/authentik/api/models/saml_version_enum.rb +34 -0
  90. data/lib/authentik/api/models/session_user.rb +32 -4
  91. data/lib/authentik/api/models/settings.rb +30 -1
  92. data/lib/authentik/api/models/settings_request.rb +30 -1
  93. data/lib/authentik/api/models/system_info.rb +31 -4
  94. data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
  95. data/lib/authentik/api/models/task_status_enum.rb +2 -1
  96. data/lib/authentik/api/models/user_offboarding.rb +379 -0
  97. data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
  98. data/lib/authentik/api/models/user_self.rb +28 -1
  99. data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
  100. data/lib/authentik/api/models/user_switch_request.rb +173 -0
  101. data/lib/authentik/api/models/user_switch_response.rb +159 -0
  102. data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
  103. data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
  104. data/lib/authentik/api/version.rb +1 -1
  105. data/spec/api/admin_api_spec.rb +1 -0
  106. data/spec/api/core_api_spec.rb +119 -0
  107. data/spec/api/events_api_spec.rb +11 -0
  108. data/spec/api/lifecycle_api_spec.rb +47 -0
  109. data/spec/api/providers_api_spec.rb +73 -0
  110. data/spec/api/requests_api_spec.rb +365 -0
  111. data/spec/api/sources_api_spec.rb +2 -1
  112. data/spec/models/application_spec.rb +6 -0
  113. data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
  114. data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
  115. data/spec/models/brand_request_spec.rb +18 -0
  116. data/spec/models/brand_spec.rb +18 -0
  117. data/spec/models/captcha_stage_request_spec.rb +6 -0
  118. data/spec/models/captcha_stage_spec.rb +6 -0
  119. data/spec/models/content_type_spec.rb +6 -0
  120. data/spec/models/current_brand_flags_spec.rb +0 -12
  121. data/spec/models/current_brand_spec.rb +18 -0
  122. data/spec/models/device_user_binding_spec.rb +12 -0
  123. data/spec/models/grant_request_create_request_spec.rb +36 -0
  124. data/spec/models/grant_request_spec.rb +90 -0
  125. data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
  126. data/spec/models/ldap_source_request_spec.rb +6 -0
  127. data/spec/models/ldap_source_spec.rb +6 -0
  128. data/spec/models/notification_mode_enum_spec.rb +24 -0
  129. data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  130. data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
  131. data/spec/models/o_auth2_provider_setup_urls_spec.rb +6 -0
  132. data/spec/models/object_attribute_request_spec.rb +84 -0
  133. data/spec/models/object_attribute_spec.rb +108 -0
  134. data/spec/models/object_attribute_type_enum_spec.rb +24 -0
  135. data/spec/models/offboarding_action_enum_spec.rb +24 -0
  136. data/spec/models/offboarding_status_enum_spec.rb +24 -0
  137. data/spec/models/paginated_grant_request_list_spec.rb +42 -0
  138. data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
  139. data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
  140. data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
  141. data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
  142. data/spec/models/paginated_request_rule_list_spec.rb +42 -0
  143. data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
  144. data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
  145. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
  146. data/spec/models/patched_brand_request_spec.rb +18 -0
  147. data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
  148. data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
  149. data/spec/models/patched_ldap_source_request_spec.rb +6 -0
  150. data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  151. data/spec/models/patched_object_attribute_request_spec.rb +84 -0
  152. data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
  153. data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
  154. data/spec/models/patched_request_rule_request_spec.rb +72 -0
  155. data/spec/models/patched_saml_source_request_spec.rb +1 -1
  156. data/spec/models/patched_settings_request_spec.rb +6 -0
  157. data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
  158. data/spec/models/policy_binding_spec.rb +12 -0
  159. data/spec/models/related_target_spec.rb +54 -0
  160. data/spec/models/request_content_type_enum_spec.rb +24 -0
  161. data/spec/models/request_rule_binding_request_spec.rb +60 -0
  162. data/spec/models/request_rule_binding_spec.rb +84 -0
  163. data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
  164. data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
  165. data/spec/models/request_rule_request_spec.rb +72 -0
  166. data/spec/models/request_rule_spec.rb +84 -0
  167. data/spec/models/request_status_spec.rb +24 -0
  168. data/spec/models/requestable_target_spec.rb +60 -0
  169. data/spec/models/saml_source_request_spec.rb +1 -1
  170. data/spec/models/saml_source_spec.rb +7 -1
  171. data/spec/models/saml_version_enum_spec.rb +24 -0
  172. data/spec/models/session_user_spec.rb +6 -0
  173. data/spec/models/settings_request_spec.rb +6 -0
  174. data/spec/models/settings_spec.rb +6 -0
  175. data/spec/models/system_info_spec.rb +6 -0
  176. data/spec/models/user_offboarding_request_spec.rb +54 -0
  177. data/spec/models/user_offboarding_spec.rb +90 -0
  178. data/spec/models/user_self_spec.rb +6 -0
  179. data/spec/models/user_switch_action_enum_spec.rb +24 -0
  180. data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
  181. data/spec/models/user_switch_response_spec.rb +30 -0
  182. data/spec/models/ws_federation_provider_request_spec.rb +6 -0
  183. data/spec/models/ws_federation_provider_spec.rb +12 -0
  184. metadata +127 -10
@@ -0,0 +1,159 @@
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 PatchedRequestRuleChildBindingRequest < ApiModelBase
12
+ attr_accessor :uuid
13
+
14
+ attr_accessor :binding
15
+
16
+ attr_accessor :target
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'uuid' => :'uuid',
22
+ :'binding' => :'binding',
23
+ :'target' => :'target'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'uuid' => :'String',
41
+ :'binding' => :'String',
42
+ :'target' => :'String'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::PatchedRequestRuleChildBindingRequest` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ acceptable_attribute_map = self.class.acceptable_attribute_map
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!acceptable_attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::PatchedRequestRuleChildBindingRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'uuid')
69
+ self.uuid = attributes[:'uuid']
70
+ end
71
+
72
+ if attributes.key?(:'binding')
73
+ self.binding = attributes[:'binding']
74
+ end
75
+
76
+ if attributes.key?(:'target')
77
+ self.target = attributes[:'target']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
85
+ invalid_properties = Array.new
86
+ invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ warn '[DEPRECATED] the `valid?` method is obsolete'
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ uuid == o.uuid &&
102
+ binding == o.binding &&
103
+ target == o.target
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Integer] Hash code
114
+ def hash
115
+ [uuid, binding, target].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def self.build_from_hash(attributes)
122
+ return nil unless attributes.is_a?(Hash)
123
+ attributes = attributes.transform_keys(&:to_sym)
124
+ transformed_hash = {}
125
+ openapi_types.each_pair do |key, type|
126
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
127
+ transformed_hash["#{key}"] = nil
128
+ elsif type =~ /\AArray<(.*)>/i
129
+ # check to ensure the input is an array given that the attribute
130
+ # is documented as an array but the input is not
131
+ if attributes[attribute_map[key]].is_a?(Array)
132
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
133
+ end
134
+ elsif !attributes[attribute_map[key]].nil?
135
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
136
+ end
137
+ end
138
+ new(transformed_hash)
139
+ end
140
+
141
+ # Returns the object in the form of hash
142
+ # @return [Hash] Returns the object in the form of hash
143
+ def to_hash
144
+ hash = {}
145
+ self.class.attribute_map.each_pair do |attr, param|
146
+ value = self.send(attr)
147
+ if value.nil?
148
+ is_nullable = self.class.openapi_nullable.include?(attr)
149
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
150
+ end
151
+
152
+ hash[param] = _to_hash(value)
153
+ end
154
+ hash
155
+ end
156
+
157
+ end
158
+
159
+ end
@@ -0,0 +1,277 @@
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
+ # Mixin to validate that a valid enterprise license exists before allowing to save the object
12
+ class PatchedRequestRuleRequest < ApiModelBase
13
+ attr_accessor :uuid
14
+
15
+ attr_accessor :policy_engine_mode
16
+
17
+ attr_accessor :name
18
+
19
+ attr_accessor :notification_transports
20
+
21
+ attr_accessor :notification_mode
22
+
23
+ attr_accessor :min_reviewers
24
+
25
+ attr_accessor :min_reviewers_is_per_group
26
+
27
+ attr_accessor :request_flow
28
+
29
+ class EnumAttributeValidator
30
+ attr_reader :datatype
31
+ attr_reader :allowable_values
32
+
33
+ def initialize(datatype, allowable_values)
34
+ @allowable_values = allowable_values.map do |value|
35
+ case datatype.to_s
36
+ when /Integer/i
37
+ value.to_i
38
+ when /Float/i
39
+ value.to_f
40
+ else
41
+ value
42
+ end
43
+ end
44
+ end
45
+
46
+ def valid?(value)
47
+ !value || allowable_values.include?(value)
48
+ end
49
+ end
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'uuid' => :'uuid',
55
+ :'policy_engine_mode' => :'policy_engine_mode',
56
+ :'name' => :'name',
57
+ :'notification_transports' => :'notification_transports',
58
+ :'notification_mode' => :'notification_mode',
59
+ :'min_reviewers' => :'min_reviewers',
60
+ :'min_reviewers_is_per_group' => :'min_reviewers_is_per_group',
61
+ :'request_flow' => :'request_flow'
62
+ }
63
+ end
64
+
65
+ # Returns attribute mapping this model knows about
66
+ def self.acceptable_attribute_map
67
+ attribute_map
68
+ end
69
+
70
+ # Returns all the JSON keys this model knows about
71
+ def self.acceptable_attributes
72
+ acceptable_attribute_map.values
73
+ end
74
+
75
+ # Attribute type mapping.
76
+ def self.openapi_types
77
+ {
78
+ :'uuid' => :'String',
79
+ :'policy_engine_mode' => :'PolicyEngineMode',
80
+ :'name' => :'String',
81
+ :'notification_transports' => :'Array<String>',
82
+ :'notification_mode' => :'NotificationModeEnum',
83
+ :'min_reviewers' => :'Integer',
84
+ :'min_reviewers_is_per_group' => :'Boolean',
85
+ :'request_flow' => :'String'
86
+ }
87
+ end
88
+
89
+ # List of attributes with nullable: true
90
+ def self.openapi_nullable
91
+ Set.new([
92
+ :'request_flow'
93
+ ])
94
+ end
95
+
96
+ # Initializes the object
97
+ # @param [Hash] attributes Model attributes in the form of hash
98
+ def initialize(attributes = {})
99
+ if (!attributes.is_a?(Hash))
100
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::PatchedRequestRuleRequest` initialize method"
101
+ end
102
+
103
+ # check to see if the attribute exists and convert string to symbol for hash key
104
+ acceptable_attribute_map = self.class.acceptable_attribute_map
105
+ attributes = attributes.each_with_object({}) { |(k, v), h|
106
+ if (!acceptable_attribute_map.key?(k.to_sym))
107
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::PatchedRequestRuleRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
108
+ end
109
+ h[k.to_sym] = v
110
+ }
111
+
112
+ if attributes.key?(:'uuid')
113
+ self.uuid = attributes[:'uuid']
114
+ end
115
+
116
+ if attributes.key?(:'policy_engine_mode')
117
+ self.policy_engine_mode = attributes[:'policy_engine_mode']
118
+ end
119
+
120
+ if attributes.key?(:'name')
121
+ self.name = attributes[:'name']
122
+ end
123
+
124
+ if attributes.key?(:'notification_transports')
125
+ if (value = attributes[:'notification_transports']).is_a?(Array)
126
+ self.notification_transports = value
127
+ end
128
+ end
129
+
130
+ if attributes.key?(:'notification_mode')
131
+ self.notification_mode = attributes[:'notification_mode']
132
+ end
133
+
134
+ if attributes.key?(:'min_reviewers')
135
+ self.min_reviewers = attributes[:'min_reviewers']
136
+ end
137
+
138
+ if attributes.key?(:'min_reviewers_is_per_group')
139
+ self.min_reviewers_is_per_group = attributes[:'min_reviewers_is_per_group']
140
+ end
141
+
142
+ if attributes.key?(:'request_flow')
143
+ self.request_flow = attributes[:'request_flow']
144
+ end
145
+ end
146
+
147
+ # Show invalid properties with the reasons. Usually used together with valid?
148
+ # @return Array for valid properties with the reasons
149
+ def list_invalid_properties
150
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
151
+ invalid_properties = Array.new
152
+ if !@name.nil? && @name.to_s.length < 1
153
+ invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
154
+ end
155
+
156
+ if !@min_reviewers.nil? && @min_reviewers > 32767
157
+ invalid_properties.push('invalid value for "min_reviewers", must be smaller than or equal to 32767.')
158
+ end
159
+
160
+ if !@min_reviewers.nil? && @min_reviewers < 0
161
+ invalid_properties.push('invalid value for "min_reviewers", must be greater than or equal to 0.')
162
+ end
163
+
164
+ invalid_properties
165
+ end
166
+
167
+ # Check to see if the all the properties in the model are valid
168
+ # @return true if the model is valid
169
+ def valid?
170
+ warn '[DEPRECATED] the `valid?` method is obsolete'
171
+ return false if !@name.nil? && @name.to_s.length < 1
172
+ return false if !@min_reviewers.nil? && @min_reviewers > 32767
173
+ return false if !@min_reviewers.nil? && @min_reviewers < 0
174
+ true
175
+ end
176
+
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] name Value to be assigned
179
+ def name=(name)
180
+ if name.nil?
181
+ fail ArgumentError, 'name cannot be nil'
182
+ end
183
+
184
+ if name.to_s.length < 1
185
+ fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
186
+ end
187
+
188
+ @name = name
189
+ end
190
+
191
+ # Custom attribute writer method with validation
192
+ # @param [Object] min_reviewers Value to be assigned
193
+ def min_reviewers=(min_reviewers)
194
+ if min_reviewers.nil?
195
+ fail ArgumentError, 'min_reviewers cannot be nil'
196
+ end
197
+
198
+ if min_reviewers > 32767
199
+ fail ArgumentError, 'invalid value for "min_reviewers", must be smaller than or equal to 32767.'
200
+ end
201
+
202
+ if min_reviewers < 0
203
+ fail ArgumentError, 'invalid value for "min_reviewers", must be greater than or equal to 0.'
204
+ end
205
+
206
+ @min_reviewers = min_reviewers
207
+ end
208
+
209
+ # Checks equality by comparing each attribute.
210
+ # @param [Object] Object to be compared
211
+ def ==(o)
212
+ return true if self.equal?(o)
213
+ self.class == o.class &&
214
+ uuid == o.uuid &&
215
+ policy_engine_mode == o.policy_engine_mode &&
216
+ name == o.name &&
217
+ notification_transports == o.notification_transports &&
218
+ notification_mode == o.notification_mode &&
219
+ min_reviewers == o.min_reviewers &&
220
+ min_reviewers_is_per_group == o.min_reviewers_is_per_group &&
221
+ request_flow == o.request_flow
222
+ end
223
+
224
+ # @see the `==` method
225
+ # @param [Object] Object to be compared
226
+ def eql?(o)
227
+ self == o
228
+ end
229
+
230
+ # Calculates hash code according to all attributes.
231
+ # @return [Integer] Hash code
232
+ def hash
233
+ [uuid, policy_engine_mode, name, notification_transports, notification_mode, min_reviewers, min_reviewers_is_per_group, request_flow].hash
234
+ end
235
+
236
+ # Builds the object from hash
237
+ # @param [Hash] attributes Model attributes in the form of hash
238
+ # @return [Object] Returns the model itself
239
+ def self.build_from_hash(attributes)
240
+ return nil unless attributes.is_a?(Hash)
241
+ attributes = attributes.transform_keys(&:to_sym)
242
+ transformed_hash = {}
243
+ openapi_types.each_pair do |key, type|
244
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
245
+ transformed_hash["#{key}"] = nil
246
+ elsif type =~ /\AArray<(.*)>/i
247
+ # check to ensure the input is an array given that the attribute
248
+ # is documented as an array but the input is not
249
+ if attributes[attribute_map[key]].is_a?(Array)
250
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
251
+ end
252
+ elsif !attributes[attribute_map[key]].nil?
253
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
254
+ end
255
+ end
256
+ new(transformed_hash)
257
+ end
258
+
259
+ # Returns the object in the form of hash
260
+ # @return [Hash] Returns the object in the form of hash
261
+ def to_hash
262
+ hash = {}
263
+ self.class.attribute_map.each_pair do |attr, param|
264
+ value = self.send(attr)
265
+ if value.nil?
266
+ is_nullable = self.class.openapi_nullable.include?(attr)
267
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
268
+ end
269
+
270
+ hash[param] = _to_hash(value)
271
+ end
272
+ hash
273
+ end
274
+
275
+ end
276
+
277
+ end
@@ -46,8 +46,8 @@ module Authentik::Api
46
46
  # Flow used before authentication.
47
47
  attr_accessor :pre_authentication_flow
48
48
 
49
- # Also known as Entity ID. Defaults the Metadata URL.
50
- attr_accessor :issuer
49
+ # Also known as Entity ID. Defaults to the Metadata URL.
50
+ attr_accessor :issuer_override
51
51
 
52
52
  # URL that the initial Login request is sent to.
53
53
  attr_accessor :sso_url
@@ -125,7 +125,7 @@ module Authentik::Api
125
125
  :'icon' => :'icon',
126
126
  :'group_matching_mode' => :'group_matching_mode',
127
127
  :'pre_authentication_flow' => :'pre_authentication_flow',
128
- :'issuer' => :'issuer',
128
+ :'issuer_override' => :'issuer_override',
129
129
  :'sso_url' => :'sso_url',
130
130
  :'slo_url' => :'slo_url',
131
131
  :'allow_idp_initiated' => :'allow_idp_initiated',
@@ -170,7 +170,7 @@ module Authentik::Api
170
170
  :'icon' => :'String',
171
171
  :'group_matching_mode' => :'GroupMatchingModeEnum',
172
172
  :'pre_authentication_flow' => :'String',
173
- :'issuer' => :'String',
173
+ :'issuer_override' => :'String',
174
174
  :'sso_url' => :'String',
175
175
  :'slo_url' => :'String',
176
176
  :'allow_idp_initiated' => :'Boolean',
@@ -276,8 +276,8 @@ module Authentik::Api
276
276
  self.pre_authentication_flow = attributes[:'pre_authentication_flow']
277
277
  end
278
278
 
279
- if attributes.key?(:'issuer')
280
- self.issuer = attributes[:'issuer']
279
+ if attributes.key?(:'issuer_override')
280
+ self.issuer_override = attributes[:'issuer_override']
281
281
  end
282
282
 
283
283
  if attributes.key?(:'sso_url')
@@ -477,7 +477,7 @@ module Authentik::Api
477
477
  icon == o.icon &&
478
478
  group_matching_mode == o.group_matching_mode &&
479
479
  pre_authentication_flow == o.pre_authentication_flow &&
480
- issuer == o.issuer &&
480
+ issuer_override == o.issuer_override &&
481
481
  sso_url == o.sso_url &&
482
482
  slo_url == o.slo_url &&
483
483
  allow_idp_initiated == o.allow_idp_initiated &&
@@ -503,7 +503,7 @@ module Authentik::Api
503
503
  # Calculates hash code according to all attributes.
504
504
  # @return [Integer] Hash code
505
505
  def hash
506
- [name, slug, enabled, promoted, authentication_flow, enrollment_flow, user_property_mappings, group_property_mappings, policy_engine_mode, user_matching_mode, user_path_template, icon, group_matching_mode, pre_authentication_flow, issuer, sso_url, slo_url, allow_idp_initiated, force_authn, name_id_policy, binding_type, verification_kp, signing_kp, digest_algorithm, signature_algorithm, temporary_user_delete_after, encryption_kp, signed_assertion, signed_response].hash
506
+ [name, slug, enabled, promoted, authentication_flow, enrollment_flow, user_property_mappings, group_property_mappings, policy_engine_mode, user_matching_mode, user_path_template, icon, group_matching_mode, pre_authentication_flow, issuer_override, sso_url, slo_url, allow_idp_initiated, force_authn, name_id_policy, binding_type, verification_kp, signing_kp, digest_algorithm, signature_algorithm, temporary_user_delete_after, encryption_kp, signed_assertion, signed_response].hash
507
507
  end
508
508
 
509
509
  # Builds the object from hash
@@ -13,6 +13,9 @@ module Authentik::Api
13
13
  # Configure how authentik should show avatars for users.
14
14
  attr_accessor :avatars
15
15
 
16
+ # Configure the base URL under which this authentik instance is reachable, e.g. https://authentik.company
17
+ attr_accessor :base_url
18
+
16
19
  # Enable the ability for users to change their name.
17
20
  attr_accessor :default_user_change_name
18
21
 
@@ -60,6 +63,7 @@ module Authentik::Api
60
63
  def self.attribute_map
61
64
  {
62
65
  :'avatars' => :'avatars',
66
+ :'base_url' => :'base_url',
63
67
  :'default_user_change_name' => :'default_user_change_name',
64
68
  :'default_user_change_email' => :'default_user_change_email',
65
69
  :'default_user_change_username' => :'default_user_change_username',
@@ -92,6 +96,7 @@ module Authentik::Api
92
96
  def self.openapi_types
93
97
  {
94
98
  :'avatars' => :'String',
99
+ :'base_url' => :'String',
95
100
  :'default_user_change_name' => :'Boolean',
96
101
  :'default_user_change_email' => :'Boolean',
97
102
  :'default_user_change_username' => :'Boolean',
@@ -137,6 +142,10 @@ module Authentik::Api
137
142
  self.avatars = attributes[:'avatars']
138
143
  end
139
144
 
145
+ if attributes.key?(:'base_url')
146
+ self.base_url = attributes[:'base_url']
147
+ end
148
+
140
149
  if attributes.key?(:'default_user_change_name')
141
150
  self.default_user_change_name = attributes[:'default_user_change_name']
142
151
  end
@@ -207,6 +216,10 @@ module Authentik::Api
207
216
  invalid_properties.push('invalid value for "avatars", the character length must be greater than or equal to 1.')
208
217
  end
209
218
 
219
+ if !@base_url.nil? && @base_url.to_s.length > 200
220
+ invalid_properties.push('invalid value for "base_url", the character length must be smaller than or equal to 200.')
221
+ end
222
+
210
223
  if !@event_retention.nil? && @event_retention.to_s.length < 1
211
224
  invalid_properties.push('invalid value for "event_retention", the character length must be greater than or equal to 1.')
212
225
  end
@@ -263,6 +276,7 @@ module Authentik::Api
263
276
  def valid?
264
277
  warn '[DEPRECATED] the `valid?` method is obsolete'
265
278
  return false if !@avatars.nil? && @avatars.to_s.length < 1
279
+ return false if !@base_url.nil? && @base_url.to_s.length > 200
266
280
  return false if !@event_retention.nil? && @event_retention.to_s.length < 1
267
281
  return false if !@reputation_lower_limit.nil? && @reputation_lower_limit > 0
268
282
  return false if !@reputation_lower_limit.nil? && @reputation_lower_limit < -2147483648
@@ -292,6 +306,20 @@ module Authentik::Api
292
306
  @avatars = avatars
293
307
  end
294
308
 
309
+ # Custom attribute writer method with validation
310
+ # @param [Object] base_url Value to be assigned
311
+ def base_url=(base_url)
312
+ if base_url.nil?
313
+ fail ArgumentError, 'base_url cannot be nil'
314
+ end
315
+
316
+ if base_url.to_s.length > 200
317
+ fail ArgumentError, 'invalid value for "base_url", the character length must be smaller than or equal to 200.'
318
+ end
319
+
320
+ @base_url = base_url
321
+ end
322
+
295
323
  # Custom attribute writer method with validation
296
324
  # @param [Object] event_retention Value to be assigned
297
325
  def event_retention=(event_retention)
@@ -416,6 +444,7 @@ module Authentik::Api
416
444
  return true if self.equal?(o)
417
445
  self.class == o.class &&
418
446
  avatars == o.avatars &&
447
+ base_url == o.base_url &&
419
448
  default_user_change_name == o.default_user_change_name &&
420
449
  default_user_change_email == o.default_user_change_email &&
421
450
  default_user_change_username == o.default_user_change_username &&
@@ -442,7 +471,7 @@ module Authentik::Api
442
471
  # Calculates hash code according to all attributes.
443
472
  # @return [Integer] Hash code
444
473
  def hash
445
- [avatars, default_user_change_name, default_user_change_email, default_user_change_username, event_retention, reputation_lower_limit, reputation_upper_limit, footer_links, gdpr_compliance, impersonation, impersonation_require_reason, default_token_duration, default_token_length, pagination_default_page_size, pagination_max_page_size, flags].hash
474
+ [avatars, base_url, default_user_change_name, default_user_change_email, default_user_change_username, event_retention, reputation_lower_limit, reputation_upper_limit, footer_links, gdpr_compliance, impersonation, impersonation_require_reason, default_token_duration, default_token_length, pagination_default_page_size, pagination_max_page_size, flags].hash
446
475
  end
447
476
 
448
477
  # Builds the object from hash
@@ -9,7 +9,7 @@ require 'time'
9
9
 
10
10
  module Authentik::Api
11
11
  class PatchedSettingsRequestFlags < ApiModelBase
12
- # Configure if applications without any policy/group/user bindings should be accessible to any user.
12
+ # Applications with no policies bound can be accessed by any user.
13
13
  attr_accessor :core_default_app_access
14
14
 
15
15
  # Include additional information in audit logs, may incur a performance penalty.
@@ -42,6 +42,9 @@ module Authentik::Api
42
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
43
  attr_accessor :authn_context_class_ref_mapping
44
44
 
45
+ # SAML assertion version to issue in the security token. Microsoft Entra ID and classic ADFS-style relying parties typically require SAML 1.1.
46
+ attr_accessor :saml_version
47
+
45
48
  attr_accessor :digest_algorithm
46
49
 
47
50
  attr_accessor :signature_algorithm
@@ -95,6 +98,7 @@ module Authentik::Api
95
98
  :'session_valid_not_on_or_after' => :'session_valid_not_on_or_after',
96
99
  :'name_id_mapping' => :'name_id_mapping',
97
100
  :'authn_context_class_ref_mapping' => :'authn_context_class_ref_mapping',
101
+ :'saml_version' => :'saml_version',
98
102
  :'digest_algorithm' => :'digest_algorithm',
99
103
  :'signature_algorithm' => :'signature_algorithm',
100
104
  :'signing_kp' => :'signing_kp',
@@ -130,6 +134,7 @@ module Authentik::Api
130
134
  :'session_valid_not_on_or_after' => :'String',
131
135
  :'name_id_mapping' => :'String',
132
136
  :'authn_context_class_ref_mapping' => :'String',
137
+ :'saml_version' => :'SamlVersionEnum',
133
138
  :'digest_algorithm' => :'DigestAlgorithmEnum',
134
139
  :'signature_algorithm' => :'SignatureAlgorithmEnum',
135
140
  :'signing_kp' => :'String',
@@ -217,6 +222,10 @@ module Authentik::Api
217
222
  self.authn_context_class_ref_mapping = attributes[:'authn_context_class_ref_mapping']
218
223
  end
219
224
 
225
+ if attributes.key?(:'saml_version')
226
+ self.saml_version = attributes[:'saml_version']
227
+ end
228
+
220
229
  if attributes.key?(:'digest_algorithm')
221
230
  self.digest_algorithm = attributes[:'digest_algorithm']
222
231
  end
@@ -392,6 +401,7 @@ module Authentik::Api
392
401
  session_valid_not_on_or_after == o.session_valid_not_on_or_after &&
393
402
  name_id_mapping == o.name_id_mapping &&
394
403
  authn_context_class_ref_mapping == o.authn_context_class_ref_mapping &&
404
+ saml_version == o.saml_version &&
395
405
  digest_algorithm == o.digest_algorithm &&
396
406
  signature_algorithm == o.signature_algorithm &&
397
407
  signing_kp == o.signing_kp &&
@@ -410,7 +420,7 @@ module Authentik::Api
410
420
  # Calculates hash code according to all attributes.
411
421
  # @return [Integer] Hash code
412
422
  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
423
+ [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, saml_version, digest_algorithm, signature_algorithm, signing_kp, encryption_kp, sign_assertion, sign_logout_request, default_name_id_policy].hash
414
424
  end
415
425
 
416
426
  # Builds the object from hash