mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-01 19:36:32 +02:00
* fix redirect loop, remove user/session services, remove duplicate deleted_at fields * change loop * reuse err variable * wrap errors, use cookie timeout * wrap error, duplicate if
31 lines
711 B
Protocol Buffer
31 lines
711 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package session;
|
|
option go_package = "github.com/pomerium/pomerium/pkg/grpc/session";
|
|
|
|
import "google/protobuf/any.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message IDToken {
|
|
string issuer = 1;
|
|
string subject = 2;
|
|
google.protobuf.Timestamp expires_at = 3;
|
|
google.protobuf.Timestamp issued_at = 4;
|
|
}
|
|
|
|
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 expires_at = 4;
|
|
IDToken id_token = 6;
|
|
OAuthToken oauth_token = 7;
|
|
map<string, google.protobuf.Any> claims = 8;
|
|
}
|