auth provider
This commit is contained in:
parent
08d8450dac
commit
a66873d12d
6 changed files with 432 additions and 0 deletions
202
pkg/verify/v1/verify.pb.go
Normal file
202
pkg/verify/v1/verify.pb.go
Normal file
|
|
@ -0,0 +1,202 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc v6.33.1
|
||||
// source: proto/verify.proto
|
||||
|
||||
package verifyV1
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
type VerifyTokenRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
SessionToken string `protobuf:"bytes,1,opt,name=sessionToken,proto3" json:"sessionToken,omitempty"`
|
||||
ServiceId int32 `protobuf:"varint,2,opt,name=serviceId,proto3" json:"serviceId,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VerifyTokenRequest) Reset() {
|
||||
*x = VerifyTokenRequest{}
|
||||
mi := &file_proto_verify_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VerifyTokenRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*VerifyTokenRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_verify_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 VerifyTokenRequest.ProtoReflect.Descriptor instead.
|
||||
func (*VerifyTokenRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_verify_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *VerifyTokenRequest) GetSessionToken() string {
|
||||
if x != nil {
|
||||
return x.SessionToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *VerifyTokenRequest) GetServiceId() int32 {
|
||||
if x != nil {
|
||||
return x.ServiceId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type VerifyTokenResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
|
||||
IsValid bool `protobuf:"varint,2,opt,name=isValid,proto3" json:"isValid,omitempty"`
|
||||
AccessCode int32 `protobuf:"varint,3,opt,name=accessCode,proto3" json:"accessCode,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VerifyTokenResponse) Reset() {
|
||||
*x = VerifyTokenResponse{}
|
||||
mi := &file_proto_verify_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VerifyTokenResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*VerifyTokenResponse) ProtoMessage() {}
|
||||
|
||||
func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_verify_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 VerifyTokenResponse.ProtoReflect.Descriptor instead.
|
||||
func (*VerifyTokenResponse) Descriptor() ([]byte, []int) {
|
||||
return file_proto_verify_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *VerifyTokenResponse) GetUserUuid() string {
|
||||
if x != nil {
|
||||
return x.UserUuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *VerifyTokenResponse) GetIsValid() bool {
|
||||
if x != nil {
|
||||
return x.IsValid
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *VerifyTokenResponse) GetAccessCode() int32 {
|
||||
if x != nil {
|
||||
return x.AccessCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_proto_verify_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_proto_verify_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x12proto/verify.proto\x12\rverifyAuth.v1\"V\n" +
|
||||
"\x12VerifyTokenRequest\x12\"\n" +
|
||||
"\fsessionToken\x18\x01 \x01(\tR\fsessionToken\x12\x1c\n" +
|
||||
"\tserviceId\x18\x02 \x01(\x05R\tserviceId\"k\n" +
|
||||
"\x13VerifyTokenResponse\x12\x1a\n" +
|
||||
"\buserUuid\x18\x01 \x01(\tR\buserUuid\x12\x18\n" +
|
||||
"\aisValid\x18\x02 \x01(\bR\aisValid\x12\x1e\n" +
|
||||
"\n" +
|
||||
"accessCode\x18\x03 \x01(\x05R\n" +
|
||||
"accessCode2c\n" +
|
||||
"\vAuthService\x12T\n" +
|
||||
"\vVerifyToken\x12!.verifyAuth.v1.VerifyTokenRequest\x1a\".verifyAuth.v1.VerifyTokenResponseB\x19Z\x17/pkg/verify/v1;verifyV1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_proto_verify_proto_rawDescOnce sync.Once
|
||||
file_proto_verify_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_proto_verify_proto_rawDescGZIP() []byte {
|
||||
file_proto_verify_proto_rawDescOnce.Do(func() {
|
||||
file_proto_verify_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_verify_proto_rawDesc), len(file_proto_verify_proto_rawDesc)))
|
||||
})
|
||||
return file_proto_verify_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_proto_verify_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_proto_verify_proto_goTypes = []any{
|
||||
(*VerifyTokenRequest)(nil), // 0: verifyAuth.v1.VerifyTokenRequest
|
||||
(*VerifyTokenResponse)(nil), // 1: verifyAuth.v1.VerifyTokenResponse
|
||||
}
|
||||
var file_proto_verify_proto_depIdxs = []int32{
|
||||
0, // 0: verifyAuth.v1.AuthService.VerifyToken:input_type -> verifyAuth.v1.VerifyTokenRequest
|
||||
1, // 1: verifyAuth.v1.AuthService.VerifyToken:output_type -> verifyAuth.v1.VerifyTokenResponse
|
||||
1, // [1:2] is the sub-list for method output_type
|
||||
0, // [0:1] 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_proto_verify_proto_init() }
|
||||
func file_proto_verify_proto_init() {
|
||||
if File_proto_verify_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_verify_proto_rawDesc), len(file_proto_verify_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_proto_verify_proto_goTypes,
|
||||
DependencyIndexes: file_proto_verify_proto_depIdxs,
|
||||
MessageInfos: file_proto_verify_proto_msgTypes,
|
||||
}.Build()
|
||||
File_proto_verify_proto = out.File
|
||||
file_proto_verify_proto_goTypes = nil
|
||||
file_proto_verify_proto_depIdxs = nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue