ory-kratos-client 0.1.1.alpha1 → 0.5.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +86 -48
- data/docs/AdminApi.md +290 -85
- data/docs/CommonApi.md +111 -16
- data/docs/CompleteSelfServiceBrowserSettingsStrategyProfileFlowPayload.md +19 -0
- data/docs/CompleteSelfServiceLoginFlowWithPasswordMethod.md +21 -0
- data/docs/CompleteSelfServiceRecoveryFlowWithLinkMethod.md +19 -0
- data/docs/CompleteSelfServiceSettingsFlowWithPasswordMethod.md +19 -0
- data/docs/CompleteSelfServiceVerificationFlowWithLinkMethod.md +19 -0
- data/docs/CreateIdentity.md +19 -0
- data/docs/CreateRecoveryLink.md +19 -0
- data/docs/ErrorContainer.md +2 -2
- data/docs/Form.md +3 -3
- data/docs/FormField.md +8 -8
- data/docs/GenericErrorPayload.md +1 -1
- data/docs/Identity.md +9 -7
- data/docs/LoginFlow.md +33 -0
- data/docs/LoginFlowMethod.md +19 -0
- data/docs/LoginFlowMethodConfig.md +25 -0
- data/docs/LoginRequest.md +4 -0
- data/docs/LoginRequestMethodConfig.md +3 -3
- data/docs/LoginViaApiResponse.md +19 -0
- data/docs/Message.md +23 -0
- data/docs/ProviderCredentialsConfig.md +19 -0
- data/docs/PublicApi.md +806 -141
- data/docs/RecoveryAddress.md +21 -0
- data/docs/RecoveryFlow.md +33 -0
- data/docs/RecoveryFlowMethod.md +19 -0
- data/docs/RecoveryFlowMethodConfig.md +23 -0
- data/docs/RecoveryLink.md +19 -0
- data/docs/RecoveryRequest.md +31 -0
- data/docs/RecoveryRequestMethod.md +19 -0
- data/docs/RegistrationFlow.md +31 -0
- data/docs/RegistrationFlowMethod.md +19 -0
- data/docs/RegistrationFlowMethodConfig.md +25 -0
- data/docs/RegistrationRequest.md +3 -1
- data/docs/RegistrationRequestMethodConfig.md +3 -3
- data/docs/RegistrationViaApiResponse.md +21 -0
- data/docs/RequestMethodConfig.md +23 -0
- data/docs/RevokeSession.md +17 -0
- data/docs/Session.md +6 -4
- data/docs/SettingsFlow.md +35 -0
- data/docs/SettingsFlowMethod.md +19 -0
- data/docs/SettingsFlowMethodConfig.md +23 -0
- data/docs/SettingsRequest.md +33 -0
- data/docs/SettingsRequestMethod.md +19 -0
- data/docs/SettingsViaApiResponse.md +19 -0
- data/docs/UpdateIdentity.md +19 -0
- data/docs/VerifiableAddress.md +4 -4
- data/docs/VerificationFlow.md +33 -0
- data/docs/VerificationFlowMethod.md +19 -0
- data/docs/VerificationFlowMethodConfig.md +23 -0
- data/docs/VerificationRequest.md +3 -1
- data/lib/ory-kratos-client.rb +31 -14
- data/lib/ory-kratos-client/api/admin_api.rb +379 -128
- data/lib/ory-kratos-client/api/common_api.rb +150 -27
- data/lib/ory-kratos-client/api/health_api.rb +2 -2
- data/lib/ory-kratos-client/api/public_api.rb +1000 -234
- data/lib/ory-kratos-client/api/version_api.rb +2 -2
- data/lib/ory-kratos-client/api_client.rb +10 -7
- data/lib/ory-kratos-client/api_error.rb +2 -2
- data/lib/ory-kratos-client/configuration.rb +9 -2
- data/lib/ory-kratos-client/models/complete_self_service_browser_settings_strategy_profile_flow_payload.rb +222 -0
- data/lib/ory-kratos-client/models/complete_self_service_login_flow_with_password_method.rb +227 -0
- data/lib/ory-kratos-client/models/complete_self_service_recovery_flow_with_link_method.rb +217 -0
- data/lib/ory-kratos-client/models/complete_self_service_settings_flow_with_password_method.rb +222 -0
- data/lib/ory-kratos-client/models/complete_self_service_verification_flow_with_link_method.rb +217 -0
- data/lib/ory-kratos-client/models/create_identity.rb +227 -0
- data/lib/ory-kratos-client/models/create_recovery_link.rb +238 -0
- data/lib/ory-kratos-client/models/error_container.rb +13 -2
- data/lib/ory-kratos-client/models/form.rb +15 -16
- data/lib/ory-kratos-client/models/form_field.rb +16 -22
- data/lib/ory-kratos-client/models/generic_error.rb +2 -2
- data/lib/ory-kratos-client/models/generic_error_payload.rb +4 -7
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +2 -2
- data/lib/ory-kratos-client/models/health_status.rb +2 -2
- data/lib/ory-kratos-client/models/identity.rb +53 -35
- data/lib/ory-kratos-client/models/login_flow.rb +315 -0
- data/lib/ory-kratos-client/models/login_flow_method.rb +226 -0
- data/lib/ory-kratos-client/models/login_flow_method_config.rb +267 -0
- data/lib/ory-kratos-client/models/login_request.rb +24 -3
- data/lib/ory-kratos-client/models/login_request_method.rb +2 -2
- data/lib/ory-kratos-client/models/login_request_method_config.rb +15 -16
- data/lib/ory-kratos-client/models/login_via_api_response.rb +227 -0
- data/lib/ory-kratos-client/models/message.rb +234 -0
- data/lib/ory-kratos-client/models/provider_credentials_config.rb +215 -0
- data/lib/ory-kratos-client/models/recovery_address.rb +239 -0
- data/lib/ory-kratos-client/models/recovery_flow.rb +319 -0
- data/lib/ory-kratos-client/models/recovery_flow_method.rb +226 -0
- data/lib/ory-kratos-client/models/recovery_flow_method_config.rb +255 -0
- data/lib/ory-kratos-client/models/recovery_link.rb +222 -0
- data/lib/ory-kratos-client/models/recovery_request.rb +309 -0
- data/lib/ory-kratos-client/models/recovery_request_method.rb +216 -0
- data/lib/ory-kratos-client/models/registration_flow.rb +304 -0
- data/lib/ory-kratos-client/models/registration_flow_method.rb +226 -0
- data/lib/ory-kratos-client/models/registration_flow_method_config.rb +267 -0
- data/lib/ory-kratos-client/models/registration_request.rb +14 -8
- data/lib/ory-kratos-client/models/registration_request_method.rb +2 -2
- data/lib/ory-kratos-client/models/registration_request_method_config.rb +15 -16
- data/lib/ory-kratos-client/models/registration_via_api_response.rb +236 -0
- data/lib/ory-kratos-client/models/request_method_config.rb +255 -0
- data/lib/ory-kratos-client/models/revoke_session.rb +212 -0
- data/lib/ory-kratos-client/models/session.rb +29 -20
- data/lib/ory-kratos-client/models/settings_flow.rb +333 -0
- data/lib/ory-kratos-client/models/settings_flow_method.rb +226 -0
- data/lib/ory-kratos-client/models/settings_flow_method_config.rb +255 -0
- data/lib/ory-kratos-client/models/settings_request.rb +323 -0
- data/lib/ory-kratos-client/models/settings_request_method.rb +216 -0
- data/lib/ory-kratos-client/models/settings_via_api_response.rb +226 -0
- data/lib/ory-kratos-client/models/update_identity.rb +222 -0
- data/lib/ory-kratos-client/models/verifiable_address.rb +17 -22
- data/lib/ory-kratos-client/models/verification_flow.rb +299 -0
- data/lib/ory-kratos-client/models/verification_flow_method.rb +226 -0
- data/lib/ory-kratos-client/models/verification_flow_method_config.rb +255 -0
- data/lib/ory-kratos-client/models/verification_request.rb +15 -4
- data/lib/ory-kratos-client/models/version.rb +2 -2
- data/lib/ory-kratos-client/version.rb +3 -3
- data/ory-kratos-client.gemspec +2 -2
- data/spec/models/complete_self_service_browser_settings_strategy_profile_flow_payload_spec.rb +47 -0
- data/spec/models/complete_self_service_login_flow_with_password_method_spec.rb +53 -0
- data/spec/models/complete_self_service_recovery_flow_with_link_method_spec.rb +47 -0
- data/spec/models/complete_self_service_settings_flow_with_password_method_spec.rb +47 -0
- data/spec/models/complete_self_service_verification_flow_with_link_method_spec.rb +47 -0
- data/spec/models/create_identity_spec.rb +47 -0
- data/spec/models/create_recovery_link_spec.rb +47 -0
- data/spec/models/login_flow_method_config_spec.rb +65 -0
- data/spec/models/login_flow_method_spec.rb +47 -0
- data/spec/models/login_flow_spec.rb +89 -0
- data/spec/models/login_via_api_response_spec.rb +47 -0
- data/spec/models/message_spec.rb +59 -0
- data/spec/models/provider_credentials_config_spec.rb +47 -0
- data/spec/models/recovery_address_spec.rb +53 -0
- data/spec/models/recovery_flow_method_config_spec.rb +59 -0
- data/spec/models/recovery_flow_method_spec.rb +47 -0
- data/spec/models/recovery_flow_spec.rb +89 -0
- data/spec/models/recovery_link_spec.rb +47 -0
- data/spec/models/recovery_request_method_spec.rb +47 -0
- data/spec/models/recovery_request_spec.rb +83 -0
- data/spec/models/registration_flow_method_config_spec.rb +65 -0
- data/spec/models/registration_flow_method_spec.rb +47 -0
- data/spec/models/registration_flow_spec.rb +83 -0
- data/spec/models/registration_via_api_response_spec.rb +53 -0
- data/spec/models/request_method_config_spec.rb +59 -0
- data/spec/models/revoke_session_spec.rb +41 -0
- data/spec/models/settings_flow_method_config_spec.rb +59 -0
- data/spec/models/settings_flow_method_spec.rb +47 -0
- data/spec/models/settings_flow_spec.rb +95 -0
- data/spec/models/settings_request_method_spec.rb +47 -0
- data/spec/models/settings_request_spec.rb +83 -0
- data/spec/models/settings_via_api_response_spec.rb +47 -0
- data/spec/models/update_identity_spec.rb +47 -0
- data/spec/models/verification_flow_method_config_spec.rb +59 -0
- data/spec/models/verification_flow_method_spec.rb +47 -0
- data/spec/models/verification_flow_spec.rb +89 -0
- metadata +161 -17
@@ -0,0 +1,267 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory Kratos
|
3
|
+
|
4
|
+
#Welcome to the ORY Kratos HTTP API documentation!
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.5.0-alpha.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module OryHydraClient
|
16
|
+
class LoginFlowMethodConfig
|
17
|
+
# Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`.
|
18
|
+
attr_accessor :action
|
19
|
+
|
20
|
+
# Fields contains multiple fields
|
21
|
+
attr_accessor :fields
|
22
|
+
|
23
|
+
attr_accessor :messages
|
24
|
+
|
25
|
+
# Method is the form method (e.g. POST)
|
26
|
+
attr_accessor :method
|
27
|
+
|
28
|
+
# Providers is set for the \"oidc\" flow method.
|
29
|
+
attr_accessor :providers
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'action' => :'action',
|
35
|
+
:'fields' => :'fields',
|
36
|
+
:'messages' => :'messages',
|
37
|
+
:'method' => :'method',
|
38
|
+
:'providers' => :'providers'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'action' => :'String',
|
46
|
+
:'fields' => :'Array<FormField>',
|
47
|
+
:'messages' => :'Array<Message>',
|
48
|
+
:'method' => :'String',
|
49
|
+
:'providers' => :'Array<FormField>'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# List of attributes with nullable: true
|
54
|
+
def self.openapi_nullable
|
55
|
+
Set.new([
|
56
|
+
])
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
if (!attributes.is_a?(Hash))
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::LoginFlowMethodConfig` initialize method"
|
64
|
+
end
|
65
|
+
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::LoginFlowMethodConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
|
+
end
|
71
|
+
h[k.to_sym] = v
|
72
|
+
}
|
73
|
+
|
74
|
+
if attributes.key?(:'action')
|
75
|
+
self.action = attributes[:'action']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'fields')
|
79
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
80
|
+
self.fields = value
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'messages')
|
85
|
+
if (value = attributes[:'messages']).is_a?(Array)
|
86
|
+
self.messages = value
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'method')
|
91
|
+
self.method = attributes[:'method']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'providers')
|
95
|
+
if (value = attributes[:'providers']).is_a?(Array)
|
96
|
+
self.providers = value
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
102
|
+
# @return Array for valid properties with the reasons
|
103
|
+
def list_invalid_properties
|
104
|
+
invalid_properties = Array.new
|
105
|
+
if @action.nil?
|
106
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
if @fields.nil?
|
110
|
+
invalid_properties.push('invalid value for "fields", fields cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
if @method.nil?
|
114
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
115
|
+
end
|
116
|
+
|
117
|
+
invalid_properties
|
118
|
+
end
|
119
|
+
|
120
|
+
# Check to see if the all the properties in the model are valid
|
121
|
+
# @return true if the model is valid
|
122
|
+
def valid?
|
123
|
+
return false if @action.nil?
|
124
|
+
return false if @fields.nil?
|
125
|
+
return false if @method.nil?
|
126
|
+
true
|
127
|
+
end
|
128
|
+
|
129
|
+
# Checks equality by comparing each attribute.
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def ==(o)
|
132
|
+
return true if self.equal?(o)
|
133
|
+
self.class == o.class &&
|
134
|
+
action == o.action &&
|
135
|
+
fields == o.fields &&
|
136
|
+
messages == o.messages &&
|
137
|
+
method == o.method &&
|
138
|
+
providers == o.providers
|
139
|
+
end
|
140
|
+
|
141
|
+
# @see the `==` method
|
142
|
+
# @param [Object] Object to be compared
|
143
|
+
def eql?(o)
|
144
|
+
self == o
|
145
|
+
end
|
146
|
+
|
147
|
+
# Calculates hash code according to all attributes.
|
148
|
+
# @return [Integer] Hash code
|
149
|
+
def hash
|
150
|
+
[action, fields, messages, method, providers].hash
|
151
|
+
end
|
152
|
+
|
153
|
+
# Builds the object from hash
|
154
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
155
|
+
# @return [Object] Returns the model itself
|
156
|
+
def self.build_from_hash(attributes)
|
157
|
+
new.build_from_hash(attributes)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Builds the object from hash
|
161
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
162
|
+
# @return [Object] Returns the model itself
|
163
|
+
def build_from_hash(attributes)
|
164
|
+
return nil unless attributes.is_a?(Hash)
|
165
|
+
self.class.openapi_types.each_pair do |key, type|
|
166
|
+
if type =~ /\AArray<(.*)>/i
|
167
|
+
# check to ensure the input is an array given that the attribute
|
168
|
+
# is documented as an array but the input is not
|
169
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
170
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
171
|
+
end
|
172
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
173
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
174
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
175
|
+
end
|
176
|
+
|
177
|
+
self
|
178
|
+
end
|
179
|
+
|
180
|
+
# Deserializes the data based on type
|
181
|
+
# @param string type Data type
|
182
|
+
# @param string value Value to be deserialized
|
183
|
+
# @return [Object] Deserialized data
|
184
|
+
def _deserialize(type, value)
|
185
|
+
case type.to_sym
|
186
|
+
when :DateTime
|
187
|
+
DateTime.parse(value)
|
188
|
+
when :Date
|
189
|
+
Date.parse(value)
|
190
|
+
when :String
|
191
|
+
value.to_s
|
192
|
+
when :Integer
|
193
|
+
value.to_i
|
194
|
+
when :Float
|
195
|
+
value.to_f
|
196
|
+
when :Boolean
|
197
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
198
|
+
true
|
199
|
+
else
|
200
|
+
false
|
201
|
+
end
|
202
|
+
when :Object
|
203
|
+
# generic object (usually a Hash), return directly
|
204
|
+
value
|
205
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
206
|
+
inner_type = Regexp.last_match[:inner_type]
|
207
|
+
value.map { |v| _deserialize(inner_type, v) }
|
208
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
209
|
+
k_type = Regexp.last_match[:k_type]
|
210
|
+
v_type = Regexp.last_match[:v_type]
|
211
|
+
{}.tap do |hash|
|
212
|
+
value.each do |k, v|
|
213
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
else # model
|
217
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Returns the string representation of the object
|
222
|
+
# @return [String] String presentation of the object
|
223
|
+
def to_s
|
224
|
+
to_hash.to_s
|
225
|
+
end
|
226
|
+
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
229
|
+
def to_body
|
230
|
+
to_hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the object in the form of hash
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
235
|
+
def to_hash
|
236
|
+
hash = {}
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
238
|
+
value = self.send(attr)
|
239
|
+
if value.nil?
|
240
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
|
+
end
|
243
|
+
|
244
|
+
hash[param] = _to_hash(value)
|
245
|
+
end
|
246
|
+
hash
|
247
|
+
end
|
248
|
+
|
249
|
+
# Outputs non-array value in the form of hash
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
251
|
+
# @param [Object] value Any valid value
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
253
|
+
def _to_hash(value)
|
254
|
+
if value.is_a?(Array)
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
256
|
+
elsif value.is_a?(Hash)
|
257
|
+
{}.tap do |hash|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
259
|
+
end
|
260
|
+
elsif value.respond_to? :to_hash
|
261
|
+
value.to_hash
|
262
|
+
else
|
263
|
+
value
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: v0.4.6-alpha.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,11 +20,16 @@ module OryHydraClient
|
|
20
20
|
# ExpiresAt is the time (UTC) when the request expires. If the user still wishes to log in, a new request has to be initiated.
|
21
21
|
attr_accessor :expires_at
|
22
22
|
|
23
|
+
# Forced stores whether this login request should enforce reauthentication.
|
24
|
+
attr_accessor :forced
|
25
|
+
|
23
26
|
attr_accessor :id
|
24
27
|
|
25
28
|
# IssuedAt is the time (UTC) when the request occurred.
|
26
29
|
attr_accessor :issued_at
|
27
30
|
|
31
|
+
attr_accessor :messages
|
32
|
+
|
28
33
|
# Methods contains context for all enabled login methods. If a login request has been processed, but for example the password is incorrect, this will contain error messages.
|
29
34
|
attr_accessor :methods
|
30
35
|
|
@@ -36,8 +41,10 @@ module OryHydraClient
|
|
36
41
|
{
|
37
42
|
:'active' => :'active',
|
38
43
|
:'expires_at' => :'expires_at',
|
44
|
+
:'forced' => :'forced',
|
39
45
|
:'id' => :'id',
|
40
46
|
:'issued_at' => :'issued_at',
|
47
|
+
:'messages' => :'messages',
|
41
48
|
:'methods' => :'methods',
|
42
49
|
:'request_url' => :'request_url'
|
43
50
|
}
|
@@ -48,8 +55,10 @@ module OryHydraClient
|
|
48
55
|
{
|
49
56
|
:'active' => :'String',
|
50
57
|
:'expires_at' => :'DateTime',
|
58
|
+
:'forced' => :'Boolean',
|
51
59
|
:'id' => :'String',
|
52
60
|
:'issued_at' => :'DateTime',
|
61
|
+
:'messages' => :'Array<Message>',
|
53
62
|
:'methods' => :'Hash<String, LoginRequestMethod>',
|
54
63
|
:'request_url' => :'String'
|
55
64
|
}
|
@@ -84,6 +93,10 @@ module OryHydraClient
|
|
84
93
|
self.expires_at = attributes[:'expires_at']
|
85
94
|
end
|
86
95
|
|
96
|
+
if attributes.key?(:'forced')
|
97
|
+
self.forced = attributes[:'forced']
|
98
|
+
end
|
99
|
+
|
87
100
|
if attributes.key?(:'id')
|
88
101
|
self.id = attributes[:'id']
|
89
102
|
end
|
@@ -92,6 +105,12 @@ module OryHydraClient
|
|
92
105
|
self.issued_at = attributes[:'issued_at']
|
93
106
|
end
|
94
107
|
|
108
|
+
if attributes.key?(:'messages')
|
109
|
+
if (value = attributes[:'messages']).is_a?(Array)
|
110
|
+
self.messages = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
95
114
|
if attributes.key?(:'methods')
|
96
115
|
if (value = attributes[:'methods']).is_a?(Hash)
|
97
116
|
self.methods = value
|
@@ -148,8 +167,10 @@ module OryHydraClient
|
|
148
167
|
self.class == o.class &&
|
149
168
|
active == o.active &&
|
150
169
|
expires_at == o.expires_at &&
|
170
|
+
forced == o.forced &&
|
151
171
|
id == o.id &&
|
152
172
|
issued_at == o.issued_at &&
|
173
|
+
messages == o.messages &&
|
153
174
|
methods == o.methods &&
|
154
175
|
request_url == o.request_url
|
155
176
|
end
|
@@ -163,7 +184,7 @@ module OryHydraClient
|
|
163
184
|
# Calculates hash code according to all attributes.
|
164
185
|
# @return [Integer] Hash code
|
165
186
|
def hash
|
166
|
-
[active, expires_at, id, issued_at, methods, request_url].hash
|
187
|
+
[active, expires_at, forced, id, issued_at, messages, methods, request_url].hash
|
167
188
|
end
|
168
189
|
|
169
190
|
# Builds the object from hash
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: v0.4.6-alpha.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Kratos HTTP API documentation!
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: v0.4.6-alpha.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,15 +14,14 @@ require 'date'
|
|
14
14
|
|
15
15
|
module OryHydraClient
|
16
16
|
class LoginRequestMethodConfig
|
17
|
-
# Action should be used as the form action URL
|
17
|
+
# Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`.
|
18
18
|
attr_accessor :action
|
19
19
|
|
20
|
-
# Errors contains all form errors. These will be duplicates of the individual field errors.
|
21
|
-
attr_accessor :errors
|
22
|
-
|
23
20
|
# Fields contains multiple fields
|
24
21
|
attr_accessor :fields
|
25
22
|
|
23
|
+
attr_accessor :messages
|
24
|
+
|
26
25
|
# Method is the form method (e.g. POST)
|
27
26
|
attr_accessor :method
|
28
27
|
|
@@ -33,8 +32,8 @@ module OryHydraClient
|
|
33
32
|
def self.attribute_map
|
34
33
|
{
|
35
34
|
:'action' => :'action',
|
36
|
-
:'errors' => :'errors',
|
37
35
|
:'fields' => :'fields',
|
36
|
+
:'messages' => :'messages',
|
38
37
|
:'method' => :'method',
|
39
38
|
:'providers' => :'providers'
|
40
39
|
}
|
@@ -44,8 +43,8 @@ module OryHydraClient
|
|
44
43
|
def self.openapi_types
|
45
44
|
{
|
46
45
|
:'action' => :'String',
|
47
|
-
:'errors' => :'Array<Error>',
|
48
46
|
:'fields' => :'Array<FormField>',
|
47
|
+
:'messages' => :'Array<Message>',
|
49
48
|
:'method' => :'String',
|
50
49
|
:'providers' => :'Array<FormField>'
|
51
50
|
}
|
@@ -76,18 +75,18 @@ module OryHydraClient
|
|
76
75
|
self.action = attributes[:'action']
|
77
76
|
end
|
78
77
|
|
79
|
-
if attributes.key?(:'errors')
|
80
|
-
if (value = attributes[:'errors']).is_a?(Array)
|
81
|
-
self.errors = value
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
78
|
if attributes.key?(:'fields')
|
86
79
|
if (value = attributes[:'fields']).is_a?(Array)
|
87
80
|
self.fields = value
|
88
81
|
end
|
89
82
|
end
|
90
83
|
|
84
|
+
if attributes.key?(:'messages')
|
85
|
+
if (value = attributes[:'messages']).is_a?(Array)
|
86
|
+
self.messages = value
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
91
90
|
if attributes.key?(:'method')
|
92
91
|
self.method = attributes[:'method']
|
93
92
|
end
|
@@ -133,8 +132,8 @@ module OryHydraClient
|
|
133
132
|
return true if self.equal?(o)
|
134
133
|
self.class == o.class &&
|
135
134
|
action == o.action &&
|
136
|
-
errors == o.errors &&
|
137
135
|
fields == o.fields &&
|
136
|
+
messages == o.messages &&
|
138
137
|
method == o.method &&
|
139
138
|
providers == o.providers
|
140
139
|
end
|
@@ -148,7 +147,7 @@ module OryHydraClient
|
|
148
147
|
# Calculates hash code according to all attributes.
|
149
148
|
# @return [Integer] Hash code
|
150
149
|
def hash
|
151
|
-
[action,
|
150
|
+
[action, fields, messages, method, providers].hash
|
152
151
|
end
|
153
152
|
|
154
153
|
# Builds the object from hash
|