代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v3.21.6
// 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 (
// 通过Password授权,默认方式
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获取令牌,当一个token过期以后通过refrash_token的方式获得一个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分钟,方便做session。通过过期时间管理session
// @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"`
Meta map[string]string `protobuf:"bytes,10,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
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
}
// 可以通过domain和name查询到
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_gp.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"`
// 主要针对Password授权,需要的参数
// @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, 0x70, 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, 0x70, 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, 0x70, 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, 0x70, 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, 0x70, 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, 0x70, 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, 0x70,
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, 0x70, 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, 0x70, 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, 0x70, 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, 0x70,
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, 0x70, 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, 0x70, 0x2e, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x74, 0x42, 0x2d, 0x5a, 0x2b, 0x67,
0x69, 0x74, 0x65, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6e, 0x67, 0x70, 0x65, 0x6e,
0x67, 0x41, 0x42, 0x43, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2d, 0x67, 0x70, 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_gp.token.GranteType
(*Token)(nil), // 1: keyauth_gp.token.Token
(*IssueTokenRequest)(nil), // 2: keyauth_gp.token.IssueTokenRequest
(*QueryTokenRequest)(nil), // 3: keyauth_gp.token.QueryTokenRequest
(*TokenSet)(nil), // 4: keyauth_gp.token.TokenSet
(*ValidateTokenRequest)(nil), // 5: keyauth_gp.token.ValidateTokenRequest
(*DescribeTokenRequest)(nil), // 6: keyauth_gp.token.DescribeTokenRequest
(*RevolkTokenRequest)(nil), // 7: keyauth_gp.token.RevolkTokenRequest
nil, // 8: keyauth_gp.token.Token.MetaEntry
(*request.PageRequest)(nil), // 9: infraboard.mcube.page.PageRequest
}
var file_apps_token_pb_token_proto_depIdxs = []int32{
2, // 0: keyauth_gp.token.Token.data:type_name -> keyauth_gp.token.IssueTokenRequest
8, // 1: keyauth_gp.token.Token.meta:type_name -> keyauth_gp.token.Token.MetaEntry
0, // 2: keyauth_gp.token.IssueTokenRequest.grante_type:type_name -> keyauth_gp.token.GranteType
9, // 3: keyauth_gp.token.QueryTokenRequest.page:type_name -> infraboard.mcube.page.PageRequest
1, // 4: keyauth_gp.token.TokenSet.items:type_name -> keyauth_gp.token.Token
2, // 5: keyauth_gp.token.Service.IssueToken:input_type -> keyauth_gp.token.IssueTokenRequest
7, // 6: keyauth_gp.token.Service.RevolkToken:input_type -> keyauth_gp.token.RevolkTokenRequest
5, // 7: keyauth_gp.token.Service.ValidateToken:input_type -> keyauth_gp.token.ValidateTokenRequest
3, // 8: keyauth_gp.token.Service.QueryToken:input_type -> keyauth_gp.token.QueryTokenRequest
1, // 9: keyauth_gp.token.Service.IssueToken:output_type -> keyauth_gp.token.Token
1, // 10: keyauth_gp.token.Service.RevolkToken:output_type -> keyauth_gp.token.Token
1, // 11: keyauth_gp.token.Service.ValidateToken:output_type -> keyauth_gp.token.Token
4, // 12: keyauth_gp.token.Service.QueryToken:output_type -> keyauth_gp.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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。