Class: OryHydraClient::WellKnown
- Inherits:
-
Object
- Object
- OryHydraClient::WellKnown
- Defined in:
- lib/ory-hydra-client/models/well_known.rb
Overview
It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms among others.
Instance Attribute Summary collapse
-
#authorization_endpoint ⇒ Object
URL of the OP’s OAuth 2.0 Authorization Endpoint.
-
#backchannel_logout_session_supported ⇒ Object
Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to identify the RP session with the OP.
-
#backchannel_logout_supported ⇒ Object
Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
-
#claims_parameter_supported ⇒ Object
Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support.
-
#claims_supported ⇒ Object
JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for.
-
#end_session_endpoint ⇒ Object
URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP.
-
#frontchannel_logout_session_supported ⇒ Object
Boolean value specifying whether the OP can pass iss (issuer) and sid (session ID) query parameters to identify the RP session with the OP when the frontchannel_logout_uri is used.
-
#frontchannel_logout_supported ⇒ Object
Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support.
-
#grant_types_supported ⇒ Object
JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
-
#id_token_signing_alg_values_supported ⇒ Object
JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT.
-
#issuer ⇒ Object
URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier.
-
#jwks_uri ⇒ Object
URL of the OP’s JSON Web Key Set [JWK] document.
-
#registration_endpoint ⇒ Object
URL of the OP’s Dynamic Client Registration Endpoint.
-
#request_parameter_supported ⇒ Object
Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
-
#request_uri_parameter_supported ⇒ Object
Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support.
-
#require_request_uri_registration ⇒ Object
Boolean value specifying whether the OP requires any request_uri values used to be pre-registered using the request_uris registration parameter.
-
#response_modes_supported ⇒ Object
JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports.
-
#response_types_supported ⇒ Object
JSON array containing a list of the OAuth 2.0 response_type values that this OP supports.
-
#revocation_endpoint ⇒ Object
URL of the authorization server’s OAuth 2.0 revocation endpoint.
-
#scopes_supported ⇒ Object
SON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports.
-
#subject_types_supported ⇒ Object
JSON array containing a list of the Subject Identifier types that this OP supports.
-
#token_endpoint ⇒ Object
URL of the OP’s OAuth 2.0 Token Endpoint.
-
#token_endpoint_auth_methods_supported ⇒ Object
JSON array containing a list of Client Authentication methods supported by this Token Endpoint.
-
#userinfo_endpoint ⇒ Object
URL of the OP’s UserInfo Endpoint.
-
#userinfo_signing_alg_values_supported ⇒ Object
JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ WellKnown
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ WellKnown
Initializes the object
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 163 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::WellKnown` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::WellKnown`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'authorization_endpoint') self. = attributes[:'authorization_endpoint'] end if attributes.key?(:'backchannel_logout_session_supported') self.backchannel_logout_session_supported = attributes[:'backchannel_logout_session_supported'] end if attributes.key?(:'backchannel_logout_supported') self.backchannel_logout_supported = attributes[:'backchannel_logout_supported'] end if attributes.key?(:'claims_parameter_supported') self.claims_parameter_supported = attributes[:'claims_parameter_supported'] end if attributes.key?(:'claims_supported') if (value = attributes[:'claims_supported']).is_a?(Array) self.claims_supported = value end end if attributes.key?(:'end_session_endpoint') self.end_session_endpoint = attributes[:'end_session_endpoint'] end if attributes.key?(:'frontchannel_logout_session_supported') self.frontchannel_logout_session_supported = attributes[:'frontchannel_logout_session_supported'] end if attributes.key?(:'frontchannel_logout_supported') self.frontchannel_logout_supported = attributes[:'frontchannel_logout_supported'] end if attributes.key?(:'grant_types_supported') if (value = attributes[:'grant_types_supported']).is_a?(Array) self.grant_types_supported = value end end if attributes.key?(:'id_token_signing_alg_values_supported') if (value = attributes[:'id_token_signing_alg_values_supported']).is_a?(Array) self.id_token_signing_alg_values_supported = value end end if attributes.key?(:'issuer') self.issuer = attributes[:'issuer'] end if attributes.key?(:'jwks_uri') self.jwks_uri = attributes[:'jwks_uri'] end if attributes.key?(:'registration_endpoint') self.registration_endpoint = attributes[:'registration_endpoint'] end if attributes.key?(:'request_parameter_supported') self.request_parameter_supported = attributes[:'request_parameter_supported'] end if attributes.key?(:'request_uri_parameter_supported') self.request_uri_parameter_supported = attributes[:'request_uri_parameter_supported'] end if attributes.key?(:'require_request_uri_registration') self.require_request_uri_registration = attributes[:'require_request_uri_registration'] end if attributes.key?(:'response_modes_supported') if (value = attributes[:'response_modes_supported']).is_a?(Array) self.response_modes_supported = value end end if attributes.key?(:'response_types_supported') if (value = attributes[:'response_types_supported']).is_a?(Array) self.response_types_supported = value end end if attributes.key?(:'revocation_endpoint') self.revocation_endpoint = attributes[:'revocation_endpoint'] end if attributes.key?(:'scopes_supported') if (value = attributes[:'scopes_supported']).is_a?(Array) self.scopes_supported = value end end if attributes.key?(:'subject_types_supported') if (value = attributes[:'subject_types_supported']).is_a?(Array) self.subject_types_supported = value end end if attributes.key?(:'token_endpoint') self.token_endpoint = attributes[:'token_endpoint'] end if attributes.key?(:'token_endpoint_auth_methods_supported') if (value = attributes[:'token_endpoint_auth_methods_supported']).is_a?(Array) self.token_endpoint_auth_methods_supported = value end end if attributes.key?(:'userinfo_endpoint') self.userinfo_endpoint = attributes[:'userinfo_endpoint'] end if attributes.key?(:'userinfo_signing_alg_values_supported') if (value = attributes[:'userinfo_signing_alg_values_supported']).is_a?(Array) self.userinfo_signing_alg_values_supported = value end end end |
Instance Attribute Details
#authorization_endpoint ⇒ Object
URL of the OP’s OAuth 2.0 Authorization Endpoint.
19 20 21 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 19 def @authorization_endpoint end |
#backchannel_logout_session_supported ⇒ Object
Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to identify the RP session with the OP. If supported, the sid Claim is also included in ID Tokens issued by the OP
22 23 24 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 22 def backchannel_logout_session_supported @backchannel_logout_session_supported end |
#backchannel_logout_supported ⇒ Object
Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
25 26 27 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 25 def backchannel_logout_supported @backchannel_logout_supported end |
#claims_parameter_supported ⇒ Object
Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support.
28 29 30 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 28 def claims_parameter_supported @claims_parameter_supported end |
#claims_supported ⇒ Object
JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.
31 32 33 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 31 def claims_supported @claims_supported end |
#end_session_endpoint ⇒ Object
URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP.
34 35 36 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 34 def end_session_endpoint @end_session_endpoint end |
#frontchannel_logout_session_supported ⇒ Object
Boolean value specifying whether the OP can pass iss (issuer) and sid (session ID) query parameters to identify the RP session with the OP when the frontchannel_logout_uri is used. If supported, the sid Claim is also included in ID Tokens issued by the OP.
37 38 39 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 37 def frontchannel_logout_session_supported @frontchannel_logout_session_supported end |
#frontchannel_logout_supported ⇒ Object
Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support.
40 41 42 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 40 def frontchannel_logout_supported @frontchannel_logout_supported end |
#grant_types_supported ⇒ Object
JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
43 44 45 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 43 def grant_types_supported @grant_types_supported end |
#id_token_signing_alg_values_supported ⇒ Object
JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT.
46 47 48 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 46 def id_token_signing_alg_values_supported @id_token_signing_alg_values_supported end |
#issuer ⇒ Object
URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier. If IssuerURL discovery is supported , this value MUST be identical to the issuer value returned by WebFinger. This also MUST be identical to the iss Claim value in ID Tokens issued from this IssuerURL.
49 50 51 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 49 def issuer @issuer end |
#jwks_uri ⇒ Object
URL of the OP’s JSON Web Key Set [JWK] document. This contains the signing key(s) the RP uses to validate signatures from the OP. The JWK Set MAY also contain the Server’s encryption key(s), which are used by RPs to encrypt requests to the Server. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key’s intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate.
52 53 54 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 52 def jwks_uri @jwks_uri end |
#registration_endpoint ⇒ Object
URL of the OP’s Dynamic Client Registration Endpoint.
55 56 57 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 55 def registration_endpoint @registration_endpoint end |
#request_parameter_supported ⇒ Object
Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
58 59 60 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 58 def request_parameter_supported @request_parameter_supported end |
#request_uri_parameter_supported ⇒ Object
Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support.
61 62 63 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 61 def request_uri_parameter_supported @request_uri_parameter_supported end |
#require_request_uri_registration ⇒ Object
Boolean value specifying whether the OP requires any request_uri values used to be pre-registered using the request_uris registration parameter.
64 65 66 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 64 def require_request_uri_registration @require_request_uri_registration end |
#response_modes_supported ⇒ Object
JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports.
67 68 69 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 67 def response_modes_supported @response_modes_supported end |
#response_types_supported ⇒ Object
JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values.
70 71 72 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 70 def response_types_supported @response_types_supported end |
#revocation_endpoint ⇒ Object
URL of the authorization server’s OAuth 2.0 revocation endpoint.
73 74 75 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 73 def revocation_endpoint @revocation_endpoint end |
#scopes_supported ⇒ Object
SON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used
76 77 78 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 76 def scopes_supported @scopes_supported end |
#subject_types_supported ⇒ Object
JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include pairwise and public.
79 80 81 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 79 def subject_types_supported @subject_types_supported end |
#token_endpoint ⇒ Object
URL of the OP’s OAuth 2.0 Token Endpoint
82 83 84 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 82 def token_endpoint @token_endpoint end |
#token_endpoint_auth_methods_supported ⇒ Object
JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0
85 86 87 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 85 def token_endpoint_auth_methods_supported @token_endpoint_auth_methods_supported end |
#userinfo_endpoint ⇒ Object
URL of the OP’s UserInfo Endpoint.
88 89 90 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 88 def userinfo_endpoint @userinfo_endpoint end |
#userinfo_signing_alg_values_supported ⇒ Object
JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
91 92 93 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 91 def userinfo_signing_alg_values_supported @userinfo_signing_alg_values_supported end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 94 def self.attribute_map { :'authorization_endpoint' => :'authorization_endpoint', :'backchannel_logout_session_supported' => :'backchannel_logout_session_supported', :'backchannel_logout_supported' => :'backchannel_logout_supported', :'claims_parameter_supported' => :'claims_parameter_supported', :'claims_supported' => :'claims_supported', :'end_session_endpoint' => :'end_session_endpoint', :'frontchannel_logout_session_supported' => :'frontchannel_logout_session_supported', :'frontchannel_logout_supported' => :'frontchannel_logout_supported', :'grant_types_supported' => :'grant_types_supported', :'id_token_signing_alg_values_supported' => :'id_token_signing_alg_values_supported', :'issuer' => :'issuer', :'jwks_uri' => :'jwks_uri', :'registration_endpoint' => :'registration_endpoint', :'request_parameter_supported' => :'request_parameter_supported', :'request_uri_parameter_supported' => :'request_uri_parameter_supported', :'require_request_uri_registration' => :'require_request_uri_registration', :'response_modes_supported' => :'response_modes_supported', :'response_types_supported' => :'response_types_supported', :'revocation_endpoint' => :'revocation_endpoint', :'scopes_supported' => :'scopes_supported', :'subject_types_supported' => :'subject_types_supported', :'token_endpoint' => :'token_endpoint', :'token_endpoint_auth_methods_supported' => :'token_endpoint_auth_methods_supported', :'userinfo_endpoint' => :'userinfo_endpoint', :'userinfo_signing_alg_values_supported' => :'userinfo_signing_alg_values_supported' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
390 391 392 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 390 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
156 157 158 159 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 156 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 125 def self.openapi_types { :'authorization_endpoint' => :'String', :'backchannel_logout_session_supported' => :'Boolean', :'backchannel_logout_supported' => :'Boolean', :'claims_parameter_supported' => :'Boolean', :'claims_supported' => :'Array<String>', :'end_session_endpoint' => :'String', :'frontchannel_logout_session_supported' => :'Boolean', :'frontchannel_logout_supported' => :'Boolean', :'grant_types_supported' => :'Array<String>', :'id_token_signing_alg_values_supported' => :'Array<String>', :'issuer' => :'String', :'jwks_uri' => :'String', :'registration_endpoint' => :'String', :'request_parameter_supported' => :'Boolean', :'request_uri_parameter_supported' => :'Boolean', :'require_request_uri_registration' => :'Boolean', :'response_modes_supported' => :'Array<String>', :'response_types_supported' => :'Array<String>', :'revocation_endpoint' => :'String', :'scopes_supported' => :'Array<String>', :'subject_types_supported' => :'Array<String>', :'token_endpoint' => :'String', :'token_endpoint_auth_methods_supported' => :'Array<String>', :'userinfo_endpoint' => :'String', :'userinfo_signing_alg_values_supported' => :'Array<String>' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 345 def ==(o) return true if self.equal?(o) self.class == o.class && == o. && backchannel_logout_session_supported == o.backchannel_logout_session_supported && backchannel_logout_supported == o.backchannel_logout_supported && claims_parameter_supported == o.claims_parameter_supported && claims_supported == o.claims_supported && end_session_endpoint == o.end_session_endpoint && frontchannel_logout_session_supported == o.frontchannel_logout_session_supported && frontchannel_logout_supported == o.frontchannel_logout_supported && grant_types_supported == o.grant_types_supported && id_token_signing_alg_values_supported == o.id_token_signing_alg_values_supported && issuer == o.issuer && jwks_uri == o.jwks_uri && registration_endpoint == o.registration_endpoint && request_parameter_supported == o.request_parameter_supported && request_uri_parameter_supported == o.request_uri_parameter_supported && require_request_uri_registration == o.require_request_uri_registration && response_modes_supported == o.response_modes_supported && response_types_supported == o.response_types_supported && revocation_endpoint == o.revocation_endpoint && scopes_supported == o.scopes_supported && subject_types_supported == o.subject_types_supported && token_endpoint == o.token_endpoint && token_endpoint_auth_methods_supported == o.token_endpoint_auth_methods_supported && userinfo_endpoint == o.userinfo_endpoint && userinfo_signing_alg_values_supported == o.userinfo_signing_alg_values_supported end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 418 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model OryHydraClient.const_get(type).build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
487 488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 487 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 397 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
377 378 379 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 377 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
383 384 385 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 383 def hash [, backchannel_logout_session_supported, backchannel_logout_supported, claims_parameter_supported, claims_supported, end_session_endpoint, frontchannel_logout_session_supported, frontchannel_logout_supported, grant_types_supported, id_token_signing_alg_values_supported, issuer, jwks_uri, registration_endpoint, request_parameter_supported, request_uri_parameter_supported, require_request_uri_registration, response_modes_supported, response_types_supported, revocation_endpoint, scopes_supported, subject_types_supported, token_endpoint, token_endpoint_auth_methods_supported, userinfo_endpoint, userinfo_signing_alg_values_supported].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 297 def list_invalid_properties invalid_properties = Array.new if @authorization_endpoint.nil? invalid_properties.push('invalid value for "authorization_endpoint", authorization_endpoint cannot be nil.') end if @id_token_signing_alg_values_supported.nil? invalid_properties.push('invalid value for "id_token_signing_alg_values_supported", id_token_signing_alg_values_supported cannot be nil.') end if @issuer.nil? invalid_properties.push('invalid value for "issuer", issuer cannot be nil.') end if @jwks_uri.nil? invalid_properties.push('invalid value for "jwks_uri", jwks_uri cannot be nil.') end if @response_types_supported.nil? invalid_properties.push('invalid value for "response_types_supported", response_types_supported cannot be nil.') end if @subject_types_supported.nil? invalid_properties.push('invalid value for "subject_types_supported", subject_types_supported cannot be nil.') end if @token_endpoint.nil? invalid_properties.push('invalid value for "token_endpoint", token_endpoint cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
463 464 465 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 463 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
469 470 471 472 473 474 475 476 477 478 479 480 481 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 469 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
457 458 459 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 457 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
332 333 334 335 336 337 338 339 340 341 |
# File 'lib/ory-hydra-client/models/well_known.rb', line 332 def valid? return false if @authorization_endpoint.nil? return false if @id_token_signing_alg_values_supported.nil? return false if @issuer.nil? return false if @jwks_uri.nil? return false if @response_types_supported.nil? return false if @subject_types_supported.nil? return false if @token_endpoint.nil? true end |