ory-hydra-client 0.0.0.alpha63 → 1.2.0.alpha2

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 (103) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +37 -45
  4. data/docs/AcceptConsentRequest.md +2 -4
  5. data/docs/AcceptLoginRequest.md +1 -1
  6. data/docs/AdminApi.md +70 -110
  7. data/docs/AttributeTypeAndValue.md +19 -0
  8. data/docs/Certificate.md +101 -0
  9. data/docs/CompletedRequest.md +1 -1
  10. data/docs/ConsentRequest.md +4 -4
  11. data/docs/ConsentRequestSession.md +2 -2
  12. data/docs/Extension.md +21 -0
  13. data/docs/IPNet.md +19 -0
  14. data/docs/JSONWebKey.md +12 -12
  15. data/docs/LoginRequest.md +7 -7
  16. data/docs/Name.md +27 -0
  17. data/docs/OAuth2Client.md +11 -13
  18. data/docs/OAuth2TokenIntrospection.md +3 -5
  19. data/docs/Oauth2TokenResponse.md +6 -6
  20. data/docs/OpenIDConnectContext.md +1 -1
  21. data/docs/PreviousConsentSession.md +2 -4
  22. data/docs/PublicApi.md +15 -15
  23. data/docs/RejectRequest.md +5 -5
  24. data/docs/URL.md +33 -0
  25. data/docs/WellKnown.md +1 -3
  26. data/lib/ory-hydra-client.rb +9 -16
  27. data/lib/ory-hydra-client/api/admin_api.rb +47 -113
  28. data/lib/ory-hydra-client/api/public_api.rb +12 -12
  29. data/lib/ory-hydra-client/api_client.rb +7 -9
  30. data/lib/ory-hydra-client/api_error.rb +2 -2
  31. data/lib/ory-hydra-client/configuration.rb +2 -2
  32. data/lib/ory-hydra-client/models/accept_consent_request.rb +5 -12
  33. data/lib/ory-hydra-client/models/accept_login_request.rb +7 -4
  34. data/lib/ory-hydra-client/models/{plugin_config_rootfs.rb → attribute_type_and_value.rb} +21 -22
  35. data/lib/ory-hydra-client/models/certificate.rb +683 -0
  36. data/lib/ory-hydra-client/models/completed_request.rb +2 -7
  37. data/lib/ory-hydra-client/models/consent_request.rb +10 -10
  38. data/lib/ory-hydra-client/models/consent_request_session.rb +10 -6
  39. data/lib/ory-hydra-client/models/{plugin_config_network.rb → extension.rb} +37 -19
  40. data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +2 -2
  41. data/lib/ory-hydra-client/models/generic_error.rb +2 -2
  42. data/lib/ory-hydra-client/models/health_not_ready_status.rb +2 -2
  43. data/lib/ory-hydra-client/models/health_status.rb +2 -2
  44. data/lib/ory-hydra-client/models/{plugin_config_user.rb → ip_net.rb} +23 -21
  45. data/lib/ory-hydra-client/models/json_web_key.rb +15 -3
  46. data/lib/ory-hydra-client/models/json_web_key_set.rb +3 -3
  47. data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +3 -2
  48. data/lib/ory-hydra-client/models/login_request.rb +5 -38
  49. data/lib/ory-hydra-client/models/logout_request.rb +2 -2
  50. data/lib/ory-hydra-client/models/{plugin_settings.rb → name.rb} +61 -58
  51. data/lib/ory-hydra-client/models/o_auth2_client.rb +14 -15
  52. data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +9 -17
  53. data/lib/ory-hydra-client/models/oauth2_token_response.rb +8 -2
  54. data/lib/ory-hydra-client/models/oauth_token_response.rb +2 -2
  55. data/lib/ory-hydra-client/models/open_id_connect_context.rb +6 -4
  56. data/lib/ory-hydra-client/models/previous_consent_session.rb +6 -13
  57. data/lib/ory-hydra-client/models/reject_request.rb +7 -7
  58. data/lib/ory-hydra-client/models/{plugin_device.rb → url.rb} +77 -49
  59. data/lib/ory-hydra-client/models/userinfo_response.rb +3 -3
  60. data/lib/ory-hydra-client/models/version.rb +3 -2
  61. data/lib/ory-hydra-client/models/well_known.rb +3 -15
  62. data/lib/ory-hydra-client/version.rb +3 -3
  63. data/ory-hydra-client.gemspec +2 -2
  64. data/spec/models/{plugin_config_rootfs_spec.rb → attribute_type_and_value_spec.rb} +9 -9
  65. data/spec/models/certificate_spec.rb +293 -0
  66. data/spec/models/{plugin_interface_type_spec.rb → extension_spec.rb} +10 -10
  67. data/spec/models/{plugin_config_user_spec.rb → ip_net_spec.rb} +9 -9
  68. data/spec/models/{plugin_mount_spec.rb → name_spec.rb} +13 -19
  69. data/spec/models/url_spec.rb +89 -0
  70. metadata +43 -75
  71. data/docs/ContainerWaitOKBodyError.md +0 -17
  72. data/docs/PluginConfig.md +0 -47
  73. data/docs/PluginConfigArgs.md +0 -23
  74. data/docs/PluginConfigInterface.md +0 -19
  75. data/docs/PluginConfigLinux.md +0 -21
  76. data/docs/PluginConfigNetwork.md +0 -17
  77. data/docs/PluginConfigRootfs.md +0 -19
  78. data/docs/PluginConfigUser.md +0 -19
  79. data/docs/PluginDevice.md +0 -23
  80. data/docs/PluginEnv.md +0 -23
  81. data/docs/PluginInterfaceType.md +0 -21
  82. data/docs/PluginMount.md +0 -29
  83. data/docs/PluginSettings.md +0 -23
  84. data/docs/VolumeUsageData.md +0 -19
  85. data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +0 -208
  86. data/lib/ory-hydra-client/models/plugin_config.rb +0 -422
  87. data/lib/ory-hydra-client/models/plugin_config_args.rb +0 -262
  88. data/lib/ory-hydra-client/models/plugin_config_interface.rb +0 -230
  89. data/lib/ory-hydra-client/models/plugin_config_linux.rb +0 -247
  90. data/lib/ory-hydra-client/models/plugin_env.rb +0 -260
  91. data/lib/ory-hydra-client/models/plugin_interface_type.rb +0 -243
  92. data/lib/ory-hydra-client/models/plugin_mount.rb +0 -307
  93. data/lib/ory-hydra-client/models/volume_usage_data.rb +0 -228
  94. data/spec/models/container_wait_ok_body_error_spec.rb +0 -41
  95. data/spec/models/plugin_config_args_spec.rb +0 -59
  96. data/spec/models/plugin_config_interface_spec.rb +0 -47
  97. data/spec/models/plugin_config_linux_spec.rb +0 -53
  98. data/spec/models/plugin_config_network_spec.rb +0 -41
  99. data/spec/models/plugin_config_spec.rb +0 -131
  100. data/spec/models/plugin_device_spec.rb +0 -59
  101. data/spec/models/plugin_env_spec.rb +0 -59
  102. data/spec/models/plugin_settings_spec.rb +0 -59
  103. data/spec/models/volume_usage_data_spec.rb +0 -47
