Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3379473
D3460.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3460.diff
View Options
diff --git a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
--- a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
+++ b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
@@ -23,32 +23,10 @@
class CreateNewBackupReactor : public BidiReactorBase<
backup::CreateNewBackupRequest,
backup::CreateNewBackupResponse> {
- auth::AuthenticationManager authenticationManager;
-
public:
std::unique_ptr<grpc::Status> handleRequest(
backup::CreateNewBackupRequest request,
backup::CreateNewBackupResponse *response) override {
- if (this->authenticationManager.getState() !=
- auth::AuthenticationState::SUCCESS &&
- !request.has_authenticationrequestdata()) {
- return std::make_unique<grpc::Status>(
- grpc::StatusCode::INTERNAL,
- "authentication has not been finished properly");
- }
- if (this->authenticationManager.getState() ==
- auth::AuthenticationState::FAIL) {
- return std::make_unique<grpc::Status>(
- grpc::StatusCode::INTERNAL, "authentication failure");
- }
- if (this->authenticationManager.getState() !=
- auth::AuthenticationState::SUCCESS) {
- backup::FullAuthenticationResponseData *authResponse =
- this->authenticationManager.processRequest(
- request.authenticationrequestdata());
- response->set_allocated_authenticationresponsedata(authResponse);
- return nullptr;
- }
// TODO handle request
return std::make_unique<grpc::Status>(
grpc::StatusCode::UNIMPLEMENTED, "unimplemented");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 4:27 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594417
Default Alt Text
D3460.diff (1 KB)
Attached To
Mode
D3460: [services] Backup - remove auth from implementation
Attached
Detach File
Event Timeline
Log In to Comment