Class: OryHydraClient::OidcConfiguration
- Inherits:
-
Object
- Object
- OryHydraClient::OidcConfiguration
- Defined in:
- lib/ory-hydra-client/models/oidc_configuration.rb
Overview
Includes links to several endpoints (for example ‘/oauth2/token`) and exposes information on supported signature algorithms among others.
Instance Attribute Summary collapse
-
#authorization_endpoint ⇒ Object
OAuth 2.0 Authorization Endpoint URL.
-
#backchannel_logout_session_supported ⇒ Object
OpenID Connect Back-Channel Logout Session Required 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
OpenID Connect Back-Channel Logout Supported Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
-
#claims_parameter_supported ⇒ Object
OpenID Connect Claims Parameter Parameter Supported Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support.
-
#claims_supported ⇒ Object
OpenID Connect Supported Claims JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for.
-
#code_challenge_methods_supported ⇒ Object
OAuth 2.0 PKCE Supported Code Challenge Methods JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by this authorization server.
-
#credentials_endpoint_draft_00 ⇒ Object
OpenID Connect Verifiable Credentials Endpoint Contains the URL of the Verifiable Credentials Endpoint.
-
#credentials_supported_draft_00 ⇒ Object
OpenID Connect Verifiable Credentials Supported JSON array containing a list of the Verifiable Credentials supported by this authorization server.
-
#end_session_endpoint ⇒ Object
OpenID Connect End-Session Endpoint 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
OpenID Connect Front-Channel Logout Session Required 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
OpenID Connect Front-Channel Logout Supported Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support.
-
#grant_types_supported ⇒ Object
OAuth 2.0 Supported Grant Types JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
-
#id_token_signed_response_alg ⇒ Object
OpenID Connect Default ID Token Signing Algorithms Algorithm used to sign OpenID Connect ID Tokens.
-
#id_token_signing_alg_values_supported ⇒ Object
OpenID Connect Supported ID Token Signing Algorithms 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
OpenID Connect Issuer URL An URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier.
-
#jwks_uri ⇒ Object
OpenID Connect Well-Known JSON Web Keys URL URL of the OP’s JSON Web Key Set [JWK] document.
-
#registration_endpoint ⇒ Object
OpenID Connect Dynamic Client Registration Endpoint URL.
-
#request_object_signing_alg_values_supported ⇒ Object
OpenID Connect Supported Request Object Signing Algorithms JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core].
-
#request_parameter_supported ⇒ Object
OpenID Connect Request Parameter Supported Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
-
#request_uri_parameter_supported ⇒ Object
OpenID Connect Request URI Parameter Supported Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support.
-
#require_request_uri_registration ⇒ Object
OpenID Connect Requires Request URI Registration 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
OAuth 2.0 Supported Response Modes JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports.
-
#response_types_supported ⇒ Object
OAuth 2.0 Supported Response Types JSON array containing a list of the OAuth 2.0 response_type values that this OP supports.
-
#revocation_endpoint ⇒ Object
OAuth 2.0 Token Revocation URL URL of the authorization server’s OAuth 2.0 revocation endpoint.
-
#scopes_supported ⇒ Object
OAuth 2.0 Supported Scope Values JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports.
-
#subject_types_supported ⇒ Object
OpenID Connect Supported Subject Types JSON array containing a list of the Subject Identifier types that this OP supports.
-
#token_endpoint ⇒ Object
OAuth 2.0 Token Endpoint URL.
-
#token_endpoint_auth_methods_supported ⇒ Object
OAuth 2.0 Supported Client Authentication Methods JSON array containing a list of Client Authentication methods supported by this Token Endpoint.
-
#userinfo_endpoint ⇒ Object
OpenID Connect Userinfo URL URL of the OP’s UserInfo Endpoint.
-
#userinfo_signed_response_alg ⇒ Object
OpenID Connect User Userinfo Signing Algorithm Algorithm used to sign OpenID Connect Userinfo Responses.
-
#userinfo_signing_alg_values_supported ⇒ Object
OpenID Connect Supported Userinfo Signing Algorithm 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
-
._deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.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.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ OidcConfiguration
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 = {}) ⇒ OidcConfiguration
Initializes the object
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 294 295 296 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 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 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 374 375 376 377 378 379 380 381 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 199 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::OidcConfiguration` 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::OidcConfiguration`. 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'] else self. = nil 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?(:'code_challenge_methods_supported') if (value = attributes[:'code_challenge_methods_supported']).is_a?(Array) self.code_challenge_methods_supported = value end end if attributes.key?(:'credentials_endpoint_draft_00') self.credentials_endpoint_draft_00 = attributes[:'credentials_endpoint_draft_00'] end if attributes.key?(:'credentials_supported_draft_00') if (value = attributes[:'credentials_supported_draft_00']).is_a?(Array) self.credentials_supported_draft_00 = 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_signed_response_alg') if (value = attributes[:'id_token_signed_response_alg']).is_a?(Array) self.id_token_signed_response_alg = value end else self.id_token_signed_response_alg = nil 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 else self.id_token_signing_alg_values_supported = nil end if attributes.key?(:'issuer') self.issuer = attributes[:'issuer'] else self.issuer = nil end if attributes.key?(:'jwks_uri') self.jwks_uri = attributes[:'jwks_uri'] else self.jwks_uri = nil end if attributes.key?(:'registration_endpoint') self.registration_endpoint = attributes[:'registration_endpoint'] end if attributes.key?(:'request_object_signing_alg_values_supported') if (value = attributes[:'request_object_signing_alg_values_supported']).is_a?(Array) self.request_object_signing_alg_values_supported = value end 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 else self.response_types_supported = nil 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 else self.subject_types_supported = nil end if attributes.key?(:'token_endpoint') self.token_endpoint = attributes[:'token_endpoint'] else self.token_endpoint = nil 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_signed_response_alg') if (value = attributes[:'userinfo_signed_response_alg']).is_a?(Array) self.userinfo_signed_response_alg = value end else self.userinfo_signed_response_alg = nil 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
OAuth 2.0 Authorization Endpoint URL
20 21 22 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 20 def @authorization_endpoint end |
#backchannel_logout_session_supported ⇒ Object
OpenID Connect Back-Channel Logout Session Required 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
23 24 25 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 23 def backchannel_logout_session_supported @backchannel_logout_session_supported end |
#backchannel_logout_supported ⇒ Object
OpenID Connect Back-Channel Logout Supported Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
26 27 28 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 26 def backchannel_logout_supported @backchannel_logout_supported end |
#claims_parameter_supported ⇒ Object
OpenID Connect Claims Parameter Parameter Supported Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support.
29 30 31 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 29 def claims_parameter_supported @claims_parameter_supported end |
#claims_supported ⇒ Object
OpenID Connect Supported Claims 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.
32 33 34 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 32 def claims_supported @claims_supported end |
#code_challenge_methods_supported ⇒ Object
OAuth 2.0 PKCE Supported Code Challenge Methods JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by this authorization server.
35 36 37 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 35 def code_challenge_methods_supported @code_challenge_methods_supported end |
#credentials_endpoint_draft_00 ⇒ Object
OpenID Connect Verifiable Credentials Endpoint Contains the URL of the Verifiable Credentials Endpoint.
38 39 40 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 38 def credentials_endpoint_draft_00 @credentials_endpoint_draft_00 end |
#credentials_supported_draft_00 ⇒ Object
OpenID Connect Verifiable Credentials Supported JSON array containing a list of the Verifiable Credentials supported by this authorization server.
41 42 43 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 41 def credentials_supported_draft_00 @credentials_supported_draft_00 end |
#end_session_endpoint ⇒ Object
OpenID Connect End-Session Endpoint URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP.
44 45 46 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 44 def end_session_endpoint @end_session_endpoint end |
#frontchannel_logout_session_supported ⇒ Object
OpenID Connect Front-Channel Logout Session Required 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.
47 48 49 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 47 def frontchannel_logout_session_supported @frontchannel_logout_session_supported end |
#frontchannel_logout_supported ⇒ Object
OpenID Connect Front-Channel Logout Supported Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support.
50 51 52 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 50 def frontchannel_logout_supported @frontchannel_logout_supported end |
#grant_types_supported ⇒ Object
OAuth 2.0 Supported Grant Types JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
53 54 55 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 53 def grant_types_supported @grant_types_supported end |
#id_token_signed_response_alg ⇒ Object
OpenID Connect Default ID Token Signing Algorithms Algorithm used to sign OpenID Connect ID Tokens.
56 57 58 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 56 def id_token_signed_response_alg @id_token_signed_response_alg end |
#id_token_signing_alg_values_supported ⇒ Object
OpenID Connect Supported ID Token Signing Algorithms 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.
59 60 61 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 59 def id_token_signing_alg_values_supported @id_token_signing_alg_values_supported end |
#issuer ⇒ Object
OpenID Connect Issuer URL An 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.
62 63 64 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 62 def issuer @issuer end |
#jwks_uri ⇒ Object
OpenID Connect Well-Known JSON Web Keys URL 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.
65 66 67 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 65 def jwks_uri @jwks_uri end |
#registration_endpoint ⇒ Object
OpenID Connect Dynamic Client Registration Endpoint URL
68 69 70 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 68 def registration_endpoint @registration_endpoint end |
#request_object_signing_alg_values_supported ⇒ Object
OpenID Connect Supported Request Object Signing Algorithms JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter).
71 72 73 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 71 def request_object_signing_alg_values_supported @request_object_signing_alg_values_supported end |
#request_parameter_supported ⇒ Object
OpenID Connect Request Parameter Supported Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
74 75 76 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 74 def request_parameter_supported @request_parameter_supported end |
#request_uri_parameter_supported ⇒ Object
OpenID Connect Request URI Parameter Supported Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support.
77 78 79 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 77 def request_uri_parameter_supported @request_uri_parameter_supported end |
#require_request_uri_registration ⇒ Object
OpenID Connect Requires Request URI Registration Boolean value specifying whether the OP requires any request_uri values used to be pre-registered using the request_uris registration parameter.
80 81 82 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 80 def require_request_uri_registration @require_request_uri_registration end |
#response_modes_supported ⇒ Object
OAuth 2.0 Supported Response Modes JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports.
83 84 85 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 83 def response_modes_supported @response_modes_supported end |
#response_types_supported ⇒ Object
OAuth 2.0 Supported Response Types 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.
86 87 88 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 86 def response_types_supported @response_types_supported end |
#revocation_endpoint ⇒ Object
OAuth 2.0 Token Revocation URL URL of the authorization server’s OAuth 2.0 revocation endpoint.
89 90 91 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 89 def revocation_endpoint @revocation_endpoint end |
#scopes_supported ⇒ Object
OAuth 2.0 Supported Scope Values JSON 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
92 93 94 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 92 def scopes_supported @scopes_supported end |
#subject_types_supported ⇒ Object
OpenID Connect Supported Subject Types JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include pairwise and public.
95 96 97 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 95 def subject_types_supported @subject_types_supported end |
#token_endpoint ⇒ Object
OAuth 2.0 Token Endpoint URL
98 99 100 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 98 def token_endpoint @token_endpoint end |
#token_endpoint_auth_methods_supported ⇒ Object
OAuth 2.0 Supported Client Authentication Methods 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
101 102 103 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 101 def token_endpoint_auth_methods_supported @token_endpoint_auth_methods_supported end |
#userinfo_endpoint ⇒ Object
OpenID Connect Userinfo URL URL of the OP’s UserInfo Endpoint.
104 105 106 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 104 def userinfo_endpoint @userinfo_endpoint end |
#userinfo_signed_response_alg ⇒ Object
OpenID Connect User Userinfo Signing Algorithm Algorithm used to sign OpenID Connect Userinfo Responses.
107 108 109 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 107 def userinfo_signed_response_alg @userinfo_signed_response_alg end |
#userinfo_signing_alg_values_supported ⇒ Object
OpenID Connect Supported Userinfo Signing Algorithm 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].
110 111 112 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 110 def userinfo_signing_alg_values_supported @userinfo_signing_alg_values_supported end |
Class Method Details
._deserialize(type, value) ⇒ Object
Deserializes the data based on type
520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 520 def self._deserialize(type, value) case type.to_sym when :Time Time.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 # models (e.g. Pet) or oneOf klass = OryHydraClient.const_get(type) klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
150 151 152 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 150 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 113 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', :'code_challenge_methods_supported' => :'code_challenge_methods_supported', :'credentials_endpoint_draft_00' => :'credentials_endpoint_draft_00', :'credentials_supported_draft_00' => :'credentials_supported_draft_00', :'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_signed_response_alg' => :'id_token_signed_response_alg', :'id_token_signing_alg_values_supported' => :'id_token_signing_alg_values_supported', :'issuer' => :'issuer', :'jwks_uri' => :'jwks_uri', :'registration_endpoint' => :'registration_endpoint', :'request_object_signing_alg_values_supported' => :'request_object_signing_alg_values_supported', :'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_signed_response_alg' => :'userinfo_signed_response_alg', :'userinfo_signing_alg_values_supported' => :'userinfo_signing_alg_values_supported' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 496 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = nil elsif 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[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
192 193 194 195 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 192 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
155 156 157 158 159 160 161 162 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 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 155 def self.openapi_types { :'authorization_endpoint' => :'String', :'backchannel_logout_session_supported' => :'Boolean', :'backchannel_logout_supported' => :'Boolean', :'claims_parameter_supported' => :'Boolean', :'claims_supported' => :'Array<String>', :'code_challenge_methods_supported' => :'Array<String>', :'credentials_endpoint_draft_00' => :'String', :'credentials_supported_draft_00' => :'Array<CredentialSupportedDraft00>', :'end_session_endpoint' => :'String', :'frontchannel_logout_session_supported' => :'Boolean', :'frontchannel_logout_supported' => :'Boolean', :'grant_types_supported' => :'Array<String>', :'id_token_signed_response_alg' => :'Array<String>', :'id_token_signing_alg_values_supported' => :'Array<String>', :'issuer' => :'String', :'jwks_uri' => :'String', :'registration_endpoint' => :'String', :'request_object_signing_alg_values_supported' => :'Array<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_signed_response_alg' => :'Array<String>', :'userinfo_signing_alg_values_supported' => :'Array<String>' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 445 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 && code_challenge_methods_supported == o.code_challenge_methods_supported && credentials_endpoint_draft_00 == o.credentials_endpoint_draft_00 && credentials_supported_draft_00 == o.credentials_supported_draft_00 && 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_signed_response_alg == o.id_token_signed_response_alg && 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_object_signing_alg_values_supported == o.request_object_signing_alg_values_supported && 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_signed_response_alg == o.userinfo_signed_response_alg && userinfo_signing_alg_values_supported == o.userinfo_signing_alg_values_supported end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
591 592 593 594 595 596 597 598 599 600 601 602 603 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 591 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 |
#eql?(o) ⇒ Boolean
483 484 485 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 483 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
489 490 491 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 489 def hash [, backchannel_logout_session_supported, backchannel_logout_supported, claims_parameter_supported, claims_supported, code_challenge_methods_supported, credentials_endpoint_draft_00, credentials_supported_draft_00, end_session_endpoint, frontchannel_logout_session_supported, frontchannel_logout_supported, grant_types_supported, id_token_signed_response_alg, id_token_signing_alg_values_supported, issuer, jwks_uri, registration_endpoint, request_object_signing_alg_values_supported, 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_signed_response_alg, userinfo_signing_alg_values_supported].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 385 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' 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_signed_response_alg.nil? invalid_properties.push('invalid value for "id_token_signed_response_alg", id_token_signed_response_alg 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 if @userinfo_signed_response_alg.nil? invalid_properties.push('invalid value for "userinfo_signed_response_alg", userinfo_signed_response_alg cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
567 568 569 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 567 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
573 574 575 576 577 578 579 580 581 582 583 584 585 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 573 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
561 562 563 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 561 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
429 430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'lib/ory-hydra-client/models/oidc_configuration.rb', line 429 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @authorization_endpoint.nil? return false if @id_token_signed_response_alg.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? return false if @userinfo_signed_response_alg.nil? true end |