mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-11 23:50:07 +01:00
fix: from_ec, from_ed (#3)
* fix: from_ec, from_ed * chore: fix clippy warnings
This commit is contained in:
parent
1579676948
commit
28c7eedcd5
3 changed files with 11 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue