mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
546e66cb5d
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com> Signed-off-by: Maksim Nabokikh <max.nabokih@gmail.com> Co-authored-by: Alwx <alwxsin@gmail.com>
34 lines
898 B
Protocol Buffer
34 lines
898 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
// Package internal holds protobuf types used by the server.
|
|
package internal;
|
|
|
|
option go_package = "github.com/dexidp/dex/server/internal";
|
|
|
|
// RefreshToken is a message that holds refresh token data used by dex.
|
|
message RefreshToken {
|
|
string refresh_id = 1;
|
|
string token = 2;
|
|
}
|
|
|
|
// IDTokenSubject represents both the userID and connID which is returned
|
|
// as the "sub" claim in the ID Token.
|
|
message IDTokenSubject {
|
|
string user_id = 1;
|
|
string conn_id = 2;
|
|
}
|
|
|
|
// SessionCookie holds session identity encoded into the session cookie value.
|
|
message SessionCookie {
|
|
string user_id = 1;
|
|
string connector_id = 2;
|
|
string nonce = 3;
|
|
}
|
|
|
|
// HMACPayload is the structured message used as HMAC input.
|
|
// Using protobuf encoding instead of string concatenation avoids
|
|
// delimiter-based ambiguities in the HMAC message.
|
|
message HMACPayload {
|
|
repeated string values = 1;
|
|
}
|