update authentication proto
This commit is contained in:
parent
0096b8a4c8
commit
a403da86d9
|
@ -5,10 +5,10 @@ package authentication;
|
||||||
service AuthenticationService {
|
service AuthenticationService {
|
||||||
rpc Validate(AuthenticationByNamePassword) returns (Id);
|
rpc Validate(AuthenticationByNamePassword) returns (Id);
|
||||||
rpc Create(Authentication) returns (Id);
|
rpc Create(Authentication) returns (Id);
|
||||||
rpc AddUsername(Username) returns (Id);
|
rpc AddUsername(UsernameWithId) returns (Id);
|
||||||
rpc UpdatePassword(Password) returns (Id);
|
rpc UpdatePassword(Password) returns (Id);
|
||||||
rpc UpdateUsername(Username) returns (Id);
|
rpc UpdateUsername(UsernameWithId) returns (Id);
|
||||||
rpc DeleteUsername(Username) returns (Id);
|
rpc DeleteUsername(Name) returns (Id);
|
||||||
rpc Delete(UserId) returns (Empty);
|
rpc Delete(UserId) returns (Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,11 +29,20 @@ message Password {
|
||||||
}
|
}
|
||||||
|
|
||||||
message Username {
|
message Username {
|
||||||
|
string name = 1;
|
||||||
|
string type = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message UsernameWithId {
|
||||||
string userId = 1;
|
string userId = 1;
|
||||||
string name = 2;
|
string name = 2;
|
||||||
string type = 3;
|
string type = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Name {
|
||||||
|
string name = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message Id {
|
message Id {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue