mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 12:47:38 +00:00
types/authkey: include user object in response (#2542)
* types/authkey: include user object, not string Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * make preauthkeys use id Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * changelog Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * integration: wire up user id for auth keys Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> --------- Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
@@ -3,10 +3,11 @@ package headscale.v1;
|
||||
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "headscale/v1/user.proto";
|
||||
|
||||
message PreAuthKey {
|
||||
string user = 1;
|
||||
string id = 2;
|
||||
User user = 1;
|
||||
uint64 id = 2;
|
||||
string key = 3;
|
||||
bool reusable = 4;
|
||||
bool ephemeral = 5;
|
||||
@@ -17,7 +18,7 @@ message PreAuthKey {
|
||||
}
|
||||
|
||||
message CreatePreAuthKeyRequest {
|
||||
string user = 1;
|
||||
uint64 user = 1;
|
||||
bool reusable = 2;
|
||||
bool ephemeral = 3;
|
||||
google.protobuf.Timestamp expiration = 4;
|
||||
@@ -27,12 +28,12 @@ message CreatePreAuthKeyRequest {
|
||||
message CreatePreAuthKeyResponse { PreAuthKey pre_auth_key = 1; }
|
||||
|
||||
message ExpirePreAuthKeyRequest {
|
||||
string user = 1;
|
||||
uint64 user = 1;
|
||||
string key = 2;
|
||||
}
|
||||
|
||||
message ExpirePreAuthKeyResponse {}
|
||||
|
||||
message ListPreAuthKeysRequest { string user = 1; }
|
||||
message ListPreAuthKeysRequest { uint64 user = 1; }
|
||||
|
||||
message ListPreAuthKeysResponse { repeated PreAuthKey pre_auth_keys = 1; }
|
||||
|
Reference in New Issue
Block a user