lib/authlete/model/service.rb in authlete-0.4.4 vs lib/authlete/model/service.rb in authlete-0.4.5

- old
+ new

@@ -150,10 +150,13 @@ # The URI of the service's JSON Web Key Set. (URI) attr_accessor :jwksUri alias_method :jwks_uri, :jwksUri alias_method :jwks_uri=, :jwksUri= + # The metadata of the service. (Pair Array) + attr_accessor :metadata + # The timestamp at which the service was modified. (Integer) attr_accessor :modifiedAt alias_method :modified_at, :modifiedAt alias_method :modified_at=, :modifiedAt= @@ -171,13 +174,10 @@ # The URI of the service's policy page. (URI) attr_accessor :policyUri alias_method :policy_uri, :policyUri alias_method :policy_uri=, :policyUri= - # The service properties. (Array) - attr_accessor :properties - # The duration of refresh tokens in seconds. (Integer) attr_accessor :refreshTokenDuration alias_method :refresh_token_duration, :refreshTokenDuration alias_method :refresh_token_duration=, :refreshTokenDuration= @@ -338,11 +338,11 @@ :serviceName, :tokenEndpoint, :tosUri, :userInfoEndpoint, :revocationEndpoint ]) # String array attributes. STRING_ARRAY_ATTRIBUTES = ::Set.new([ - :properties, :supportedAcrs, :supportedClaimLocales, :supportedClaims, + :supportedAcrs, :supportedClaimLocales, :supportedClaims, :supportedClaimTypes, :supportedDeveloperSnses, :supportedDisplays, :supportedGrantTypes, :supportedResponseTypes, :supportedSnses, :supportedTokenAuthMethods, :supportedUiLocales ]) @@ -420,10 +420,11 @@ send("#{attr}=", nil) end # Set default values to special objects. @developerSnsCredentials = nil + @metadata = nil @snsCredentials = nil @supportedScopes = nil # Set attribute values using the given hash. authlete_model_update(hash) @@ -456,9 +457,13 @@ if authlete_model_simple_attribute?(key) send("#{key}=", value) elsif key == :developerSnsCredentials @developerSnsCredentials = get_parsed_array(value) do |element| Authlete::Model::SnsCredentials.parse(element) + end + elsif key == :metadata + @metadata = get_parsed_array(value) do |element| + Authlete::Model::Pair.parse(element) end elsif key == :snsCredentials @snsCredentials = get_parsed_array(value) do |element| Authlete::Model::SnsCredentials.parse(element) end \ No newline at end of file