chore: seperate auth header to a message (#10)

This commit is contained in:
shuiyisong
2023-02-22 11:06:47 +08:00
committed by GitHub
parent 789620919c
commit 1599ae2a0d
2 changed files with 356 additions and 96 deletions
+18 -2
View File
@@ -14,8 +14,24 @@ message RequestHeader {
string catalog = 1;
// The `schema` that is selected to be used in this request.
string schema = 2;
// The `authorization` header string, much like http's authorization header.
string authorization = 3;
// The `authorization` header, much like http's authorization header.
AuthHeader authorization = 3;
}
message AuthHeader {
oneof auth_scheme {
Basic basic = 1;
Token token = 2;
}
}
message Basic {
string username = 1;
string password = 2;
}
message Token {
string token = 1;
}
message GreptimeRequest {