basically my last attempt was im getting this error:
[:error, "bad URI(is not URI?): ://localhost:80/auth/twitter/auth/twitter"]
when i browse to
http://127.0.0.1/auth/twitter
this is my goliath server
class Application < Goliath::API
use(Rack::Session::Cookie
use OmniAuth::Strategies::Developer
use OmniAuth::Builder do
provider :twitter, '..', '..'
provider :facebook, '..', '..'
provider :developer
end
end
interestingly /auth/developer has no issues - but twitter or facebook has.
Any ideas?
This a little bug from
env
variable that is missing some information forRack::Request
class construct the properly path.The fix is very simple:
Just include the
Rack::Config
middleware with the properly parameters, like the example above.