Ticket #80 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

support HTTP proxy in fetcher

Reported by: http://keturn.myopenid.com/ Assigned to:
Priority: major Milestone:
Keywords: http proxy fetcher Cc:
Project: ruby-openid OpenID Protocol: All versions
Series: 2.x.x Web Browser:

Description

We have a feature request from jan aerts to support HTTP proxies. Net::HTTP has support for it, so it's not a terribly difficult feature; the hardest part is figuring out how to express the configuration.

Change History

12/20/07 19:33:18 changed by http://keturn.myopenid.com/

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in trunk. StandardFetcher? now takes arguments appropriate to construct a HTTP::Proxy. So to configure the use of a proxy, you can do something along the lines of

require 'openid/fetchers'

OpenID.fetcher = OpenID.StandardFetcher(proxy_host, proxy_port)

There's also a convenience method to apply the standard 'http_proxy' environment variable, OpenID.fetcher_use_env_http_proxy. (I'm open to suggestions for better ways to name that.)