ruby-openid icon indicating copy to clipboard operation
ruby-openid copied to clipboard

OpenID.fetch does not handle relative path redirects

Open tadaniels opened this issue 9 years ago • 2 comments

This line

https://github.com/openid/ruby-openid/blob/master/lib/openid/fetchers.rb#L237

does not account for a redirect that contains a relative path which should be supported.

For reference see this Stackoverflow question regarding support for relative redirect paths http://stackoverflow.com/questions/8250259/is-a-302-redirect-to-relative-url-valid-or-invalid

Thanks

tadaniels avatar Oct 12 '16 14:10 tadaniels

Thanks for the report. A pull-request with a suggestion for code change, or a (failing) test case would be much appreciated, if you have the time.

tobiashm avatar Oct 14 '16 11:10 tobiashm

The recent specs for Location response header: https://tools.ietf.org/html/rfc7231#section-7.1.2

tobiashm avatar Oct 14 '16 11:10 tobiashm

This repo is being archived. Closing issue.

timcappalli avatar Jul 24 '23 17:07 timcappalli