diff options
Diffstat (limited to 'server/src/fake_auth.rs')
-rw-r--r-- | server/src/fake_auth.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/server/src/fake_auth.rs b/server/src/fake_auth.rs index c0574af..6a3ff2c 100644 --- a/server/src/fake_auth.rs +++ b/server/src/fake_auth.rs @@ -6,11 +6,14 @@ use std::{ use async_trait::async_trait; use chrono::Utc; -use openidconnect::{RefreshToken, AccessToken}; +use openidconnect::{AccessToken, RefreshToken}; use reqwest::Url; use crate::{ - auth::{AuthenticatedSession, Authenticator, SessionId, store_authenticated_session}, + auth::{ + store_authenticated_session, AuthenticatedSession, Authenticator, + SessionId, + }, error::{self, BridgeError}, }; @@ -70,8 +73,11 @@ impl Authenticator for FakeAuthenticator { } async fn get_login_url(&self) -> (SessionId, reqwest::Url) { - let auth_url = - Url::parse(&format!("{}/api/fake_login", env::var("APP_URL").unwrap())).unwrap(); + let auth_url = Url::parse(&format!( + "{}/api/fake_login", + env::var("APP_URL").unwrap() + )) + .unwrap(); let user_id = SessionId::new(); self.login_cache .lock() |