service auth registration
This commit is contained in:
parent
6eda67db60
commit
287b1f5a30
7 changed files with 478 additions and 0 deletions
22
proto/serviceRegistration.proto
Normal file
22
proto/serviceRegistration.proto
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package auth.registration;
|
||||
option go_package = "/pkg/externalRegistration/v1;externalRegV1";
|
||||
|
||||
message RegistrationRequest {
|
||||
string name = 1;
|
||||
string description = 2;
|
||||
int32 service_code = 3;
|
||||
int32 service_end_code = 4;
|
||||
string secret = 5;
|
||||
string status = 6;
|
||||
}
|
||||
|
||||
message RegistrationResponse {
|
||||
int32 service_id = 1;
|
||||
bool already_registered = 2;
|
||||
}
|
||||
|
||||
service ExternalRegistration {
|
||||
rpc AuthenticateOrRegister (RegistrationRequest) returns (RegistrationResponse);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue