Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions components/public-api/gitpod/v1/token.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
syntax = "proto3";

package gitpod.v1;

option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";

service TokenService {
// CreateUserToken creates a new temporary access token for the specified user.
// +admin – only to be used by installation admins
rpc CreateTemporaryAccessToken(CreateTemporaryAccessTokenRequest) returns (CreateTemporaryAccessTokenResponse) {}
}

message CreateTemporaryAccessTokenRequest {
// user_id is the identifier of the user for which the token is created.
string user_id = 1;

// expiry_seconds is the number of seconds the token is valid for.
// value should in the range [1, 600]
int32 expiry_seconds = 2;
}

message CreateTemporaryAccessTokenResponse {
// cookie_name is the name of the cookie to use for the token.
string cookie_name = 1;

string token = 2;
}
250 changes: 250 additions & 0 deletions components/public-api/go/v1/token.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 113 additions & 0 deletions components/public-api/go/v1/token_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading