Skip to content

Commit

Permalink
Token Type
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Mar 31, 2024
1 parent fb49e86 commit e2a86ac
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 134 deletions.
9 changes: 7 additions & 2 deletions proto/pro.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,17 @@ message ACLPolicyListResponse {
repeated Policy policies = 1;
}

// Token is a token string
enum TokenType {
management = 0;
client = 1;
}

// Token is the representation of a token
message Token {
string accessor = 1;
string secret = 2;
string name = 3;
string type = 4;
TokenType type = 4;
google.protobuf.Timestamp create_time = 5;
google.protobuf.Timestamp expire_time = 6;
repeated Policy policies = 7;
Expand Down
Loading

0 comments on commit e2a86ac

Please sign in to comment.