Update openidconnect-rs (#54)

And add integration test
This commit is contained in:
Simon Bihel
2023-04-17 13:16:39 +01:00
committed by GitHub
parent d59c4db602
commit d4ce5c1616
8 changed files with 606 additions and 76 deletions

View File

@@ -9,7 +9,6 @@ use axum::{
routing::{delete, get, get_service, post},
Json, Router,
};
use bb8_redis::{bb8, RedisConnectionManager};
use figment::{
providers::{Env, Format, Serialized, Toml},
Figment,
@@ -247,10 +246,9 @@ pub async fn main() {
tracing_subscriber::fmt::init();
let manager = RedisConnectionManager::new(config.redis_url.clone()).unwrap();
let pool = bb8::Pool::builder().build(manager.clone()).await.unwrap();
let redis_client = RedisClient { pool };
let redis_client = RedisClient::new(&config.redis_url)
.await
.expect("Could not build Redis client");
for (id, entry) in &config.default_clients.clone() {
let entry: ClientEntry =