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>
319 lines
11 KiB
Go
319 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.5
|
|
// protoc v5.29.3
|
|
// source: server/internal/types.proto
|
|
|
|
// Package internal holds protobuf types used by the server.
|
|
|
|
package internal
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// RefreshToken is a message that holds refresh token data used by dex.
|
|
type RefreshToken struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RefreshId string `protobuf:"bytes,1,opt,name=refresh_id,json=refreshId,proto3" json:"refresh_id,omitempty"`
|
|
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RefreshToken) Reset() {
|
|
*x = RefreshToken{}
|
|
mi := &file_server_internal_types_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RefreshToken) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RefreshToken) ProtoMessage() {}
|
|
|
|
func (x *RefreshToken) ProtoReflect() protoreflect.Message {
|
|
mi := &file_server_internal_types_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RefreshToken.ProtoReflect.Descriptor instead.
|
|
func (*RefreshToken) Descriptor() ([]byte, []int) {
|
|
return file_server_internal_types_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *RefreshToken) GetRefreshId() string {
|
|
if x != nil {
|
|
return x.RefreshId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RefreshToken) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// IDTokenSubject represents both the userID and connID which is returned
|
|
// as the "sub" claim in the ID Token.
|
|
type IDTokenSubject struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
ConnId string `protobuf:"bytes,2,opt,name=conn_id,json=connId,proto3" json:"conn_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IDTokenSubject) Reset() {
|
|
*x = IDTokenSubject{}
|
|
mi := &file_server_internal_types_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IDTokenSubject) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IDTokenSubject) ProtoMessage() {}
|
|
|
|
func (x *IDTokenSubject) ProtoReflect() protoreflect.Message {
|
|
mi := &file_server_internal_types_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use IDTokenSubject.ProtoReflect.Descriptor instead.
|
|
func (*IDTokenSubject) Descriptor() ([]byte, []int) {
|
|
return file_server_internal_types_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *IDTokenSubject) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IDTokenSubject) GetConnId() string {
|
|
if x != nil {
|
|
return x.ConnId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// SessionCookie holds session identity encoded into the session cookie value.
|
|
type SessionCookie struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
ConnectorId string `protobuf:"bytes,2,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"`
|
|
Nonce string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SessionCookie) Reset() {
|
|
*x = SessionCookie{}
|
|
mi := &file_server_internal_types_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SessionCookie) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SessionCookie) ProtoMessage() {}
|
|
|
|
func (x *SessionCookie) ProtoReflect() protoreflect.Message {
|
|
mi := &file_server_internal_types_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SessionCookie.ProtoReflect.Descriptor instead.
|
|
func (*SessionCookie) Descriptor() ([]byte, []int) {
|
|
return file_server_internal_types_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SessionCookie) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SessionCookie) GetConnectorId() string {
|
|
if x != nil {
|
|
return x.ConnectorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SessionCookie) GetNonce() string {
|
|
if x != nil {
|
|
return x.Nonce
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// HMACPayload is the structured message used as HMAC input.
|
|
// Using protobuf encoding instead of string concatenation avoids
|
|
// delimiter-based ambiguities in the HMAC message.
|
|
type HMACPayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HMACPayload) Reset() {
|
|
*x = HMACPayload{}
|
|
mi := &file_server_internal_types_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HMACPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HMACPayload) ProtoMessage() {}
|
|
|
|
func (x *HMACPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_server_internal_types_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use HMACPayload.ProtoReflect.Descriptor instead.
|
|
func (*HMACPayload) Descriptor() ([]byte, []int) {
|
|
return file_server_internal_types_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *HMACPayload) GetValues() []string {
|
|
if x != nil {
|
|
return x.Values
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_server_internal_types_proto protoreflect.FileDescriptor
|
|
|
|
var file_server_internal_types_proto_rawDesc = string([]byte{
|
|
0x0a, 0x1b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
|
|
0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x69,
|
|
0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x22, 0x43, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65,
|
|
0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x66, 0x72, 0x65,
|
|
0x73, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66,
|
|
0x72, 0x65, 0x73, 0x68, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x42, 0x0a, 0x0e,
|
|
0x49, 0x44, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x17,
|
|
0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x6e, 0x5f,
|
|
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x6e, 0x49, 0x64,
|
|
0x22, 0x61, 0x0a, 0x0d, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6f, 0x6b, 0x69,
|
|
0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f,
|
|
0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a,
|
|
0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f,
|
|
0x6e, 0x63, 0x65, 0x22, 0x25, 0x0a, 0x0b, 0x48, 0x4d, 0x41, 0x43, 0x50, 0x61, 0x79, 0x6c, 0x6f,
|
|
0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
|
|
0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69,
|
|
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x65, 0x78, 0x69, 0x64, 0x70, 0x2f,
|
|
0x64, 0x65, 0x78, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
|
|
0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
})
|
|
|
|
var (
|
|
file_server_internal_types_proto_rawDescOnce sync.Once
|
|
file_server_internal_types_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_server_internal_types_proto_rawDescGZIP() []byte {
|
|
file_server_internal_types_proto_rawDescOnce.Do(func() {
|
|
file_server_internal_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_server_internal_types_proto_rawDesc), len(file_server_internal_types_proto_rawDesc)))
|
|
})
|
|
return file_server_internal_types_proto_rawDescData
|
|
}
|
|
|
|
var file_server_internal_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_server_internal_types_proto_goTypes = []any{
|
|
(*RefreshToken)(nil), // 0: internal.RefreshToken
|
|
(*IDTokenSubject)(nil), // 1: internal.IDTokenSubject
|
|
(*SessionCookie)(nil), // 2: internal.SessionCookie
|
|
(*HMACPayload)(nil), // 3: internal.HMACPayload
|
|
}
|
|
var file_server_internal_types_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_server_internal_types_proto_init() }
|
|
func file_server_internal_types_proto_init() {
|
|
if File_server_internal_types_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_server_internal_types_proto_rawDesc), len(file_server_internal_types_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_server_internal_types_proto_goTypes,
|
|
DependencyIndexes: file_server_internal_types_proto_depIdxs,
|
|
MessageInfos: file_server_internal_types_proto_msgTypes,
|
|
}.Build()
|
|
File_server_internal_types_proto = out.File
|
|
file_server_internal_types_proto_goTypes = nil
|
|
file_server_internal_types_proto_depIdxs = nil
|
|
}
|