Implement Internal Auth #5
@@ -10,6 +10,10 @@ option go_package = "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg
|
||||
service AccountsNoAuthService {
|
||||
// Sing in into an existing account
|
||||
rpc SignIn (SignInRequest) returns (google.protobuf.Empty) {}
|
||||
// Create a new account
|
||||
rpc SignUp (SignUpRequest) returns (google.protobuf.Empty) {}
|
||||
// RefreshToken doesn't use regular auth methods
|
||||
rpc RefreshToken (RefreshTokenRequest) returns (google.protobuf.Empty) {}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -19,7 +23,6 @@ service AccountsNoAuthService {
|
||||
service AccountsAuthService {
|
||||
// Is email for the current account verified
|
||||
rpc IsEmailVerified (IsEmailVerifiedRequest) returns (IsEmailVerifiedResponse) {}
|
||||
rpc RefreshToken (google.protobuf.Empty) returns (google.protobuf.Empty) {}
|
||||
}
|
||||
|
||||
message AccountPassword {
|
||||
@@ -32,13 +35,13 @@ message AccountData {
|
||||
}
|
||||
|
||||
message SignUpRequest {
|
||||
AccountData data = 1;
|
||||
AccountPassword password = 2;
|
||||
string email = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
message SignInRequest {
|
||||
string code = 1;
|
||||
string verifier = 2;
|
||||
string email = 1;
|
||||
string password = 2;
|
||||
};
|
||||
|
||||
message ResetPasswordRequest {
|
||||
@@ -58,3 +61,7 @@ message IsEmailVerifiedRequest {
|
||||
message IsEmailVerifiedResponse {
|
||||
bool verified = 1;
|
||||
}
|
||||
|
||||
message RefreshTokenRequest {
|
||||
string session_id = 1;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ message ApplicationId {
|
||||
}
|
||||
|
||||
message ApplicationMetadata {
|
||||
string name = 1;
|
||||
string name = 1;
|
||||
string description = 2;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ message ApplicationSpec {
|
||||
string application = 1;
|
||||
string version = 2;
|
||||
string environemnt_id = 3;
|
||||
map<string, string> config = 4;
|
||||
map<string, string> config = 4;
|
||||
string raw_config = 5;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package email;
|
||||
import "google/protobuf/empty.proto";
|
||||
option go_package = "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/email";
|
||||
|
||||
/*
|
||||
/*
|
||||
* A service that should handle email validation
|
||||
*/
|
||||
service EmailValidation {
|
||||
@@ -19,4 +19,3 @@ message ConfirmValidation {
|
||||
string user_id = 1;
|
||||
int32 code = 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user