mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-16 10:37:33 +02:00
* 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
31 lines
679 B
Protocol Buffer
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;
|
|
}
|