@@ -3,17 +3,17 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.63
6
+ The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # It is important that this model object is named JSONWebKeySet for \"swagger generate spec\" to generate only on definition of a JSONWebKeySet. Since one with the same name is previously defined as client.Client.JSONWebKeys and this one is last, this one will be effectively written in the swagger spec.
16
+ # JSONWebKeySet JSON web key set
17
17
  class JSONWebKeySet
18
18
  # The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired.
19
19
  attr_accessor :keys
@@ -3,16 +3,17 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.63
6
+ The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
+ # JSONWebKeySetGeneratorRequest JSONWebKeySetGeneratorRequest JSONWebKeySetGeneratorRequest json web key set generator request
16
17
  class JsonWebKeySetGeneratorRequest
17
18
  # The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\"
18
19
  attr_accessor :alg
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.63
6
+ The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module OryHydraClient
16
16
  class LoginRequest
17
- # ID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
17
+ # Challenge is the identifier (\"login challenge\") of the login request. It is used to identify the session.
18
18
  attr_accessor :challenge
19
19
 
20
20
  attr_accessor :client
@@ -24,8 +24,10 @@ module OryHydraClient
24
24
  # RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters.
25
25
  attr_accessor :request_url
26
26
 
27
+ # RequestedScope contains the access token audience as requested by the OAuth 2.0 Client.
27
28
  attr_accessor :requested_access_token_audience
