# File lib/openid/consumer/associationmanager.rb, line 187 def request_association(assoc_type, session_type) assoc_session, args = create_associate_request(assoc_type, session_type) response = OpenID.make_kv_post(args, @server_url) begin return extract_association(response, assoc_session) rescue Message::KeyNotFound => why Util.log("Missing required parameter in response from "\ "#{@server_url}: #{why}") return nil rescue ProtocolError => why Util.log("Protocol error processing response from #{@server_url}: "\ "#{why}") return nil end end