1 Star 0 Fork 0

MinKo-U / keyauth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
token.pb.go 40.44 KB
一键复制 编辑 原始数据 按行查看 历史
MinKo-U 提交于 2022-11-25 18:51 . 添加审计功能
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.21.9
// 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 GrantType int32
const (
GrantType_PASSWORD GrantType = 0
GrantType_REFRESH GrantType = 1
GrantType_LDAP GrantType = 2
GrantType_ACCESS GrantType = 3
)
// Enum value maps for GrantType.
var (
GrantType_name = map[int32]string{
0: "PASSWORD",
1: "REFRESH",
2: "LDAP",
3: "ACCESS",
}
GrantType_value = map[string]int32{
"PASSWORD": 0,
"REFRESH": 1,
"LDAP": 2,
"ACCESS": 3,
}
)
func (x GrantType) Enum() *GrantType {
p := new(GrantType)
*p = x
return p
}
func (x GrantType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GrantType) Descriptor() protoreflect.EnumDescriptor {
return file_apps_token_pb_token_proto_enumTypes[0].Descriptor()
}
func (GrantType) Type() protoreflect.EnumType {
return &file_apps_token_pb_token_proto_enumTypes[0]
}
func (x GrantType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GrantType.Descriptor instead.
func (GrantType) EnumDescriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{0}
}
type DescribeBy int32
const (
DescribeBy_ACCESS_ID DescribeBy = 0
DescribeBy_USER_NAME DescribeBy = 1
)
// Enum value maps for DescribeBy.
var (
DescribeBy_name = map[int32]string{
0: "ACCESS_ID",
1: "USER_NAME",
}
DescribeBy_value = map[string]int32{
"ACCESS_ID": 0,
"USER_NAME": 1,
}
)
func (x DescribeBy) Enum() *DescribeBy {
p := new(DescribeBy)
*p = x
return p
}
func (x DescribeBy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DescribeBy) Descriptor() protoreflect.EnumDescriptor {
return file_apps_token_pb_token_proto_enumTypes[1].Descriptor()
}
func (DescribeBy) Type() protoreflect.EnumType {
return &file_apps_token_pb_token_proto_enumTypes[1]
}
func (x DescribeBy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DescribeBy.Descriptor instead.
func (DescribeBy) EnumDescriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{1}
}
// Token todo
type Token struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 录入时间
// @gotags: bson:"_id" json:"access_token,omitempty"
AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty" bson:"_id"`
// @gotags: bson:"refresh_token" json:"refresh_token,omitempty"
RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty" bson:"refresh_token"`
// @gotags: bson:"issue_at" json:"issue_at,omitempty"
IssueAt int64 `protobuf:"varint,5,opt,name=issue_at,json=issueAt,proto3" json:"issue_at,omitempty" bson:"issue_at"`
// @gotags: bson:"access_expired_at" json:"access_expired_at,omitempty"
AccessExpiredAt int64 `protobuf:"varint,6,opt,name=access_expired_at,json=accessExpiredAt,proto3" json:"access_expired_at,omitempty" bson:"access_expired_at"`
// @gotags: bson:"refresh_expired_at" json:"refresh_expired_at,omitempty"
RefreshExpiredAt int64 `protobuf:"varint,7,opt,name=refresh_expired_at,json=refreshExpiredAt,proto3" json:"refresh_expired_at,omitempty" bson:"refresh_expired_at"`
// @gotags: bson:"grant_type" json:"grant_type"
GrantType GrantType `protobuf:"varint,15,opt,name=grant_type,json=grantType,proto3,enum=keyauth.token.GrantType" json:"grant_type" bson:"grant_type"`
// @gotags: bson:"user_name" json:"user_name"
UserName string `protobuf:"bytes,8,opt,name=user_name,json=userName,proto3" json:"user_name" bson:"user_name"`
// @gotags: bson:"namespace" json:"namespace"
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
Domain string `protobuf:"bytes,16,opt,name=domain,proto3" json:"domain,omitempty"`
}
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) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
func (x *Token) GetIssueAt() int64 {
if x != nil {
return x.IssueAt
}
return 0
}
func (x *Token) GetAccessExpiredAt() int64 {
if x != nil {
return x.AccessExpiredAt
}
return 0
}
func (x *Token) GetRefreshExpiredAt() int64 {
if x != nil {
return x.RefreshExpiredAt
}
return 0
}
func (x *Token) GetGrantType() GrantType {
if x != nil {
return x.GrantType
}
return GrantType_PASSWORD
}
func (x *Token) GetUserName() string {
if x != nil {
return x.UserName
}
return ""
}
func (x *Token) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *Token) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
type IssueTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// @gotags: bson:"access_token" json:"access_token,omitempty"
AccessId string `protobuf:"bytes,1,opt,name=access_id,json=accessId,proto3" json:"access_token,omitempty" bson:"access_token"`
// @gotags: bson:"user_name" json:"user_name,omitempty"
UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty" bson:"user_name"`
// @gotags: json:"password,omitempty"
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
// @gotags: bson:"user_domain" json:"user_domain,omitempty"
UserDomain string `protobuf:"bytes,8,opt,name=user_domain,json=userDomain,proto3" json:"user_domain,omitempty" bson:"user_domain"`
// @gotags: bson:"refresh_token" json:"refresh_token,omitempty"
GrantType GrantType `protobuf:"varint,15,opt,name=grant_type,json=grantType,proto3,enum=keyauth.token.GrantType" json:"refresh_token,omitempty" bson:"refresh_token"`
// @gotags: bson:"namespace" json:"namespace"
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
}
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) GetAccessId() string {
if x != nil {
return x.AccessId
}
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 ""
}
func (x *IssueTokenRequest) GetUserDomain() string {
if x != nil {
return x.UserDomain
}
return ""
}
func (x *IssueTokenRequest) GetGrantType() GrantType {
if x != nil {
return x.GrantType
}
return GrantType_PASSWORD
}
func (x *IssueTokenRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
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"`
// @gotags: bson:"namespace" json:"namespace"
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
}
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 ""
}
func (x *QueryTokenRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
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 DescribeTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// token id
// @gotags: json:"access_token"
AccessId string `protobuf:"bytes,1,opt,name=access_id,json=accessId,proto3" json:"access_token"`
// @gotags: json:"describe_type"
DescribeType DescribeBy `protobuf:"varint,2,opt,name=describe_type,json=describeType,proto3,enum=keyauth.token.DescribeBy" json:"describe_type"`
// @gotags: json:"user_domain"
UserDomain string `protobuf:"bytes,3,opt,name=user_domain,json=userDomain,proto3" json:"user_domain"`
// @gotags: json:"user_name"
UserName string `protobuf:"bytes,4,opt,name=user_name,json=userName,proto3" json:"user_name"`
// @gotags: bson:"namespace" json:"namespace"
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
}
func (x *DescribeTokenRequest) Reset() {
*x = DescribeTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[4]
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[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 DescribeTokenRequest.ProtoReflect.Descriptor instead.
func (*DescribeTokenRequest) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{4}
}
func (x *DescribeTokenRequest) GetAccessId() string {
if x != nil {
return x.AccessId
}
return ""
}
func (x *DescribeTokenRequest) GetDescribeType() DescribeBy {
if x != nil {
return x.DescribeType
}
return DescribeBy_ACCESS_ID
}
func (x *DescribeTokenRequest) GetUserDomain() string {
if x != nil {
return x.UserDomain
}
return ""
}
func (x *DescribeTokenRequest) GetUserName() string {
if x != nil {
return x.UserName
}
return ""
}
func (x *DescribeTokenRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
type UpdateTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// token id
AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
// @gotags: bson:"refresh_token" json:"refresh_token,omitempty"
RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty" bson:"refresh_token"`
// @gotags: bson:"create_at" json:"create_at,omitempty"
CreateAt int64 `protobuf:"varint,5,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty" bson:"create_at"`
// @gotags: bson:"access_expired_at" json:"access_expired_at,omitempty"
AccessExpiredAt int64 `protobuf:"varint,6,opt,name=access_expired_at,json=accessExpiredAt,proto3" json:"access_expired_at,omitempty" bson:"access_expired_at"`
// @gotags: bson:"refresh_expired_at" json:"refresh_expired_at,omitempty"
RefreshExpiredAt int64 `protobuf:"varint,7,opt,name=refresh_expired_at,json=refreshExpiredAt,proto3" json:"refresh_expired_at,omitempty" bson:"refresh_expired_at"`
// @gotags: bson:"domain" json:"domain,omitempty"
Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty" bson:"domain"`
// @gotags: bson:"namespace" json:"namespace"
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
// @gotags: bson:"grant_type" json:"grant_type"
GrantType GrantType `protobuf:"varint,15,opt,name=grant_type,json=grantType,proto3,enum=keyauth.token.GrantType" json:"grant_type" bson:"grant_type"`
}
func (x *UpdateTokenRequest) Reset() {
*x = UpdateTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateTokenRequest) ProtoMessage() {}
func (x *UpdateTokenRequest) 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 UpdateTokenRequest.ProtoReflect.Descriptor instead.
func (*UpdateTokenRequest) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{5}
}
func (x *UpdateTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *UpdateTokenRequest) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
func (x *UpdateTokenRequest) GetCreateAt() int64 {
if x != nil {
return x.CreateAt
}
return 0
}
func (x *UpdateTokenRequest) GetAccessExpiredAt() int64 {
if x != nil {
return x.AccessExpiredAt
}
return 0
}
func (x *UpdateTokenRequest) GetRefreshExpiredAt() int64 {
if x != nil {
return x.RefreshExpiredAt
}
return 0
}
func (x *UpdateTokenRequest) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *UpdateTokenRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *UpdateTokenRequest) GetGrantType() GrantType {
if x != nil {
return x.GrantType
}
return GrantType_PASSWORD
}
type ValidateTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// @gotags: json:"id"
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"id"`
// @gotags: bson:"domain" json:"domain,omitempty"
Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty" bson:"domain"`
// @gotags: bson:"namespace" json:"namespace"
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
}
func (x *ValidateTokenRequest) Reset() {
*x = ValidateTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[6]
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[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 ValidateTokenRequest.ProtoReflect.Descriptor instead.
func (*ValidateTokenRequest) Descriptor() ([]byte, []int) {
return file_apps_token_pb_token_proto_rawDescGZIP(), []int{6}
}
func (x *ValidateTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *ValidateTokenRequest) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *ValidateTokenRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
// 吊销token请求
type RevolkTokenRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// token id
// @gotags: json:"access_token"
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"`
// @gotags: bson:"refresh_token" json:"refresh_token,omitempty"
RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty" bson:"refresh_token"`
// @gotags: bson:"domain" json:"domain,omitempty"
Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty" bson:"domain"`
// @gotags: bson:"namespace" json:"namespace"
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace" bson:"namespace"`
}
func (x *RevolkTokenRequest) Reset() {
*x = RevolkTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_token_pb_token_proto_msgTypes[7]
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[7]
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{7}
}
func (x *RevolkTokenRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *RevolkTokenRequest) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
func (x *RevolkTokenRequest) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *RevolkTokenRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
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, 0x0d, 0x6b, 0x65, 0x79,
0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x0f, 0x70, 0x61, 0x67, 0x65,
0x2f, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x02, 0x0a, 0x05,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 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, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a,
0x08, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
0x07, 0x69, 0x73, 0x73, 0x75, 0x65, 0x41, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65,
0x73, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72,
0x65, 0x64, 0x41, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f,
0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
0x52, 0x10, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64,
0x41, 0x74, 0x12, 0x37, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68,
0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65,
0x52, 0x09, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,
0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d,
0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xe1,
0x01, 0x0a, 0x11, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x49,
0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
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, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73,
0x65, 0x72, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0a, 0x75, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x37, 0x0a, 0x0a, 0x67,
0x72, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32,
0x18, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e,
0x47, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x67, 0x72, 0x61, 0x6e, 0x74,
0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
0x63, 0x65, 0x22, 0x85, 0x01, 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, 0x12, 0x1c, 0x0a, 0x09,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x4c, 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, 0x2a, 0x0a, 0x05,
0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6b, 0x65,
0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0xcf, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x73,
0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x3e,
0x0a, 0x0d, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x42, 0x79,
0x52, 0x0c, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f,
0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 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, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09,
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xc2, 0x02, 0x0a, 0x12, 0x55,
0x70, 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, 0x03, 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, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66,
0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64,
0x41, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x65, 0x78,
0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10,
0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x41, 0x74,
0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,
0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d,
0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f,
0x74, 0x79, 0x70, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6b, 0x65, 0x79,
0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74,
0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22,
0x6f, 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, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18,
0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
0x22, 0x92, 0x01, 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, 0x04, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73,
0x70, 0x61, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65,
0x73, 0x70, 0x61, 0x63, 0x65, 0x2a, 0x3c, 0x0a, 0x09, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79,
0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x00,
0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a,
0x04, 0x4c, 0x44, 0x41, 0x50, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x43, 0x45, 0x53,
0x53, 0x10, 0x03, 0x2a, 0x2a, 0x0a, 0x0a, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x42,
0x79, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x49, 0x44, 0x10, 0x00,
0x12, 0x0d, 0x0a, 0x09, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x32,
0x82, 0x03, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x49,
0x73, 0x73, 0x75, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x2e, 0x6b, 0x65, 0x79, 0x61,
0x75, 0x74, 0x68, 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, 0x14, 0x2e, 0x6b, 0x65,
0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 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, 0x14, 0x2e, 0x6b, 0x65, 0x79, 0x61,
0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22,
0x00, 0x12, 0x4c, 0x0a, 0x0d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x6b,
0x65, 0x6e, 0x12, 0x23, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x00, 0x12,
0x48, 0x0a, 0x0b, 0x52, 0x65, 0x76, 0x6f, 0x6c, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21,
0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 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, 0x14, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0a, 0x51, 0x75, 0x65,
0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74,
0x68, 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, 0x17, 0x2e, 0x6b, 0x65, 0x79, 0x61,
0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53,
0x65, 0x74, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x65, 0x65, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x4d, 0x69, 0x6e, 0x4b, 0x6f, 0x2d, 0x55, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74,
0x68, 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, 2)
var file_apps_token_pb_token_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_apps_token_pb_token_proto_goTypes = []interface{}{
(GrantType)(0), // 0: keyauth.token.GrantType
(DescribeBy)(0), // 1: keyauth.token.DescribeBy
(*Token)(nil), // 2: keyauth.token.Token
(*IssueTokenRequest)(nil), // 3: keyauth.token.IssueTokenRequest
(*QueryTokenRequest)(nil), // 4: keyauth.token.QueryTokenRequest
(*TokenSet)(nil), // 5: keyauth.token.TokenSet
(*DescribeTokenRequest)(nil), // 6: keyauth.token.DescribeTokenRequest
(*UpdateTokenRequest)(nil), // 7: keyauth.token.UpdateTokenRequest
(*ValidateTokenRequest)(nil), // 8: keyauth.token.ValidateTokenRequest
(*RevolkTokenRequest)(nil), // 9: keyauth.token.RevolkTokenRequest
(*request.PageRequest)(nil), // 10: infraboard.mcube.page.PageRequest
}
var file_apps_token_pb_token_proto_depIdxs = []int32{
0, // 0: keyauth.token.Token.grant_type:type_name -> keyauth.token.GrantType
0, // 1: keyauth.token.IssueTokenRequest.grant_type:type_name -> keyauth.token.GrantType
10, // 2: keyauth.token.QueryTokenRequest.page:type_name -> infraboard.mcube.page.PageRequest
2, // 3: keyauth.token.TokenSet.items:type_name -> keyauth.token.Token
1, // 4: keyauth.token.DescribeTokenRequest.describe_type:type_name -> keyauth.token.DescribeBy
0, // 5: keyauth.token.UpdateTokenRequest.grant_type:type_name -> keyauth.token.GrantType
3, // 6: keyauth.token.Service.IssueToken:input_type -> keyauth.token.IssueTokenRequest
8, // 7: keyauth.token.Service.ValidateToken:input_type -> keyauth.token.ValidateTokenRequest
6, // 8: keyauth.token.Service.DescribeToken:input_type -> keyauth.token.DescribeTokenRequest
9, // 9: keyauth.token.Service.RevolkToken:input_type -> keyauth.token.RevolkTokenRequest
4, // 10: keyauth.token.Service.QueryToken:input_type -> keyauth.token.QueryTokenRequest
2, // 11: keyauth.token.Service.IssueToken:output_type -> keyauth.token.Token
2, // 12: keyauth.token.Service.ValidateToken:output_type -> keyauth.token.Token
2, // 13: keyauth.token.Service.DescribeToken:output_type -> keyauth.token.Token
2, // 14: keyauth.token.Service.RevolkToken:output_type -> keyauth.token.Token
5, // 15: keyauth.token.Service.QueryToken:output_type -> keyauth.token.TokenSet
11, // [11:16] is the sub-list for method output_type
6, // [6:11] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] 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.(*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[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateTokenRequest); 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.(*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[7].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: 2,
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/MinKo-U/keyauth.git
git@gitee.com:MinKo-U/keyauth.git
MinKo-U
keyauth
keyauth
v1.4.0

搜索帮助