kilork / openid

OpenID Connect Rust Library
The Unlicense
61 stars 22 forks source link

Allow using custom CA for discovery #10

Closed ctron closed 3 years ago

ctron commented 3 years ago

Assuming you want to use a custom CA and discovery at the same time, this seems not possible as the discover methods creates its own reqwest::Client, without any chance of customizing the instance.

I think it would be helpful to provide a discover_with_client function, which accepts either a client or a client builder.