mirror of
https://github.com/juanfont/headscale.git
synced 2025-01-08 00:11:42 +01:00
770f3dcb93
* ensure valid tags is populated on user gets too Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * ensure forced tags are added Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * remove unused envvar in test Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * debug log auth/unauth tags in policy man Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * defer shutdown in tags test Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * add tag test with groups Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * add email, display name, picture to create user Updates #2166 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * add ability to set display and email to cli Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * add email to test users in integration Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * fix issue where tags were only assigned to email, not username Fixes #2300 Fixes #2307 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * expand principles to correct login name and if fix an issue where nodeip principles might not expand to all relevant IPs instead of taking the first in a prefix. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * fix ssh unit test Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * update cli and oauth tests for users with email Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * index by test email Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * fix last test Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> --------- Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
45 lines
882 B
Protocol Buffer
45 lines
882 B
Protocol Buffer
syntax = "proto3";
|
|
package headscale.v1;
|
|
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message User {
|
|
uint64 id = 1;
|
|
string name = 2;
|
|
google.protobuf.Timestamp created_at = 3;
|
|
string display_name = 4;
|
|
string email = 5;
|
|
string provider_id = 6;
|
|
string provider = 7;
|
|
string profile_pic_url = 8;
|
|
}
|
|
|
|
message CreateUserRequest {
|
|
string name = 1;
|
|
string display_name = 2;
|
|
string email = 3;
|
|
string picture_url = 4;
|
|
}
|
|
|
|
message CreateUserResponse { User user = 1; }
|
|
|
|
message RenameUserRequest {
|
|
uint64 old_id = 1;
|
|
string new_name = 2;
|
|
}
|
|
|
|
message RenameUserResponse { User user = 1; }
|
|
|
|
message DeleteUserRequest { uint64 id = 1; }
|
|
|
|
message DeleteUserResponse {}
|
|
|
|
message ListUsersRequest {
|
|
uint64 id = 1;
|
|
string name = 2;
|
|
string email = 3;
|
|
}
|
|
|
|
message ListUsersResponse { repeated User users = 1; }
|