Implement AuthServer and Client (2.1.2.2 & 3)
This commit is contained in:
@@ -1,3 +1,29 @@
|
||||
syntax = "proto3";
|
||||
|
||||
// TODO implement authentication service
|
||||
package dst.ass2.service.api.auth.proto;
|
||||
|
||||
option java_package = "dst.ass2.service.api.auth.proto";
|
||||
option java_multiple_files = true;
|
||||
|
||||
message AuthenticationRequest {
|
||||
string email = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
message AuthenticationResponse {
|
||||
string token = 1;
|
||||
string status = 2;
|
||||
}
|
||||
|
||||
message TokenValidationRequest {
|
||||
string token = 1;
|
||||
}
|
||||
|
||||
message TokenValidationResponse {
|
||||
bool valid = 1;
|
||||
}
|
||||
|
||||
service AuthService {
|
||||
rpc authenticate(AuthenticationRequest) returns (AuthenticationResponse);
|
||||
rpc validateToken(TokenValidationRequest) returns (TokenValidationResponse);
|
||||
}
|
||||
Reference in New Issue
Block a user