28
29
 
30
+ # RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client.
29
31
  attr_accessor :requested_scope
30
32
 
31
33
  # SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user.
@@ -133,47 +135,12 @@ module OryHydraClient
133
135
  # @return Array for valid properties with the reasons
134
136
  def list_invalid_properties
135
137
  invalid_properties = Array.new
136
- if @challenge.nil?
137
- invalid_properties.push('invalid value for "challenge", challenge cannot be nil.')
138
- end
139
-
140
- if @client.nil?
141
- invalid_properties.push('invalid value for "client", client cannot be nil.')
142
- end
143
-
144
- if @request_url.nil?
145
- invalid_properties.push('invalid value for "request_url", request_url cannot be nil.')
146
- end
147
-
148
- if @requested_access_token_audience.nil?
149
- invalid_properties.push('invalid value for "requested_access_token_audience", requested_access_token_audience cannot be nil.')
150
- end
151
-
152
- if @requested_scope.nil?
153
- invalid_properties.push('invalid value for "requested_scope", requested_scope cannot be nil.')
154
- end
155
-
156
- if @skip.nil?
157
- invalid_properties.push('invalid value for "skip", skip cannot be nil.')
158
- end
159
-
160
- if @subject.nil?
161
- invalid_properties.push('invalid value for "subject", subject cannot be nil.')
162
- end
163
-
164
138
  invalid_properties
165
139
  end
166
140
 
167
141
  # Check to see if the all the properties in the model are valid
168
142
  # @return true if the model is valid
169
143
  def valid?
170
- return false if @challenge.nil?
171
- return false if @client.nil?
172
- return false if @request_url.nil?
173
- return false if @requested_access_token_audience.nil?
174
- return false if @requested_scope.nil?
175
- return false if @skip.nil?
176
- return false if @subject.nil?
177
144
  true
178
145
  end
179
146
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.63
6
+ The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
@@ -3,46 +3,57 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.63
6
+ The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- class PluginSettings
17
- # args
18
- attr_accessor :args
16
+ # Name Name Name Name represents an X.509 distinguished name. This only includes the common elements of a DN. When parsing, all elements are stored in Names and non-standard elements can be extracted from there. When marshaling, elements in ExtraNames are appended and override other values with the same OID.
17
+ class Name
18
+ # country
19
+ attr_accessor :country
19
20
 
20
- # devices
21
- attr_accessor :devices
21
+ # extra names
22
+ attr_accessor :extra_names
22
23
 
23
- # env
24
- attr_accessor :env
24
+ # locality
25
+ attr_accessor :locality
25
26
 
26
- # mounts
27
- attr_accessor :mounts
27
+ # names
28
+ attr_accessor :names
29
+
30
+ # serial number
31
+ attr_accessor :serial_number
32
+
33
+ # street address
34
+ attr_accessor :street_address
28
35
 
29
36
  # Attribute mapping from ruby-style variable name to JSON key.
30
37
  def self.attribute_map
31
38
  {
32
- :'args' => :'Args',
33
- :'devices' => :'Devices',
34
- :'env' => :'Env',
35
- :'mounts' => :'Mounts'
39
+ :'country' => :'Country',
40
+ :'extra_names' => :'ExtraNames',
41
+ :'locality' => :'Locality',
42
+ :'names' => :'Names',
43
+ :'serial_number' => :'SerialNumber',
44
+ :'street_address' => :'StreetAddress'
36
45
  }
