pomerium/pkg/grpc/user/user.proto
Caleb Doxsey a6bc9f492f
authorize: move impersonation into session/service account (#1765)
* move impersonation into session/service account

* replace frontend statik

* fix data race

* move JWT filling to separate function, break up functions

* maybe fix data race

* fix code climate issue
2021-01-11 15:40:08 -07:00

31 lines
679 B
Protocol Buffer

syntax = "proto3";
package user;
option go_package = "github.com/pomerium/pomerium/pkg/grpc/user";
import "google/protobuf/timestamp.proto";
import "google/protobuf/struct.proto";
message Claim {
string key = 1;
repeated string values = 2;
}
message User {
string version = 1;
string id = 2;
string name = 3;
string email = 4;
map<string, google.protobuf.ListValue> claims = 9;
}
message ServiceAccount {
string id = 1;
string user_id = 2;
google.protobuf.Timestamp expires_at = 3;
google.protobuf.Timestamp issued_at = 4;
optional string impersonate_user_id = 5;
optional string impersonate_email = 6;
repeated string impersonate_groups = 7;
}