nov / openid_connect

OpenID Connect Server & Client Library
MIT License
417 stars 122 forks source link

Cannot connect to localhost #89

Closed yovasx2 closed 11 months ago

yovasx2 commented 1 year ago

Hi, I have an oidc server in my local but the lib cannot connect to it using localhost, it gives me an SSL error, i think it is because it's using http and not https

ursm commented 1 year ago

I faced the same problem. The following snippet made it work as expected.

# config/initializers/swd.rb

SWD.url_builder = URI::HTTP if Rails.env.local?

Hope this helps.

northerner commented 4 months ago

Thanks @ursm for putting me on the right path debugging this. In the end I also needed the following to get my local (non-SSL) setup working:

WebFinger.url_builder = URI::HTTP if Rails.env.local?