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
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:
@@ -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) {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user