mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-12 16:47:41 +02:00
38 lines
945 B
Protocol Buffer
38 lines
945 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package session;
|
|
option go_package = "github.com/pomerium/pomerium/pkg/grpc/session";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
import "google/protobuf/struct.proto";
|
|
|
|
message IDToken {
|
|
string issuer = 1;
|
|
string subject = 2;
|
|
google.protobuf.Timestamp expires_at = 3;
|
|
google.protobuf.Timestamp issued_at = 4;
|
|
string raw = 5;
|
|
}
|
|
|
|
message OAuthToken {
|
|
string access_token = 1;
|
|
string token_type = 2;
|
|
google.protobuf.Timestamp expires_at = 3;
|
|
string refresh_token = 4;
|
|
}
|
|
|
|
message Session {
|
|
string version = 1;
|
|
string id = 2;
|
|
string user_id = 3;
|
|
google.protobuf.Timestamp issued_at = 14;
|
|
google.protobuf.Timestamp expires_at = 4;
|
|
IDToken id_token = 6;
|
|
OAuthToken oauth_token = 7;
|
|
map<string, google.protobuf.ListValue> claims = 9;
|
|
repeated string audience = 10;
|
|
|
|
optional string impersonate_user_id = 11;
|
|
optional string impersonate_email = 12;
|
|
repeated string impersonate_groups = 13;
|
|
}
|