feature/authentication service #9
@@ -153,7 +153,6 @@ fn get_app_state(
|
|||||||
authentication: Arc::new(AuthenticationServiceImpl::new(
|
authentication: Arc::new(AuthenticationServiceImpl::new(
|
||||||
settings.auth.jwt_secret.clone(),
|
settings.auth.jwt_secret.clone(),
|
||||||
)),
|
)),
|
||||||
user: Arc::new(UserServiceImpl::new(db_connection.clone())),
|
|
||||||
},
|
},
|
||||||
user: Arc::new(UserServiceImpl::new(db_connection.clone())),
|
user: Arc::new(UserServiceImpl::new(db_connection.clone())),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -38,14 +38,11 @@ pub struct AuthStrategy {
|
|||||||
pub struct AuthState {
|
pub struct AuthState {
|
||||||
pub strategy: AuthStrategy,
|
pub strategy: AuthStrategy,
|
||||||
pub authentication: ServiceState<dyn AuthenticationService>,
|
pub authentication: ServiceState<dyn AuthenticationService>,
|
||||||
pub user: ServiceState<dyn UserService>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct AppService {
|
pub struct AppService {
|
||||||
// #[allow(dead_code)] // TODO: remove when used
|
|
||||||
pub settings: ServiceState<dyn SettingsStore>,
|
pub settings: ServiceState<dyn SettingsStore>,
|
||||||
pub auth_state: AuthState,
|
pub auth_state: AuthState,
|
||||||
// #[allow(dead_code)] // TODO: remove when used
|
|
||||||
pub user: ServiceState<dyn UserService>,
|
pub user: ServiceState<dyn UserService>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user