lpotthast / axum-keycloak-auth

Protect axum routes with a JWT emitted by Keycloak.
https://crates.io/crates/axum-keycloak-auth
Apache License 2.0
34 stars 13 forks source link

Inability to choose TLS implementation #11

Closed dspicher closed 5 months ago

dspicher commented 7 months ago

It is common for packages that require TLS to give the user the option to choose an implementation via feature flags. See for example reqwest's feature flags. Could you also support this?

I'd be happy to submit a PR if you'd like.

lpotthast commented 7 months ago

Feel free to open a PR for it :)

Mek101 commented 1 month ago

Has this been implemented? Using axum-keycloak-auth = { version = "0.5", features = [ "rustls-tls" ] } ends in a compilation error

0.492 error: failed to select a version for `axum-keycloak-auth`.
0.492     ... required by package `my-crate (/app)`
0.492 versions that meet the requirements `^0.5` (locked to 0.5.0) are: 0.5.0
0.492 
0.492 the package `my-crate` depends on `axum-keycloak-auth`, with features: `rustls-tls` but `axum-keycloak-auth` does not have these features.
0.492 
0.492 
0.492 failed to select a version for `axum-keycloak-auth` which could resolve this conflict