Method: OpenID::OpenIDServiceEndpoint#parse_service

Defined in:
lib/openid/consumer/discovery.rb

#parse_service(yadis_url, uri, type_uris, service_element) ⇒ Object



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/openid/consumer/discovery.rb', line 112

def parse_service(yadis_url, uri, type_uris, service_element)
  # Set the state of this object based on the contents of the
  # service element.
  @type_uris = type_uris
  @server_url = uri
  @used_yadis = true

  if !is_op_identifier()
    # XXX: This has crappy implications for Service elements that
    # contain both 'server' and 'signon' Types.  But that's a
    # pathological configuration anyway, so I don't think I care.
    @local_id = OpenID.find_op_local_identifier(service_element,
                                                @type_uris)
    @claimed_id = yadis_url
  end
end