Move the token auth to a public service
All checks were successful
ci/woodpecker/push/go-generate Pipeline was successful
ci/woodpecker/push/dart-generate Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/js-generate Pipeline was successful
ci/woodpecker/push/repo-checks Pipeline was successful

Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
2026-05-15 10:36:51 +02:00
parent b8349e3962
commit 7d11a972f3

View File

@@ -22,7 +22,12 @@ service TokensService {
rpc ListTokens (google.protobuf.Empty) returns (stream ListTokensResponse) {}
// List all available permissions
rpc ListPermissions (google.protobuf.Empty) returns (stream ListPermissionsResponse) {}
}
// An endpoint to authenticate with a token should be here
service PublicTokensService {
// Recieve a JWT access token
// DO NOT implement it in the web app!
rpc AuthenticateWithToken(AuthenticateWithTokenRequest) returns (google.protobuf.Empty) {}
}