rethinkdb / horizon

Horizon is a realtime, open-source backend for JavaScript apps.
MIT License
6.78k stars 349 forks source link

[2.0b7] Aut0 - authenticate on localhost fails due redirect_uri always is https #791

Closed mcbain closed 8 years ago

mcbain commented 8 years ago

The redirect always contains https protocol - local testing impossible. The request-protocol or the secure setting from config should be considered to be used.

utils.js


[109] const self_url = (host, path) =>
    url.format({ protocol: 'https', host: host, pathname: path });

[120] const return_url = self_url(req.headers.host, request_url.pathname);
danielmewes commented 8 years ago

Thanks for opening an issue for this @mcbain . This is actually a duplicate of https://github.com/rethinkdb/horizon/issues/508 .