1103 lines
35 KiB
Go
1103 lines
35 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v4.25.9
|
|
// source: sso/oauth.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// --- Сообщения для базового SSO ---
|
|
type GenerateOauthCodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GenerateOauthCodeRequest) Reset() {
|
|
*x = GenerateOauthCodeRequest{}
|
|
mi := &file_sso_oauth_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GenerateOauthCodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GenerateOauthCodeRequest) ProtoMessage() {}
|
|
|
|
func (x *GenerateOauthCodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GenerateOauthCodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*GenerateOauthCodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *GenerateOauthCodeRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateOauthCodeRequest) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateOauthCodeRequest) GetRedirectUri() string {
|
|
if x != nil {
|
|
return x.RedirectUri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GenerateOauthCodeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GenerateOauthCodeResponse) Reset() {
|
|
*x = GenerateOauthCodeResponse{}
|
|
mi := &file_sso_oauth_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GenerateOauthCodeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GenerateOauthCodeResponse) ProtoMessage() {}
|
|
|
|
func (x *GenerateOauthCodeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GenerateOauthCodeResponse.ProtoReflect.Descriptor instead.
|
|
func (*GenerateOauthCodeResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GenerateOauthCodeResponse) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ExchangeOauthCodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeRequest) Reset() {
|
|
*x = ExchangeOauthCodeRequest{}
|
|
mi := &file_sso_oauth_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ExchangeOauthCodeRequest) ProtoMessage() {}
|
|
|
|
func (x *ExchangeOauthCodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ExchangeOauthCodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*ExchangeOauthCodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeRequest) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeRequest) GetClientSecret() string {
|
|
if x != nil {
|
|
return x.ClientSecret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ExchangeOauthCodeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
ExpiresIn int32 `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeResponse) Reset() {
|
|
*x = ExchangeOauthCodeResponse{}
|
|
mi := &file_sso_oauth_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ExchangeOauthCodeResponse) ProtoMessage() {}
|
|
|
|
func (x *ExchangeOauthCodeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ExchangeOauthCodeResponse.ProtoReflect.Descriptor instead.
|
|
func (*ExchangeOauthCodeResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ExchangeOauthCodeResponse) GetExpiresIn() int32 {
|
|
if x != nil {
|
|
return x.ExpiresIn
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// --- Сообщения для управления клиентами ---
|
|
type CreateOauthClientRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
|
|
Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateOauthClientRequest) Reset() {
|
|
*x = CreateOauthClientRequest{}
|
|
mi := &file_sso_oauth_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateOauthClientRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateOauthClientRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateOauthClientRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateOauthClientRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateOauthClientRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CreateOauthClientRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOauthClientRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOauthClientRequest) GetRedirectUris() []string {
|
|
if x != nil {
|
|
return x.RedirectUris
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateOauthClientRequest) GetDescription() string {
|
|
if x != nil && x.Description != nil {
|
|
return *x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateOauthClientResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
PlainSecret string `protobuf:"bytes,4,opt,name=plain_secret,json=plainSecret,proto3" json:"plain_secret,omitempty"` // Отдается ТОЛЬКО здесь один раз
|
|
RedirectUris []string `protobuf:"bytes,5,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
|
|
OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateOauthClientResponse) Reset() {
|
|
*x = CreateOauthClientResponse{}
|
|
mi := &file_sso_oauth_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateOauthClientResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateOauthClientResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateOauthClientResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateOauthClientResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateOauthClientResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CreateOauthClientResponse) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOauthClientResponse) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOauthClientResponse) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOauthClientResponse) GetPlainSecret() string {
|
|
if x != nil {
|
|
return x.PlainSecret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateOauthClientResponse) GetRedirectUris() []string {
|
|
if x != nil {
|
|
return x.RedirectUris
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateOauthClientResponse) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetOauthClientsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
IsAdmin bool `protobuf:"varint,2,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` // Если true, owner_id игнорируется, выдаются все клиенты
|
|
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetOauthClientsRequest) Reset() {
|
|
*x = GetOauthClientsRequest{}
|
|
mi := &file_sso_oauth_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetOauthClientsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOauthClientsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetOauthClientsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetOauthClientsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetOauthClientsRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetOauthClientsRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetOauthClientsRequest) GetIsAdmin() bool {
|
|
if x != nil {
|
|
return x.IsAdmin
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetOauthClientsRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetOauthClientsRequest) GetOffset() int32 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type OauthClientItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
RedirectUris []string `protobuf:"bytes,4,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
|
|
Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
|
OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OauthClientItem) Reset() {
|
|
*x = OauthClientItem{}
|
|
mi := &file_sso_oauth_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OauthClientItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OauthClientItem) ProtoMessage() {}
|
|
|
|
func (x *OauthClientItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OauthClientItem.ProtoReflect.Descriptor instead.
|
|
func (*OauthClientItem) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *OauthClientItem) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OauthClientItem) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OauthClientItem) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OauthClientItem) GetRedirectUris() []string {
|
|
if x != nil {
|
|
return x.RedirectUris
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OauthClientItem) GetDescription() string {
|
|
if x != nil && x.Description != nil {
|
|
return *x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OauthClientItem) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OauthClientItem) GetCreatedAt() int64 {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOauthClientsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Clients []*OauthClientItem `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
|
|
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetOauthClientsResponse) Reset() {
|
|
*x = GetOauthClientsResponse{}
|
|
mi := &file_sso_oauth_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetOauthClientsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOauthClientsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetOauthClientsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetOauthClientsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetOauthClientsResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetOauthClientsResponse) GetClients() []*OauthClientItem {
|
|
if x != nil {
|
|
return x.Clients
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetOauthClientsResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateOauthClientRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // ID того, кто делает запрос
|
|
IsAdmin bool `protobuf:"varint,3,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
|
|
Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
|
|
RedirectUris []string `protobuf:"bytes,5,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
|
|
Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateOauthClientRequest) Reset() {
|
|
*x = UpdateOauthClientRequest{}
|
|
mi := &file_sso_oauth_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateOauthClientRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateOauthClientRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateOauthClientRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateOauthClientRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateOauthClientRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *UpdateOauthClientRequest) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOauthClientRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOauthClientRequest) GetIsAdmin() bool {
|
|
if x != nil {
|
|
return x.IsAdmin
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdateOauthClientRequest) GetName() string {
|
|
if x != nil && x.Name != nil {
|
|
return *x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOauthClientRequest) GetRedirectUris() []string {
|
|
if x != nil {
|
|
return x.RedirectUris
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateOauthClientRequest) GetDescription() string {
|
|
if x != nil && x.Description != nil {
|
|
return *x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateOauthClientResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateOauthClientResponse) Reset() {
|
|
*x = UpdateOauthClientResponse{}
|
|
mi := &file_sso_oauth_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateOauthClientResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateOauthClientResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateOauthClientResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateOauthClientResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateOauthClientResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *UpdateOauthClientResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ResetOauthSecretRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
IsAdmin bool `protobuf:"varint,3,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResetOauthSecretRequest) Reset() {
|
|
*x = ResetOauthSecretRequest{}
|
|
mi := &file_sso_oauth_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResetOauthSecretRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResetOauthSecretRequest) ProtoMessage() {}
|
|
|
|
func (x *ResetOauthSecretRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResetOauthSecretRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResetOauthSecretRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *ResetOauthSecretRequest) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResetOauthSecretRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResetOauthSecretRequest) GetIsAdmin() bool {
|
|
if x != nil {
|
|
return x.IsAdmin
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ResetOauthSecretResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NewPlainSecret string `protobuf:"bytes,1,opt,name=new_plain_secret,json=newPlainSecret,proto3" json:"new_plain_secret,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResetOauthSecretResponse) Reset() {
|
|
*x = ResetOauthSecretResponse{}
|
|
mi := &file_sso_oauth_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResetOauthSecretResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResetOauthSecretResponse) ProtoMessage() {}
|
|
|
|
func (x *ResetOauthSecretResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResetOauthSecretResponse.ProtoReflect.Descriptor instead.
|
|
func (*ResetOauthSecretResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *ResetOauthSecretResponse) GetNewPlainSecret() string {
|
|
if x != nil {
|
|
return x.NewPlainSecret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteOauthClientRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
|
IsAdmin bool `protobuf:"varint,3,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteOauthClientRequest) Reset() {
|
|
*x = DeleteOauthClientRequest{}
|
|
mi := &file_sso_oauth_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteOauthClientRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteOauthClientRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteOauthClientRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteOauthClientRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteOauthClientRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *DeleteOauthClientRequest) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteOauthClientRequest) GetOwnerId() string {
|
|
if x != nil {
|
|
return x.OwnerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteOauthClientRequest) GetIsAdmin() bool {
|
|
if x != nil {
|
|
return x.IsAdmin
|
|
}
|
|
return false
|
|
}
|
|
|
|
type DeleteOauthClientResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteOauthClientResponse) Reset() {
|
|
*x = DeleteOauthClientResponse{}
|
|
mi := &file_sso_oauth_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteOauthClientResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteOauthClientResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteOauthClientResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_oauth_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteOauthClientResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteOauthClientResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_oauth_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *DeleteOauthClientResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_sso_oauth_proto protoreflect.FileDescriptor
|
|
|
|
const file_sso_oauth_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0fsso/oauth.proto\x12\boauth.v1\"s\n" +
|
|
"\x18GenerateOauthCodeRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1b\n" +
|
|
"\tclient_id\x18\x02 \x01(\tR\bclientId\x12!\n" +
|
|
"\fredirect_uri\x18\x03 \x01(\tR\vredirectUri\"/\n" +
|
|
"\x19GenerateOauthCodeResponse\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\"p\n" +
|
|
"\x18ExchangeOauthCodeRequest\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\x12\x1b\n" +
|
|
"\tclient_id\x18\x02 \x01(\tR\bclientId\x12#\n" +
|
|
"\rclient_secret\x18\x03 \x01(\tR\fclientSecret\"]\n" +
|
|
"\x19ExchangeOauthCodeResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x1d\n" +
|
|
"\n" +
|
|
"expires_in\x18\x02 \x01(\x05R\texpiresIn\"\xa5\x01\n" +
|
|
"\x18CreateOauthClientRequest\x12\x19\n" +
|
|
"\bowner_id\x18\x01 \x01(\tR\aownerId\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12#\n" +
|
|
"\rredirect_uris\x18\x03 \x03(\tR\fredirectUris\x12%\n" +
|
|
"\vdescription\x18\x04 \x01(\tH\x00R\vdescription\x88\x01\x01B\x0e\n" +
|
|
"\f_description\"\xbf\x01\n" +
|
|
"\x19CreateOauthClientResponse\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1b\n" +
|
|
"\tclient_id\x18\x03 \x01(\tR\bclientId\x12!\n" +
|
|
"\fplain_secret\x18\x04 \x01(\tR\vplainSecret\x12#\n" +
|
|
"\rredirect_uris\x18\x05 \x03(\tR\fredirectUris\x12\x19\n" +
|
|
"\bowner_id\x18\x06 \x01(\tR\aownerId\"|\n" +
|
|
"\x16GetOauthClientsRequest\x12\x19\n" +
|
|
"\bowner_id\x18\x01 \x01(\tR\aownerId\x12\x19\n" +
|
|
"\bis_admin\x18\x02 \x01(\bR\aisAdmin\x12\x14\n" +
|
|
"\x05limit\x18\x03 \x01(\x05R\x05limit\x12\x16\n" +
|
|
"\x06offset\x18\x04 \x01(\x05R\x06offset\"\xe8\x01\n" +
|
|
"\x0fOauthClientItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1b\n" +
|
|
"\tclient_id\x18\x03 \x01(\tR\bclientId\x12#\n" +
|
|
"\rredirect_uris\x18\x04 \x03(\tR\fredirectUris\x12%\n" +
|
|
"\vdescription\x18\x05 \x01(\tH\x00R\vdescription\x88\x01\x01\x12\x19\n" +
|
|
"\bowner_id\x18\x06 \x01(\tR\aownerId\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\a \x01(\x03R\tcreatedAtB\x0e\n" +
|
|
"\f_description\"d\n" +
|
|
"\x17GetOauthClientsResponse\x123\n" +
|
|
"\aclients\x18\x01 \x03(\v2\x19.oauth.v1.OauthClientItemR\aclients\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x05R\x05total\"\xeb\x01\n" +
|
|
"\x18UpdateOauthClientRequest\x12\x1b\n" +
|
|
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12\x19\n" +
|
|
"\bowner_id\x18\x02 \x01(\tR\aownerId\x12\x19\n" +
|
|
"\bis_admin\x18\x03 \x01(\bR\aisAdmin\x12\x17\n" +
|
|
"\x04name\x18\x04 \x01(\tH\x00R\x04name\x88\x01\x01\x12#\n" +
|
|
"\rredirect_uris\x18\x05 \x03(\tR\fredirectUris\x12%\n" +
|
|
"\vdescription\x18\x06 \x01(\tH\x01R\vdescription\x88\x01\x01B\a\n" +
|
|
"\x05_nameB\x0e\n" +
|
|
"\f_description\"5\n" +
|
|
"\x19UpdateOauthClientResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"l\n" +
|
|
"\x17ResetOauthSecretRequest\x12\x1b\n" +
|
|
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12\x19\n" +
|
|
"\bowner_id\x18\x02 \x01(\tR\aownerId\x12\x19\n" +
|
|
"\bis_admin\x18\x03 \x01(\bR\aisAdmin\"D\n" +
|
|
"\x18ResetOauthSecretResponse\x12(\n" +
|
|
"\x10new_plain_secret\x18\x01 \x01(\tR\x0enewPlainSecret\"m\n" +
|
|
"\x18DeleteOauthClientRequest\x12\x1b\n" +
|
|
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12\x19\n" +
|
|
"\bowner_id\x18\x02 \x01(\tR\aownerId\x12\x19\n" +
|
|
"\bis_admin\x18\x03 \x01(\bR\aisAdmin\"5\n" +
|
|
"\x19DeleteOauthClientResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess2\x97\x05\n" +
|
|
"\fOauthService\x12\\\n" +
|
|
"\x11GenerateOauthCode\x12\".oauth.v1.GenerateOauthCodeRequest\x1a#.oauth.v1.GenerateOauthCodeResponse\x12\\\n" +
|
|
"\x11ExchangeOauthCode\x12\".oauth.v1.ExchangeOauthCodeRequest\x1a#.oauth.v1.ExchangeOauthCodeResponse\x12\\\n" +
|
|
"\x11CreateOauthClient\x12\".oauth.v1.CreateOauthClientRequest\x1a#.oauth.v1.CreateOauthClientResponse\x12V\n" +
|
|
"\x0fGetOauthClients\x12 .oauth.v1.GetOauthClientsRequest\x1a!.oauth.v1.GetOauthClientsResponse\x12\\\n" +
|
|
"\x11UpdateOauthClient\x12\".oauth.v1.UpdateOauthClientRequest\x1a#.oauth.v1.UpdateOauthClientResponse\x12Y\n" +
|
|
"\x10ResetOauthSecret\x12!.oauth.v1.ResetOauthSecretRequest\x1a\".oauth.v1.ResetOauthSecretResponse\x12\\\n" +
|
|
"\x11DeleteOauthClient\x12\".oauth.v1.DeleteOauthClientRequest\x1a#.oauth.v1.DeleteOauthClientResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
|
|
|
|
var (
|
|
file_sso_oauth_proto_rawDescOnce sync.Once
|
|
file_sso_oauth_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_sso_oauth_proto_rawDescGZIP() []byte {
|
|
file_sso_oauth_proto_rawDescOnce.Do(func() {
|
|
file_sso_oauth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_sso_oauth_proto_rawDesc), len(file_sso_oauth_proto_rawDesc)))
|
|
})
|
|
return file_sso_oauth_proto_rawDescData
|
|
}
|
|
|
|
var file_sso_oauth_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
|
var file_sso_oauth_proto_goTypes = []any{
|
|
(*GenerateOauthCodeRequest)(nil), // 0: oauth.v1.GenerateOauthCodeRequest
|
|
(*GenerateOauthCodeResponse)(nil), // 1: oauth.v1.GenerateOauthCodeResponse
|
|
(*ExchangeOauthCodeRequest)(nil), // 2: oauth.v1.ExchangeOauthCodeRequest
|
|
(*ExchangeOauthCodeResponse)(nil), // 3: oauth.v1.ExchangeOauthCodeResponse
|
|
(*CreateOauthClientRequest)(nil), // 4: oauth.v1.CreateOauthClientRequest
|
|
(*CreateOauthClientResponse)(nil), // 5: oauth.v1.CreateOauthClientResponse
|
|
(*GetOauthClientsRequest)(nil), // 6: oauth.v1.GetOauthClientsRequest
|
|
(*OauthClientItem)(nil), // 7: oauth.v1.OauthClientItem
|
|
(*GetOauthClientsResponse)(nil), // 8: oauth.v1.GetOauthClientsResponse
|
|
(*UpdateOauthClientRequest)(nil), // 9: oauth.v1.UpdateOauthClientRequest
|
|
(*UpdateOauthClientResponse)(nil), // 10: oauth.v1.UpdateOauthClientResponse
|
|
(*ResetOauthSecretRequest)(nil), // 11: oauth.v1.ResetOauthSecretRequest
|
|
(*ResetOauthSecretResponse)(nil), // 12: oauth.v1.ResetOauthSecretResponse
|
|
(*DeleteOauthClientRequest)(nil), // 13: oauth.v1.DeleteOauthClientRequest
|
|
(*DeleteOauthClientResponse)(nil), // 14: oauth.v1.DeleteOauthClientResponse
|
|
}
|
|
var file_sso_oauth_proto_depIdxs = []int32{
|
|
7, // 0: oauth.v1.GetOauthClientsResponse.clients:type_name -> oauth.v1.OauthClientItem
|
|
0, // 1: oauth.v1.OauthService.GenerateOauthCode:input_type -> oauth.v1.GenerateOauthCodeRequest
|
|
2, // 2: oauth.v1.OauthService.ExchangeOauthCode:input_type -> oauth.v1.ExchangeOauthCodeRequest
|
|
4, // 3: oauth.v1.OauthService.CreateOauthClient:input_type -> oauth.v1.CreateOauthClientRequest
|
|
6, // 4: oauth.v1.OauthService.GetOauthClients:input_type -> oauth.v1.GetOauthClientsRequest
|
|
9, // 5: oauth.v1.OauthService.UpdateOauthClient:input_type -> oauth.v1.UpdateOauthClientRequest
|
|
11, // 6: oauth.v1.OauthService.ResetOauthSecret:input_type -> oauth.v1.ResetOauthSecretRequest
|
|
13, // 7: oauth.v1.OauthService.DeleteOauthClient:input_type -> oauth.v1.DeleteOauthClientRequest
|
|
1, // 8: oauth.v1.OauthService.GenerateOauthCode:output_type -> oauth.v1.GenerateOauthCodeResponse
|
|
3, // 9: oauth.v1.OauthService.ExchangeOauthCode:output_type -> oauth.v1.ExchangeOauthCodeResponse
|
|
5, // 10: oauth.v1.OauthService.CreateOauthClient:output_type -> oauth.v1.CreateOauthClientResponse
|
|
8, // 11: oauth.v1.OauthService.GetOauthClients:output_type -> oauth.v1.GetOauthClientsResponse
|
|
10, // 12: oauth.v1.OauthService.UpdateOauthClient:output_type -> oauth.v1.UpdateOauthClientResponse
|
|
12, // 13: oauth.v1.OauthService.ResetOauthSecret:output_type -> oauth.v1.ResetOauthSecretResponse
|
|
14, // 14: oauth.v1.OauthService.DeleteOauthClient:output_type -> oauth.v1.DeleteOauthClientResponse
|
|
8, // [8:15] is the sub-list for method output_type
|
|
1, // [1:8] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_sso_oauth_proto_init() }
|
|
func file_sso_oauth_proto_init() {
|
|
if File_sso_oauth_proto != nil {
|
|
return
|
|
}
|
|
file_sso_oauth_proto_msgTypes[4].OneofWrappers = []any{}
|
|
file_sso_oauth_proto_msgTypes[7].OneofWrappers = []any{}
|
|
file_sso_oauth_proto_msgTypes[9].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_sso_oauth_proto_rawDesc), len(file_sso_oauth_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 15,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_sso_oauth_proto_goTypes,
|
|
DependencyIndexes: file_sso_oauth_proto_depIdxs,
|
|
MessageInfos: file_sso_oauth_proto_msgTypes,
|
|
}.Build()
|
|
File_sso_oauth_proto = out.File
|
|
file_sso_oauth_proto_goTypes = nil
|
|
file_sso_oauth_proto_depIdxs = nil
|
|
}
|