fix: from_ec, from_ed (#3)

* fix: from_ec, from_ed

* chore: fix clippy warnings
This commit is contained in:
cduvray 2023-02-23 21:22:55 +01:00 committed by GitHub
parent 1579676948
commit 28c7eedcd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 12 deletions

View file

@ -91,7 +91,7 @@ impl Stats {
fn discovery(uri: &str) -> Json<Value> {
Arc::clone(&DISCOVERY_COUNTER).fetch_add(1, Ordering::Relaxed);
let d = serde_json::json!({ "jwks_uri": format!("{}/jwks", uri) });
let d = serde_json::json!({ "jwks_uri": format!("{uri}/jwks") });
Json(d)
}
@ -287,7 +287,6 @@ async fn scenario4() {
strategy: RefreshStrategy::NoRefresh,
refresh_interval: Duration::from_millis(0),
retry_interval: Duration::from_millis(0),
..Default::default()
};
let auth: JwtAuthorizer<User> = JwtAuthorizer::from_oidc(&url).refresh(refresh);
let mut app = app(auth).await;