|
|
|
|
@ -1,71 +1,79 @@
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.26.0
|
|
|
|
|
// protoc v3.15.6
|
|
|
|
|
// source: server/internal/types.proto
|
|
|
|
|
|
|
|
|
|
// Package internal holds protobuf types used by the server
|
|
|
|
|
// Package internal holds protobuf types used by the server.
|
|
|
|
|
|
|
|
|
|
package internal |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
|
fmt "fmt" |
|
|
|
|
proto "github.com/golang/protobuf/proto" |
|
|
|
|
math "math" |
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
|
|
|
|
reflect "reflect" |
|
|
|
|
sync "sync" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
|
var _ = proto.Marshal |
|
|
|
|
var _ = fmt.Errorf |
|
|
|
|
var _ = math.Inf |
|
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
|
// proto package needs to be updated.
|
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
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 { |
|
|
|
|
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"` |
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
} |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
func (m *RefreshToken) Reset() { *m = RefreshToken{} } |
|
|
|
|
func (m *RefreshToken) String() string { return proto.CompactTextString(m) } |
|
|
|
|
func (*RefreshToken) ProtoMessage() {} |
|
|
|
|
func (*RefreshToken) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_c3164bea0c2d595f, []int{0} |
|
|
|
|
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"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *RefreshToken) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return xxx_messageInfo_RefreshToken.Unmarshal(m, b) |
|
|
|
|
} |
|
|
|
|
func (m *RefreshToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
return xxx_messageInfo_RefreshToken.Marshal(b, m, deterministic) |
|
|
|
|
} |
|
|
|
|
func (m *RefreshToken) XXX_Merge(src proto.Message) { |
|
|
|
|
xxx_messageInfo_RefreshToken.Merge(m, src) |
|
|
|
|
func (x *RefreshToken) Reset() { |
|
|
|
|
*x = RefreshToken{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_server_internal_types_proto_msgTypes[0] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
func (m *RefreshToken) XXX_Size() int { |
|
|
|
|
return xxx_messageInfo_RefreshToken.Size(m) |
|
|
|
|
|
|
|
|
|
func (x *RefreshToken) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
func (m *RefreshToken) XXX_DiscardUnknown() { |
|
|
|
|
xxx_messageInfo_RefreshToken.DiscardUnknown(m) |
|
|
|
|
|
|
|
|
|
func (*RefreshToken) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *RefreshToken) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_server_internal_types_proto_msgTypes[0] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
return ms |
|
|
|
|
} |
|
|
|
|
return mi.MessageOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_RefreshToken proto.InternalMessageInfo |
|
|
|
|
// Deprecated: Use RefreshToken.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*RefreshToken) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_server_internal_types_proto_rawDescGZIP(), []int{0} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *RefreshToken) GetRefreshId() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.RefreshId |
|
|
|
|
func (x *RefreshToken) GetRefreshId() string { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.RefreshId |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *RefreshToken) GetToken() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Token |
|
|
|
|
func (x *RefreshToken) GetToken() string { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Token |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
@ -73,69 +81,152 @@ func (m *RefreshToken) GetToken() string {
|
|
|
|
|
// IDTokenSubject represents both the userID and connID which is returned
|
|
|
|
|
// as the "sub" claim in the ID Token.
|
|
|
|
|
type IDTokenSubject struct { |
|
|
|
|
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"` |
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
} |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
func (m *IDTokenSubject) Reset() { *m = IDTokenSubject{} } |
|
|
|
|
func (m *IDTokenSubject) String() string { return proto.CompactTextString(m) } |
|
|
|
|
func (*IDTokenSubject) ProtoMessage() {} |
|
|
|
|
func (*IDTokenSubject) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_c3164bea0c2d595f, []int{1} |
|
|
|
|
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"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *IDTokenSubject) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return xxx_messageInfo_IDTokenSubject.Unmarshal(m, b) |
|
|
|
|
} |
|
|
|
|
func (m *IDTokenSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
return xxx_messageInfo_IDTokenSubject.Marshal(b, m, deterministic) |
|
|
|
|
} |
|
|
|
|
func (m *IDTokenSubject) XXX_Merge(src proto.Message) { |
|
|
|
|
xxx_messageInfo_IDTokenSubject.Merge(m, src) |
|
|
|
|
func (x *IDTokenSubject) Reset() { |
|
|
|
|
*x = IDTokenSubject{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_server_internal_types_proto_msgTypes[1] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
func (m *IDTokenSubject) XXX_Size() int { |
|
|
|
|
return xxx_messageInfo_IDTokenSubject.Size(m) |
|
|
|
|
|
|
|
|
|
func (x *IDTokenSubject) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
func (m *IDTokenSubject) XXX_DiscardUnknown() { |
|
|
|
|
xxx_messageInfo_IDTokenSubject.DiscardUnknown(m) |
|
|
|
|
|
|
|
|
|
func (*IDTokenSubject) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *IDTokenSubject) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_server_internal_types_proto_msgTypes[1] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
return ms |
|
|
|
|
} |
|
|
|
|
return mi.MessageOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_IDTokenSubject proto.InternalMessageInfo |
|
|
|
|
// Deprecated: Use IDTokenSubject.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*IDTokenSubject) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_server_internal_types_proto_rawDescGZIP(), []int{1} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *IDTokenSubject) GetUserId() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.UserId |
|
|
|
|
func (x *IDTokenSubject) GetUserId() string { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.UserId |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *IDTokenSubject) GetConnId() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.ConnId |
|
|
|
|
func (x *IDTokenSubject) GetConnId() string { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.ConnId |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
|
proto.RegisterType((*RefreshToken)(nil), "internal.RefreshToken") |
|
|
|
|
proto.RegisterType((*IDTokenSubject)(nil), "internal.IDTokenSubject") |
|
|
|
|
var File_server_internal_types_proto protoreflect.FileDescriptor |
|
|
|
|
|
|
|
|
|
var file_server_internal_types_proto_rawDesc = []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, |
|
|
|
|
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 = file_server_internal_types_proto_rawDesc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
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(file_server_internal_types_proto_rawDescData) |
|
|
|
|
}) |
|
|
|
|
return file_server_internal_types_proto_rawDescData |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("server/internal/types.proto", fileDescriptor_c3164bea0c2d595f) } |
|
|
|
|
var file_server_internal_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
|
|
|
|
var file_server_internal_types_proto_goTypes = []interface{}{ |
|
|
|
|
(*RefreshToken)(nil), // 0: internal.RefreshToken
|
|
|
|
|
(*IDTokenSubject)(nil), // 1: internal.IDTokenSubject
|
|
|
|
|
} |
|
|
|
|
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
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var fileDescriptor_c3164bea0c2d595f = []byte{ |
|
|
|
|
// 157 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x4e, 0x2d, 0x2a, |
|
|
|
|
0x4b, 0x2d, 0xd2, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0x2f, 0xa9, 0x2c, 0x48, |
|
|
|
|
0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0x89, 0x2a, 0x39, 0x73, 0xf1, 0x04, |
|
|
|
|
0xa5, 0xa6, 0x15, 0xa5, 0x16, 0x67, 0x84, 0xe4, 0x67, 0xa7, 0xe6, 0x09, 0xc9, 0x72, 0x71, 0x15, |
|
|
|
|
0x41, 0xf8, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x9c, 0x50, 0x11, 0xcf, |
|
|
|
|
0x14, 0x21, 0x11, 0x2e, 0xd6, 0x12, 0x90, 0x3a, 0x09, 0x26, 0xb0, 0x0c, 0x84, 0xa3, 0xe4, 0xc4, |
|
|
|
|
0xc5, 0xe7, 0xe9, 0x02, 0xd6, 0x1f, 0x5c, 0x9a, 0x94, 0x95, 0x9a, 0x5c, 0x22, 0x24, 0xce, 0xc5, |
|
|
|
|
0x5e, 0x5a, 0x9c, 0x5a, 0x84, 0x30, 0x83, 0x0d, 0xc4, 0xf5, 0x4c, 0x01, 0x49, 0x24, 0xe7, 0xe7, |
|
|
|
|
0xe5, 0x81, 0x24, 0x20, 0x46, 0xb0, 0x81, 0xb8, 0x9e, 0x29, 0x49, 0x6c, 0x60, 0x97, 0x19, 0x03, |
|
|
|
|
0x02, 0x00, 0x00, 0xff, 0xff, 0x13, 0xfe, 0x01, 0x37, 0xb8, 0x00, 0x00, 0x00, |
|
|
|
|
func init() { file_server_internal_types_proto_init() } |
|
|
|
|
func file_server_internal_types_proto_init() { |
|
|
|
|
if File_server_internal_types_proto != nil { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if !protoimpl.UnsafeEnabled { |
|
|
|
|
file_server_internal_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*RefreshToken); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_server_internal_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*IDTokenSubject); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
type x struct{} |
|
|
|
|
out := protoimpl.TypeBuilder{ |
|
|
|
|
File: protoimpl.DescBuilder{ |
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
|
|
|
RawDescriptor: file_server_internal_types_proto_rawDesc, |
|
|
|
|
NumEnums: 0, |
|
|
|
|
NumMessages: 2, |
|
|
|
|
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_rawDesc = nil |
|
|
|
|
file_server_internal_types_proto_goTypes = nil |
|
|
|
|
file_server_internal_types_proto_depIdxs = nil |
|
|
|
|
} |
|
|
|
|
|