dermesser / yup-oauth2

An oauth2 client implementation providing the Device, Installed, Service Account, and several more flows.
https://docs.rs/yup-oauth2/
Apache License 2.0
213 stars 114 forks source link

rustls panics when initializing DefaultConnection #227

Closed threema-donat closed 4 days ago

threema-donat commented 3 weeks ago
thread '<unnamed>' panicked at /rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.23.9/src/crypto/mod.rs:259:14:
no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point

with features ["service_account"] enabled. I don't know why this happens since the ring feature is enabled both in rustls and hyper-rustls. Probably related to #224

dermesser commented 3 weeks ago

I was able to reproduce it, can you check if #229 works for you as well? I'm a bit unsure if I selected the right features.

threema-donat commented 3 weeks ago

I'll check it right away! Sorry to not have given you more information, I was quite busy the last days.

threema-donat commented 3 weeks ago

It works for me, but I've created #231 to avoid unnecessary dependencies. I also have another MR in the pipeline to make it configurable if ring or aws-lc-rs is used.

Thanks a lot for the fast answer and the fix!