Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33303404
D14281.1768782942.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14281.1768782942.diff
View Options
diff --git a/services/identity/src/client_service.rs b/services/identity/src/client_service.rs
--- a/services/identity/src/client_service.rs
+++ b/services/identity/src/client_service.rs
@@ -1,6 +1,8 @@
// Standard library imports
use std::str::FromStr;
+use comm_lib::auth::AuthService;
+use comm_lib::blob::client::BlobServiceClient;
// External crate imports
use comm_lib::shared::reserved_users::RESERVED_USERNAME_SET;
use comm_opaque2::grpc::protocol_error_to_grpc_status;
@@ -101,6 +103,8 @@
#[derive(derive_more::Constructor)]
pub struct ClientService {
client: DatabaseClient,
+ blob_client: BlobServiceClient,
+ comm_auth_service: AuthService,
}
#[tonic::async_trait]
diff --git a/services/identity/src/main.rs b/services/identity/src/main.rs
--- a/services/identity/src/main.rs
+++ b/services/identity/src/main.rs
@@ -104,7 +104,11 @@
AuthService::new(&aws_config, "http://localhost:50054".to_string());
let blob_client = BlobServiceClient::new(cfg.blob_service_url.to_owned());
let database_client = DatabaseClient::new(&aws_config);
- let inner_client_service = ClientService::new(database_client.clone());
+ let inner_client_service = ClientService::new(
+ database_client.clone(),
+ blob_client.clone(),
+ comm_auth_service.clone(),
+ );
let client_service = IdentityClientServiceServer::with_interceptor(
inner_client_service,
grpc_services::shared::version_interceptor,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 12:35 AM (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5951897
Default Alt Text
D14281.1768782942.diff (1 KB)
Attached To
Mode
D14281: [identity] Add AuthServcie and BlobClient to gRPC service
Attached
Detach File
Event Timeline
Log In to Comment