nov / openid_connect

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

Allow HTTP scheme in discovery URIs #104

Open evgenyneu opened 1 month ago

evgenyneu commented 1 month ago

Previously, the discovery endpoint always used HTTPS due to relying on SWD.url_builder, which in turn used URI::HTTPS to build the URI, supporting only the HTTPS scheme. This change enables HTTP URLs to work correctly by using URI::Generic.build instead, preserving the original scheme.