From f4713b1ccf508c0ec1192ce8d800f21111e655e1 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 25 Nov 2022 11:32:43 -0500 Subject: Extract authenticator logic into a trait This is in preparation for providing a fake authenticator backend --- server/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/server.rs') diff --git a/server/src/server.rs b/server/src/server.rs index eddba94..647abf9 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -7,7 +7,7 @@ use crate::auth::Authenticator; pub struct ServerContext { pub app_url: String, - pub authenticator: Authenticator, + pub authenticator: Box, pub db: PgPool, } pub type ContextExtension = Extension>; -- cgit v1.2.3