// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc (unknown) // source: conf/v1/kratos_conf_authn.proto package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/known/durationpb" 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) ) // 认证 type Authentication struct { state protoimpl.MessageState `protogen:"open.v1"` Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Jwt *Authentication_Jwt `protobuf:"bytes,2,opt,name=jwt,proto3,oneof" json:"jwt,omitempty"` // JWT 认证 Oidc *Authentication_OIDC `protobuf:"bytes,3,opt,name=oidc,proto3,oneof" json:"oidc,omitempty"` // OIDC PresharedKey *Authentication_PresharedKey `protobuf:"bytes,4,opt,name=preshared_key,json=presharedKey,proto3,oneof" json:"preshared_key,omitempty"` // 预共享密钥 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Authentication) Reset() { *x = Authentication{} mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Authentication) String() string { return protoimpl.X.MessageStringOf(x) } func (*Authentication) ProtoMessage() {} func (x *Authentication) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_authn_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 Authentication.ProtoReflect.Descriptor instead. func (*Authentication) Descriptor() ([]byte, []int) { return file_conf_v1_kratos_conf_authn_proto_rawDescGZIP(), []int{0} } func (x *Authentication) GetType() string { if x != nil { return x.Type } return "" } func (x *Authentication) GetJwt() *Authentication_Jwt { if x != nil { return x.Jwt } return nil } func (x *Authentication) GetOidc() *Authentication_OIDC { if x != nil { return x.Oidc } return nil } func (x *Authentication) GetPresharedKey() *Authentication_PresharedKey { if x != nil { return x.PresharedKey } return nil } // JWT type Authentication_Jwt struct { state protoimpl.MessageState `protogen:"open.v1"` Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // JWT签名的算法,支持算法:HS256 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // JWT 秘钥 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Authentication_Jwt) Reset() { *x = Authentication_Jwt{} mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Authentication_Jwt) String() string { return protoimpl.X.MessageStringOf(x) } func (*Authentication_Jwt) ProtoMessage() {} func (x *Authentication_Jwt) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_authn_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 Authentication_Jwt.ProtoReflect.Descriptor instead. func (*Authentication_Jwt) Descriptor() ([]byte, []int) { return file_conf_v1_kratos_conf_authn_proto_rawDescGZIP(), []int{0, 0} } func (x *Authentication_Jwt) GetMethod() string { if x != nil { return x.Method } return "" } func (x *Authentication_Jwt) GetKey() string { if x != nil { return x.Key } return "" } type Authentication_OIDC struct { state protoimpl.MessageState `protogen:"open.v1"` IssuerUrl string `protobuf:"bytes,1,opt,name=issuer_url,json=issuerUrl,proto3" json:"issuer_url,omitempty"` Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // JWT签名的算法,支持算法:HS256 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Authentication_OIDC) Reset() { *x = Authentication_OIDC{} mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Authentication_OIDC) String() string { return protoimpl.X.MessageStringOf(x) } func (*Authentication_OIDC) ProtoMessage() {} func (x *Authentication_OIDC) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_authn_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 Authentication_OIDC.ProtoReflect.Descriptor instead. func (*Authentication_OIDC) Descriptor() ([]byte, []int) { return file_conf_v1_kratos_conf_authn_proto_rawDescGZIP(), []int{0, 1} } func (x *Authentication_OIDC) GetIssuerUrl() string { if x != nil { return x.IssuerUrl } return "" } func (x *Authentication_OIDC) GetAudience() string { if x != nil { return x.Audience } return "" } func (x *Authentication_OIDC) GetMethod() string { if x != nil { return x.Method } return "" } type Authentication_PresharedKey struct { state protoimpl.MessageState `protogen:"open.v1"` ValidKeys []string `protobuf:"bytes,1,rep,name=valid_keys,json=validKeys,proto3" json:"valid_keys,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Authentication_PresharedKey) Reset() { *x = Authentication_PresharedKey{} mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Authentication_PresharedKey) String() string { return protoimpl.X.MessageStringOf(x) } func (*Authentication_PresharedKey) ProtoMessage() {} func (x *Authentication_PresharedKey) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_authn_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 Authentication_PresharedKey.ProtoReflect.Descriptor instead. func (*Authentication_PresharedKey) Descriptor() ([]byte, []int) { return file_conf_v1_kratos_conf_authn_proto_rawDescGZIP(), []int{0, 2} } func (x *Authentication_PresharedKey) GetValidKeys() []string { if x != nil { return x.ValidKeys } return nil } var File_conf_v1_kratos_conf_authn_proto protoreflect.FileDescriptor const file_conf_v1_kratos_conf_authn_proto_rawDesc = "" + "\n" + "\x1fconf/v1/kratos_conf_authn.proto\x12\x04conf\x1a\x1egoogle/protobuf/duration.proto\"\xb4\x03\n" + "\x0eAuthentication\x12\x12\n" + "\x04type\x18\x01 \x01(\tR\x04type\x12/\n" + "\x03jwt\x18\x02 \x01(\v2\x18.conf.Authentication.JwtH\x00R\x03jwt\x88\x01\x01\x122\n" + "\x04oidc\x18\x03 \x01(\v2\x19.conf.Authentication.OIDCH\x01R\x04oidc\x88\x01\x01\x12K\n" + "\rpreshared_key\x18\x04 \x01(\v2!.conf.Authentication.PresharedKeyH\x02R\fpresharedKey\x88\x01\x01\x1a/\n" + "\x03Jwt\x12\x16\n" + "\x06method\x18\x01 \x01(\tR\x06method\x12\x10\n" + "\x03key\x18\x02 \x01(\tR\x03key\x1aY\n" + "\x04OIDC\x12\x1d\n" + "\n" + "issuer_url\x18\x01 \x01(\tR\tissuerUrl\x12\x1a\n" + "\baudience\x18\x02 \x01(\tR\baudience\x12\x16\n" + "\x06method\x18\x03 \x01(\tR\x06method\x1a-\n" + "\fPresharedKey\x12\x1d\n" + "\n" + "valid_keys\x18\x01 \x03(\tR\tvalidKeysB\x06\n" + "\x04_jwtB\a\n" + "\x05_oidcB\x10\n" + "\x0e_preshared_keyB\x86\x01\n" + "\bcom.confB\x14KratosConfAuthnProtoP\x01Z4github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1\xa2\x02\x03CXX\xaa\x02\x04Conf\xca\x02\x04Conf\xe2\x02\x10Conf\\GPBMetadata\xea\x02\x04Confb\x06proto3" var ( file_conf_v1_kratos_conf_authn_proto_rawDescOnce sync.Once file_conf_v1_kratos_conf_authn_proto_rawDescData []byte ) func file_conf_v1_kratos_conf_authn_proto_rawDescGZIP() []byte { file_conf_v1_kratos_conf_authn_proto_rawDescOnce.Do(func() { file_conf_v1_kratos_conf_authn_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_authn_proto_rawDesc), len(file_conf_v1_kratos_conf_authn_proto_rawDesc))) }) return file_conf_v1_kratos_conf_authn_proto_rawDescData } var file_conf_v1_kratos_conf_authn_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_conf_v1_kratos_conf_authn_proto_goTypes = []any{ (*Authentication)(nil), // 0: conf.Authentication (*Authentication_Jwt)(nil), // 1: conf.Authentication.Jwt (*Authentication_OIDC)(nil), // 2: conf.Authentication.OIDC (*Authentication_PresharedKey)(nil), // 3: conf.Authentication.PresharedKey } var file_conf_v1_kratos_conf_authn_proto_depIdxs = []int32{ 1, // 0: conf.Authentication.jwt:type_name -> conf.Authentication.Jwt 2, // 1: conf.Authentication.oidc:type_name -> conf.Authentication.OIDC 3, // 2: conf.Authentication.preshared_key:type_name -> conf.Authentication.PresharedKey 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name } func init() { file_conf_v1_kratos_conf_authn_proto_init() } func file_conf_v1_kratos_conf_authn_proto_init() { if File_conf_v1_kratos_conf_authn_proto != nil { return } file_conf_v1_kratos_conf_authn_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_authn_proto_rawDesc), len(file_conf_v1_kratos_conf_authn_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, GoTypes: file_conf_v1_kratos_conf_authn_proto_goTypes, DependencyIndexes: file_conf_v1_kratos_conf_authn_proto_depIdxs, MessageInfos: file_conf_v1_kratos_conf_authn_proto_msgTypes, }.Build() File_conf_v1_kratos_conf_authn_proto = out.File file_conf_v1_kratos_conf_authn_proto_goTypes = nil file_conf_v1_kratos_conf_authn_proto_depIdxs = nil }