Implement Internal Auth (#5)
Some checks failed
ci/woodpecker/push/dart-generate Pipeline was successful
ci/woodpecker/push/go-generate Pipeline was successful
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/js-generate Pipeline was successful
ci/woodpecker/push/repo-checks Pipeline was successful

Reviewed-on: #5
Co-authored-by: Nikolai Rodionov <allanger@badhouseplants.net>
Co-committed-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit was merged in pull request #5.
This commit is contained in:
2026-05-08 19:17:06 +00:00
committed by Nikolai Rodionov
parent 0401be278d
commit 2b8987cab4
3 changed files with 15 additions and 9 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}