37
46
  end
38
47
 
39
48
  # Attribute type mapping.
40
49
  def self.openapi_types
41
50
  {
42
- :'args' => :'Array<String>',
43
- :'devices' => :'Array<PluginDevice>',
44
- :'env' => :'Array<String>',
45
- :'mounts' => :'Array<PluginMount>'
51
+ :'country' => :'Array<String>',
52
+ :'extra_names' => :'Array<AttributeTypeAndValue>',
53
+ :'locality' => :'Array<String>',
54
+ :'names' => :'Array<AttributeTypeAndValue>',
55
+ :'serial_number' => :'String',
56
+ :'street_address' => :'Array<String>'
46
57
  }
47
58
  end
48
59
 
@@ -56,38 +67,48 @@ module OryHydraClient
56
67
  # @param [Hash] attributes Model attributes in the form of hash
57
68
  def initialize(attributes = {})
58
69
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::PluginSettings` initialize method"
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::Name` initialize method"
60
71
  end
61
72
 
62
73
  # check to see if the attribute exists and convert string to symbol for hash key
63
74
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
75
  if (!self.class.attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::PluginSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::Name`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
77
  end
67
78
  h[k.to_sym] = v
68
79
  }
69
80
 
70
- if attributes.key?(:'args')
71
- if (value = attributes[:'args']).is_a?(Array)
72
- self.args = value
81
+ if attributes.key?(:'country')
82
+ if (value = attributes[:'country']).is_a?(Array)
83
+ self.country = value
84
+ end
85
+ end
86
+
87
+ if attributes.key?(:'extra_names')
88
+ if (value = attributes[:'extra_names']).is_a?(Array)
89
+ self.extra_names = value
73
90
  end
74
91
  end
75
92
 
76
- if attributes.key?(:'devices')
77
- if (value = attributes[:'devices']).is_a?(Array)
78
- self.devices = value
93
+ if attributes.key?(:'locality')
94
+ if (value = attributes[:'locality']).is_a?(Array)
95
+ self.locality = value
79
96
  end
80
97
  end
81
98
 
82
- if attributes.key?(:'env')
83
- if (value = attributes[:'env']).is_a?(Array)
84
- self.env = value
99
+ if attributes.key?(:'names')
100
+ if (value = attributes[:'names']).is_a?(Array)
101
+ self.names = value
85
102
  end
86
103
  end
87
104
 
88
- if attributes.key?(:'mounts')
89
- if (value = attributes[:'mounts']).is_a?(Array)
90
- self.mounts = value
105
+ if attributes.key?(:'serial_number')
106
+ self.serial_number = attributes[:'serial_number']
107
+ end
108
+
109
+ if attributes.key?(:'street_address')
110
+ if (value = attributes[:'street_address']).is_a?(Array)
111
+ self.street_address = value
91
112
  end
92
113
  end
93
114
  end
@@ -96,32 +117,12 @@ module OryHydraClient
96
117
  # @return Array for valid properties with the reasons
97
118
  def list_invalid_properties
98
119
  invalid_properties = Array.new
99
- if @args.nil?
100
- invalid_properties.push('invalid value for "args", args cannot be nil.')
101
- end
102
-
103
- if @devices.nil?
104
- invalid_properties.push('invalid value for "devices", devices cannot be nil.')
105
- end
106
-
107
- if @env.nil?
108
- invalid_properties.push('invalid value for "env", env cannot be nil.')
109
- end
110
-
111
- if @mounts.nil?
112
- invalid_properties.push('invalid value for "mounts", mounts cannot be nil.')
113
- end
114
-
115
120
  invalid_properties
116
121
  end
117
122
 
118
123
  # Check to see if the all the properties in the model are valid
119
124
  # @return true if the model is valid
120
125
  def valid?
121
- return false if @args.nil?
122
- return false if @devices.nil?
123
- return false if @env.nil?
124
- return false if @mounts.nil?
125
126
  true
126
127
  end
127
128
 
@@ -130,10 +131,12 @@ module OryHydraClient
130
131
  def ==(o)
131
132
  return true if self.equal?(o)
132
133
  self.class == o.class &&
133
- args == o.args &&
134
- devices == o.devices &&
135
- env == o.env &&
136
- mounts == o.mounts
134
+ country == o.country &&
135
+ extra_names == o.extra_names &&
136
+ locality == o.locality &&
137
+ names == o.names &&
138
+ serial_number == o.serial_number &&
139
+ street_address == o.street_address
137
140
  end
138
141
 
139
142
  # @see the `==` method
@@ -145,7 +148,7 @@ module OryHydraClient
145
148
  # Calculates hash code according to all attributes.
146
149
  # @return [Integer] Hash code
147
150
  def hash
148
- [args, devices, env, mounts].hash
151
+ [country, extra_names, locality, names, serial_number, street_address].hash
149
152
  end
150
153
 
151
154
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.63
6
+ The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
@@ -14,8 +14,10 @@ require 'date'
14
14
 
15
15
  module OryHydraClient
16
16
  class OAuth2Client
17
+ # AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work.
17
18
  attr_accessor :allowed_cors_origins
18
19
 
20
+ # Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces.
19
21
  attr_accessor :audience
20
22
 
21
23
  # Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false.
@@ -24,7 +26,7 @@ module OryHydraClient
24
26
  # RP URL that will cause the RP to log itself out when sent a Logout Token by the OP.
25
27
  attr_accessor :backchannel_logout_uri
26
28
 
27
- # ID is the id for this client.
29
+ # ClientID is the id for this client.
28
30
  attr_accessor :client_id
29
31
 
30
32
  # Name is the human-readable string name of the client to be presented to the end-user during authorization.
@@ -39,6 +41,7 @@ module OryHydraClient
39
41
  # ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion.
40
42
  attr_accessor :client_uri
41
43
 
44
+ # Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses.
42
45
  attr_accessor :contacts
43
46
 
44
47
  # CreatedAt returns the timestamp of the client's creation.
@@ -50,6 +53,7 @@ module OryHydraClient
50
53
  # RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be.
51
54
  attr_accessor :frontchannel_logout_uri
52
55
 
56
+ # GrantTypes is an array of grant types the client is allowed to use.
53
57
  attr_accessor :grant_types
54
58
 
55
59
  attr_accessor :jwks
@@ -60,6 +64,7 @@ module OryHydraClient
60
64
  # LogoURI is an URL string that references a logo for the client.
61
65
  attr_accessor :logo_uri
62
66
 
67
+ # Metadata is arbitrary data.
63
68
  attr_accessor :metadata
64
69
 
65
70
  # Owner is a string identifying the owner of the OAuth 2.0 Client.
@@ -68,15 +73,19 @@ module OryHydraClient
68
73
  # PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data.
69
74
  attr_accessor :policy_uri
70
75
 
76
+ # Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed.
71
77
  attr_accessor :post_logout_redirect_uris
72
78
 
79
+ # RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback .
73
80
  attr_accessor :redirect_uris
74
81
 
75
82
  # JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm.
76
83
  attr_accessor :request_object_signing_alg
77
84
 
85
+ # Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter.
78
86
  attr_accessor :request_uris
79
87
 
88
+ # ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint.
80
89
  attr_accessor :response_types
81
90
 
82
91
  # Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.
@@ -91,9 +100,6 @@ module OryHydraClient
91
100
  # Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none.
92
101
  attr_accessor :token_endpoint_auth_method
93
102
 
94
- # Requested Client Authentication signing algorithm for the Token Endpoint.
95
- attr_accessor :token_endpoint_auth_signing_alg
96
-
97
103
  # TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.
98
104
  attr_accessor :tos_uri
99
105
 
@@ -135,7 +141,6 @@ module OryHydraClient
135
141
  :'sector_identifier_uri' => :'sector_identifier_uri',
136
142
  :'subject_type' => :'subject_type',
137
143
  :'token_endpoint_auth_method' => :'token_endpoint_auth_method',
138
- :'token_endpoint_auth_signing_alg' => :'token_endpoint_auth_signing_alg',
139
144
  :'tos_uri' => :'tos_uri',
140
145
  :'updated_at' => :'updated_at',
141
146
  :'userinfo_signed_response_alg' => :'userinfo_signed_response_alg'
@@ -159,7 +164,7 @@ module OryHydraClient
159
164
  :'frontchannel_logout_session_required' => :'Boolean',
160
165
  :'frontchannel_logout_uri' => :'String',
161
166
  :'grant_types' => :'Array<String>',
162
- :'jwks' => :'Object',
167
+ :'jwks' => :'JSONWebKeySet',
163
168
  :'jwks_uri' => :'String',
164
169
  :'logo_uri' => :'String',
165
170
  :'metadata' => :'Object',
@@ -174,7 +179,6 @@ module OryHydraClient
174
179
  :'sector_identifier_uri' => :'String',
175
180
  :'subject_type' => :'String',
176
181
  :'token_endpoint_auth_method' => :'String',
177
- :'token_endpoint_auth_signing_alg' => :'String',
178
182
  :'tos_uri' => :'String',
179
183
  :'updated_at' => :'DateTime',
180
184
  :'userinfo_signed_response_alg' => :'String'
@@ -334,10 +338,6 @@ module OryHydraClient
334
338
  self.token_endpoint_auth_method = attributes[:'token_endpoint_auth_method']
335
339
  end
336
340
 
337
- if attributes.key?(:'token_endpoint_auth_signing_alg')
338
- self.token_endpoint_auth_signing_alg = attributes[:'token_endpoint_auth_signing_alg']
339
- end
340
-
341
341
  if attributes.key?(:'tos_uri')
342
342
  self.tos_uri = attributes[:'tos_uri']
343
343
  end
@@ -415,7 +415,6 @@ module OryHydraClient
415
415
  sector_identifier_uri == o.sector_identifier_uri &&
416
416
  subject_type == o.subject_type &&
417
417
  token_endpoint_auth_method == o.token_endpoint_auth_method &&
418
- token_endpoint_auth_signing_alg == o.token_endpoint_auth_signing_alg &&
419
418
  tos_uri == o.tos_uri &&
420
419
  updated_at == o.updated_at &&
421
420
  userinfo_signed_response_alg == o.userinfo_signed_response_alg
@@ -430,7 +429,7 @@ module OryHydraClient
430
429
  # Calculates hash code according to all attributes.
431
430
  # @return [Integer] Hash code
432
431
  def hash
433
- [allowed_cors_origins, audience, backchannel_logout_session_required, backchannel_logout_uri, client_id, client_name, client_secret, client_secret_expires_at, client_uri, contacts, created_at, frontchannel_logout_session_required, frontchannel_logout_uri, grant_types, jwks, jwks_uri, logo_uri, metadata, owner, policy_uri, post_logout_redirect_uris, redirect_uris, request_object_signing_alg, request_uris, response_types, scope, sector_identifier_uri, subject_type, token_endpoint_auth_method, token_endpoint_auth_signing_alg, tos_uri, updated_at, userinfo_signed_response_alg].hash
432
+ [allowed_cors_origins, audience, backchannel_logout_session_required, backchannel_logout_uri, client_id, client_name, client_secret, client_secret_expires_at, client_uri, contacts, created_at, frontchannel_logout_session_required, frontchannel_logout_uri, grant_types, jwks, jwks_uri, logo_uri, metadata, owner, policy_uri, post_logout_redirect_uris, redirect_uris, request_object_signing_alg, request_uris, response_types, scope, sector_identifier_uri, subject_type, token_endpoint_auth_method, tos_uri, updated_at, userinfo_signed_response_alg].hash
434
433
  end
435
434
 
436
435
  # Builds the object from hash