1 Star 3 Fork 20

go-course / keyauth-g7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
token.pb.go 29.81 KB
一键复制 编辑 原始数据 按行查看 历史
Mr.Yu 提交于 2022-06-11 16:20 . 完成Token接口
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.1
// source: apps/token/pb/token.proto
package token
import (
request "github.com/infraboard/mcube/http/request"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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 GranteType int32
const (
// 通过Paasword授权
GranteType_PASSWORD GranteType = 0
// LDAP认证
GranteType_LADP GranteType = 1
// 通过ACCESS TOKEN来获取一个 TK, 用户API用户访问(RESTful SDK)
// 通过一个User Password的Token 来生成一个 ACCESS TOKEN
// HTTP API 编程访问
GranteType_ACCESS_TOKEN GranteType = 2
// 通过REFRESH TOKEN获取令牌
GranteType_REFRSH_TOKEN GranteType = 3
)
// Enum value maps for GranteType.
var (
GranteType_name = map[int32]string{
0: "PASSWORD",
1: "LADP",
2: "ACCESS_TOKEN",
3: "REFRSH_TOKEN",
}
GranteType_value = map[string]int32{
"PASSWORD": 0,
"LADP": 1,
"ACCESS_TOKEN": 2,
"REFRSH_TOKEN": 3,
}
)
func (x GranteType) Enum() *GranteType {
p := new(GranteType)
*p = x
return p
}
func (x GranteType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GranteType) Descriptor() protoreflect.EnumDescriptor {
return file_apps_token_pb_token_proto_enumTypes[0].Descriptor()
}
func (GranteType) Type() protoreflect.EnumType {
return &file_apps_token_pb_token_proto_enumTypes[0]
}
func (x GranteType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GranteType.Descriptor instead.
func (GranteType) EnumDescriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{0}
}
// Token todo
type Token struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 唯一ID
// @gotags: json:"access_token" bson:"_id"
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token" bson:"_id"`
// 颁发时间
// @gotags: json:"issue_at" bson:"issue_at"
IssueAt int64 `protobuf:"varint,2,opt,name=issue_at,json=issueAt,proto3" json:"issue_at" bson:"issue_at"`
// 更新时间
// @gotags: json:"update_at" bson:"update_at"
UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"`
// 更新人
// @gotags: json:"update_by" bson:"update_by"
UpdateBy string `protobuf:"bytes,4,opt,name=update_by,json=updateBy,proto3" json:"update_by" bson:"update_by"`
// 颁发请求
// @gotags: json:"data" bson:"data"
Data *IssueTokenRequest `protobuf:"bytes,5,opt,name=data,proto3" json:"data" bson:"data"`
// Access Token过期时间(绝对时间), 10分钟, now() + 10分钟
// @gotags: json:"access_token_expired_at" bson:"access_token_expired_at"
AccessTokenExpiredAt int64 `protobuf:"varint,6,opt,name=access_token_expired_at,json=accessTokenExpiredAt,proto3" json:"access_token_expired_at" bson:"access_token_expired_at"`
// token过期了, 允许刷新
// @gotags: json:"refresh_token" bson:"refresh_token"
RefreshToken string `protobuf:"bytes,7,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token" bson:"refresh_token"`
// Access Token过期时间(绝对时间), 10分钟, now() + 10分钟
// @gotags: json:"refresh_token_expired_at" bson:"refresh_token_expired_at"
RefreshTokenExpiredAt int64 `protobuf:"varint,8,opt,name=refresh_token_expired_at,json=refreshTokenExpiredAt,proto3" json:"refresh_token_expired_at" bson:"refresh_token_expired_at"`
// 用于传递额外信息
// @gotags: json:"meta" bson:"meta"
Meta map[string]string `protobuf:"bytes,10,rep,name=meta,proto3" json:"meta" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"meta"`
}
func (x *Token) Reset() {
*x = Token{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Token) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Token) ProtoMessage() {}
func (x *Token) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_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)
}
// Deprecated: Use Token.ProtoReflect.Descriptor instead.
func (*Token) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{0}
}
func (x *Token) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *Token) GetIssueAt() int64 {
if x != nil {
return x.IssueAt
}
return 0
}
func (x *Token) GetUpdateAt() int64 {
if x != nil {
return x.UpdateAt
}
return 0
}
func (x *Token) GetUpdateBy() string {
if x != nil {
return x.UpdateBy
}
return ""
}
func (x *Token) GetData() *IssueTokenRequest {
if x != nil {
return x.Data
}
return nil
}
func (x *Token) GetAccessTokenExpiredAt() int64 {
if x != nil {
return x.AccessTokenExpiredAt
}
return 0
}
func (x *Token) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
func (x *Token) GetRefreshTokenExpiredAt() int64 {
if x != nil {
return x.RefreshTokenExpiredAt
}
return 0
}
func (x *Token) GetMeta() map[string]string {
if x != nil {
return x.Meta
}
return nil
}
type IssueTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 授权类型
// @gotags: json:"grante_type" bson:"grante_type"
GranteType GranteType `protobuf:"varint,1,opt,name=grante_type,json=granteType,proto3,enum=keyauth_g7.token.GranteType" json:"grante_type" bson:"grante_type"`
// 授权类型
// @gotags: json:"domain" bson:"domain"
UserDomain string `protobuf:"bytes,2,opt,name=user_domain,json=userDomain,proto3" json:"domain" bson:"domain"`
// 授权类型
// @gotags: json:"user_name" bson:"user_name"
UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name" bson:"user_name"`
// 授权类型
// @gotags: json:"password" bson:"-"
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password" bson:"-"`
}
func (x *IssueTokenRequest) Reset() {
*x = IssueTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IssueTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IssueTokenRequest) ProtoMessage() {}
func (x *IssueTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_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)
}
// Deprecated: Use IssueTokenRequest.ProtoReflect.Descriptor instead.
func (*IssueTokenRequest) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{1}
}
func (x *IssueTokenRequest) GetGranteType() GranteType {
if x != nil {
return x.GranteType
}
return GranteType_PASSWORD
}
func (x *IssueTokenRequest) GetUserDomain() string {
if x != nil {
return x.UserDomain
}
return ""
}
func (x *IssueTokenRequest) GetUserName() string {
if x != nil {
return x.UserName
}
return ""
}
func (x *IssueTokenRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
type QueryTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 分页参数
// @gotags: json:"page"
Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"`
// 关键字参数
// @gotags: json:"keywords"
Keywords string `protobuf:"bytes,2,opt,name=keywords,proto3" json:"keywords"`
}
func (x *QueryTokenRequest) Reset() {
*x = QueryTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryTokenRequest) ProtoMessage() {}
func (x *QueryTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[2]
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)
}
// Deprecated: Use QueryTokenRequest.ProtoReflect.Descriptor instead.
func (*QueryTokenRequest) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{2}
}
func (x *QueryTokenRequest) GetPage() *request.PageRequest {
if x != nil {
return x.Page
}
return nil
}
func (x *QueryTokenRequest) GetKeywords() string {
if x != nil {
return x.Keywords
}
return ""
}
// TokenSet todo
type TokenSet struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 分页时,返回总数量
// @gotags: json:"total"
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
// 一页的数据
// @gotags: json:"items"
Items []*Token `protobuf:"bytes,2,rep,name=items,proto3" json:"items"`
}
func (x *TokenSet) Reset() {
*x = TokenSet{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TokenSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TokenSet) ProtoMessage() {}
func (x *TokenSet) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[3]
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)
}
// Deprecated: Use TokenSet.ProtoReflect.Descriptor instead.
func (*TokenSet) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{3}
}
func (x *TokenSet) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *TokenSet) GetItems() []*Token {
if x != nil {
return x.Items
}
return nil
}
type ValidateTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// access token
// @gotags: json:"access_token"
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"`
}
func (x *ValidateTokenRequest) Reset() {
*x = ValidateTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ValidateTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ValidateTokenRequest) ProtoMessage() {}
func (x *ValidateTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[4]
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)
}
// Deprecated: Use ValidateTokenRequest.ProtoReflect.Descriptor instead.
func (*ValidateTokenRequest) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{4}
}
func (x *ValidateTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
type DescribeTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// access token
// @gotags: json:"access_token"
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"`
}
func (x *DescribeTokenRequest) Reset() {
*x = DescribeTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DescribeTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DescribeTokenRequest) ProtoMessage() {}
func (x *DescribeTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[5]
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)
}
// Deprecated: Use DescribeTokenRequest.ProtoReflect.Descriptor instead.
func (*DescribeTokenRequest) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{5}
}
func (x *DescribeTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
type RevolkTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// access token
// @gotags: json:"access_token"
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"`
// refresh token, 当做撤销凭证
// @gotags: json:"refresh_token"
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token"`
}
func (x *RevolkTokenRequest) Reset() {
*x = RevolkTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RevolkTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevolkTokenRequest) ProtoMessage() {}
func (x *RevolkTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_token_pb_token_proto_msgTypes[6]
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)
}
// Deprecated: Use RevolkTokenRequest.ProtoReflect.Descriptor instead.
func (*RevolkTokenRequest) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{6}
}
func (x *RevolkTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *RevolkTokenRequest) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
var File_apps_token_pb_token_proto protoreflect.FileDescriptor
var file_apps_token_pb_token_proto_rawDesc = []byte{
0x0a, 0x19, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2f,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6b, 0x65, 0x79,
0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x2e, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62,
0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x70, 0x61,
0x67, 0x65, 0x2f, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x03,
0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73,
0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61,
0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73,
0x73, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x69, 0x73,
0x73, 0x75, 0x65, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x79, 0x12,
0x37, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e,
0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x17, 0x61, 0x63, 0x63, 0x65,
0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64,
0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x61, 0x63, 0x63, 0x65, 0x73,
0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12,
0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x37, 0x0a, 0x18, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74,
0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x35, 0x0a,
0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6b, 0x65,
0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04,
0x6d, 0x65, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xac, 0x01,
0x0a, 0x11, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x5f, 0x74, 0x79,
0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75,
0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x6e,
0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x54, 0x79,
0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x67, 0x0a, 0x11,
0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x36, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x22, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6d, 0x63, 0x75,
0x62, 0x65, 0x2e, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79,
0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79,
0x77, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x4f, 0x0a, 0x08, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65,
0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68,
0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x39, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21,
0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x22, 0x39, 0x0a, 0x14, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x6b,
0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63,
0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5c, 0x0a, 0x12,
0x52, 0x65, 0x76, 0x6f, 0x6c, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65,
0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2a, 0x48, 0x0a, 0x0a, 0x47, 0x72,
0x61, 0x6e, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53,
0x57, 0x4f, 0x52, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x41, 0x44, 0x50, 0x10, 0x01,
0x12, 0x10, 0x0a, 0x0c, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e,
0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x45, 0x46, 0x52, 0x53, 0x48, 0x5f, 0x54, 0x4f, 0x4b,
0x45, 0x4e, 0x10, 0x03, 0x32, 0xc4, 0x02, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x4a, 0x0a, 0x0a, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23,
0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37,
0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x4c, 0x0a, 0x0b,
0x52, 0x65, 0x76, 0x6f, 0x6c, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x24, 0x2e, 0x6b, 0x65,
0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x52,
0x65, 0x76, 0x6f, 0x6c, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x17, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x26, 0x2e, 0x6b, 0x65,
0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x56,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37,
0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x4d, 0x0a, 0x0a,
0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x2e, 0x6b, 0x65, 0x79,
0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1a, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x74, 0x42, 0x2b, 0x5a, 0x29, 0x67,
0x69, 0x74, 0x65, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x75, 0x72,
0x73, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2d, 0x67, 0x37, 0x2f, 0x61, 0x70,
0x70, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_apps_token_pb_token_proto_rawDescOnce sync.Once
file_apps_token_pb_token_proto_rawDescData = file_apps_token_pb_token_proto_rawDesc
)
func file_apps_token_pb_token_proto_rawDescGZIP() []byte {
file_apps_token_pb_token_proto_rawDescOnce.Do(func() {
file_apps_token_pb_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_token_pb_token_proto_rawDescData)
})
return file_apps_token_pb_token_proto_rawDescData
}
var file_apps_token_pb_token_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_apps_token_pb_token_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_apps_token_pb_token_proto_goTypes = []interface{}{
(GranteType)(0), // 0: keyauth_g7.token.GranteType
(*Token)(nil), // 1: keyauth_g7.token.Token
(*IssueTokenRequest)(nil), // 2: keyauth_g7.token.IssueTokenRequest
(*QueryTokenRequest)(nil), // 3: keyauth_g7.token.QueryTokenRequest
(*TokenSet)(nil), // 4: keyauth_g7.token.TokenSet
(*ValidateTokenRequest)(nil), // 5: keyauth_g7.token.ValidateTokenRequest
(*DescribeTokenRequest)(nil), // 6: keyauth_g7.token.DescribeTokenRequest
(*RevolkTokenRequest)(nil), // 7: keyauth_g7.token.RevolkTokenRequest
nil, // 8: keyauth_g7.token.Token.MetaEntry
(*request.PageRequest)(nil), // 9: infraboard.mcube.page.PageRequest
}
var file_apps_token_pb_token_proto_depIdxs = []int32{
2, // 0: keyauth_g7.token.Token.data:type_name -> keyauth_g7.token.IssueTokenRequest
8, // 1: keyauth_g7.token.Token.meta:type_name -> keyauth_g7.token.Token.MetaEntry
0, // 2: keyauth_g7.token.IssueTokenRequest.grante_type:type_name -> keyauth_g7.token.GranteType
9, // 3: keyauth_g7.token.QueryTokenRequest.page:type_name -> infraboard.mcube.page.PageRequest
1, // 4: keyauth_g7.token.TokenSet.items:type_name -> keyauth_g7.token.Token
2, // 5: keyauth_g7.token.Service.IssueToken:input_type -> keyauth_g7.token.IssueTokenRequest
7, // 6: keyauth_g7.token.Service.RevolkToken:input_type -> keyauth_g7.token.RevolkTokenRequest
5, // 7: keyauth_g7.token.Service.ValidateToken:input_type -> keyauth_g7.token.ValidateTokenRequest
3, // 8: keyauth_g7.token.Service.QueryToken:input_type -> keyauth_g7.token.QueryTokenRequest
1, // 9: keyauth_g7.token.Service.IssueToken:output_type -> keyauth_g7.token.Token
1, // 10: keyauth_g7.token.Service.RevolkToken:output_type -> keyauth_g7.token.Token
1, // 11: keyauth_g7.token.Service.ValidateToken:output_type -> keyauth_g7.token.Token
4, // 12: keyauth_g7.token.Service.QueryToken:output_type -> keyauth_g7.token.TokenSet
9, // [9:13] is the sub-list for method output_type
5, // [5:9] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_apps_token_pb_token_proto_init() }
func file_apps_token_pb_token_proto_init() {
if File_apps_token_pb_token_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_apps_token_pb_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Token); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IssueTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TokenSet); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ValidateTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DescribeTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_token_pb_token_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RevolkTokenRequest); 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_apps_token_pb_token_proto_rawDesc,
NumEnums: 1,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_apps_token_pb_token_proto_goTypes,
DependencyIndexes: file_apps_token_pb_token_proto_depIdxs,
EnumInfos: file_apps_token_pb_token_proto_enumTypes,
MessageInfos: file_apps_token_pb_token_proto_msgTypes,
}.Build()
File_apps_token_pb_token_proto = out.File
file_apps_token_pb_token_proto_rawDesc = nil
file_apps_token_pb_token_proto_goTypes = nil
file_apps_token_pb_token_proto_depIdxs = nil
}
1
https://gitee.com/go-course/keyauth-g7.git
git@gitee.com:go-course/keyauth-g7.git
go-course
keyauth-g7
keyauth-g7
v0.0.8

搜索帮助