omniauth / omniauth_openid_connect

MIT License
168 stars 187 forks source link

When using jwks_uri, default value fails becuase it's not a URI #159

Open difernandez opened 1 year ago

difernandez commented 1 year ago

In the jwks_uri option, if setting the value as a a path instead of a full URI, I get the following error after de callback phase initiates:

ERROR -- omniauth: (openid_connect) Authentication failure! Request URI must have schema. Possibly add 'http://' to the request URI?

It might be okay to require the full URI, but I think the default value, /jwk, should maybe be changed as to not cause confussion.

Thanks for your work in this gem btw!