2170 lines
67 KiB
Go
2170 lines
67 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v4.25.9
|
|
// source: sso/auth.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)
|
|
)
|
|
|
|
type LoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // Уникальный идентификатор устройства клиента
|
|
PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Публичный ключ устройства для шифрования сообщений
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginRequest) Reset() {
|
|
*x = LoginRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginRequest) ProtoMessage() {}
|
|
|
|
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 LoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *LoginRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetDeviceId() string {
|
|
if x != nil {
|
|
return x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
|
|
Need2Fa bool `protobuf:"varint,4,opt,name=need2fa,proto3" json:"need2fa,omitempty"`
|
|
TempToken *string `protobuf:"bytes,5,opt,name=temp_token,json=tempToken,proto3,oneof" json:"temp_token,omitempty"`
|
|
Message *string `protobuf:"bytes,6,opt,name=message,proto3,oneof" json:"message,omitempty"`
|
|
ErrorCode *string `protobuf:"bytes,7,opt,name=error_code,json=errorCode,proto3,oneof" json:"error_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginResponse) Reset() {
|
|
*x = LoginResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginResponse) ProtoMessage() {}
|
|
|
|
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 LoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *LoginResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetNeed2Fa() bool {
|
|
if x != nil {
|
|
return x.Need2Fa
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *LoginResponse) GetTempToken() string {
|
|
if x != nil && x.TempToken != nil {
|
|
return *x.TempToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetMessage() string {
|
|
if x != nil && x.Message != nil {
|
|
return *x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetErrorCode() string {
|
|
if x != nil && x.ErrorCode != nil {
|
|
return *x.ErrorCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RefreshRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RefreshRequest) Reset() {
|
|
*x = RefreshRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RefreshRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RefreshRequest) ProtoMessage() {}
|
|
|
|
func (x *RefreshRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 RefreshRequest.ProtoReflect.Descriptor instead.
|
|
func (*RefreshRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *RefreshRequest) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RefreshResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RefreshResponse) Reset() {
|
|
*x = RefreshResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RefreshResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RefreshResponse) ProtoMessage() {}
|
|
|
|
func (x *RefreshResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 RefreshResponse.ProtoReflect.Descriptor instead.
|
|
func (*RefreshResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RefreshResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RefreshResponse) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LogoutRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LogoutRequest) Reset() {
|
|
*x = LogoutRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LogoutRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LogoutRequest) ProtoMessage() {}
|
|
|
|
func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 LogoutRequest.ProtoReflect.Descriptor instead.
|
|
func (*LogoutRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *LogoutRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LogoutRequest) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LogoutResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LogoutResponse) Reset() {
|
|
*x = LogoutResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LogoutResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LogoutResponse) ProtoMessage() {}
|
|
|
|
func (x *LogoutResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 LogoutResponse.ProtoReflect.Descriptor instead.
|
|
func (*LogoutResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *LogoutResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *LogoutResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyTokenRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) Reset() {
|
|
*x = VerifyTokenRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyTokenRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 VerifyTokenRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyTokenRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyTokenResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
|
|
ErrorMessage *string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
|
|
Id *string `protobuf:"bytes,3,opt,name=id,proto3,oneof" json:"id,omitempty"`
|
|
Username *string `protobuf:"bytes,4,opt,name=username,proto3,oneof" json:"username,omitempty"`
|
|
RoleLevel *int32 `protobuf:"varint,5,opt,name=role_level,json=roleLevel,proto3,oneof" json:"role_level,omitempty"`
|
|
Permissions []string `protobuf:"bytes,6,rep,name=permissions,proto3" json:"permissions,omitempty"`
|
|
SessionId *string `protobuf:"bytes,7,opt,name=session_id,json=sessionId,proto3,oneof" json:"session_id,omitempty"`
|
|
RequiresPin *bool `protobuf:"varint,8,opt,name=requires_pin,json=requiresPin,proto3,oneof" json:"requires_pin,omitempty"`
|
|
DeviceId *string `protobuf:"bytes,9,opt,name=device_id,json=deviceId,proto3,oneof" json:"device_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) Reset() {
|
|
*x = VerifyTokenResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyTokenResponse) ProtoMessage() {}
|
|
|
|
func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 VerifyTokenResponse.ProtoReflect.Descriptor instead.
|
|
func (*VerifyTokenResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetIsValid() bool {
|
|
if x != nil {
|
|
return x.IsValid
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetErrorMessage() string {
|
|
if x != nil && x.ErrorMessage != nil {
|
|
return *x.ErrorMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetId() string {
|
|
if x != nil && x.Id != nil {
|
|
return *x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetUsername() string {
|
|
if x != nil && x.Username != nil {
|
|
return *x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetRoleLevel() int32 {
|
|
if x != nil && x.RoleLevel != nil {
|
|
return *x.RoleLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetPermissions() []string {
|
|
if x != nil {
|
|
return x.Permissions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetSessionId() string {
|
|
if x != nil && x.SessionId != nil {
|
|
return *x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetRequiresPin() bool {
|
|
if x != nil && x.RequiresPin != nil {
|
|
return *x.RequiresPin
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetDeviceId() string {
|
|
if x != nil && x.DeviceId != nil {
|
|
return *x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetAccountRoleLevelRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountRoleLevelRequest) Reset() {
|
|
*x = GetAccountRoleLevelRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountRoleLevelRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountRoleLevelRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAccountRoleLevelRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 GetAccountRoleLevelRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountRoleLevelRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetAccountRoleLevelRequest) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetAccountRoleLevelResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
|
|
RoleLevel int32 `protobuf:"varint,2,opt,name=role_level,json=roleLevel,proto3" json:"role_level,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAccountRoleLevelResponse) Reset() {
|
|
*x = GetAccountRoleLevelResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAccountRoleLevelResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAccountRoleLevelResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAccountRoleLevelResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 GetAccountRoleLevelResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAccountRoleLevelResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetAccountRoleLevelResponse) GetFound() bool {
|
|
if x != nil {
|
|
return x.Found
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetAccountRoleLevelResponse) GetRoleLevel() int32 {
|
|
if x != nil {
|
|
return x.RoleLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetSessionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
CurrentSessionId string `protobuf:"bytes,2,opt,name=current_session_id,json=currentSessionId,proto3" json:"current_session_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSessionRequest) Reset() {
|
|
*x = GetSessionRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSessionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSessionRequest) ProtoMessage() {}
|
|
|
|
func (x *GetSessionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 GetSessionRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSessionRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *GetSessionRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetSessionRequest) GetCurrentSessionId() string {
|
|
if x != nil {
|
|
return x.CurrentSessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SessionItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Здесь будет лежать захэшированный ID
|
|
IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
|
|
UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
|
|
LastActivity int64 `protobuf:"varint,4,opt,name=last_activity,json=lastActivity,proto3" json:"last_activity,omitempty"` // Unix timestamp в миллисекундах
|
|
IsCurrent bool `protobuf:"varint,5,opt,name=is_current,json=isCurrent,proto3" json:"is_current,omitempty"` // Флаг текущей сессии
|
|
DeviceId string `protobuf:"bytes,6,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SessionItem) Reset() {
|
|
*x = SessionItem{}
|
|
mi := &file_sso_auth_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SessionItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SessionItem) ProtoMessage() {}
|
|
|
|
func (x *SessionItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 SessionItem.ProtoReflect.Descriptor instead.
|
|
func (*SessionItem) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *SessionItem) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SessionItem) GetIpAddress() string {
|
|
if x != nil {
|
|
return x.IpAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SessionItem) GetUserAgent() string {
|
|
if x != nil {
|
|
return x.UserAgent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SessionItem) GetLastActivity() int64 {
|
|
if x != nil {
|
|
return x.LastActivity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SessionItem) GetIsCurrent() bool {
|
|
if x != nil {
|
|
return x.IsCurrent
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SessionItem) GetDeviceId() string {
|
|
if x != nil {
|
|
return x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetSessionsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Sessions []*SessionItem `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSessionsResponse) Reset() {
|
|
*x = GetSessionsResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSessionsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSessionsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetSessionsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 GetSessionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetSessionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *GetSessionsResponse) GetSessions() []*SessionItem {
|
|
if x != nil {
|
|
return x.Sessions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TerminateSessionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
TargetHash string `protobuf:"bytes,2,opt,name=target_hash,json=targetHash,proto3" json:"target_hash,omitempty"` // Хэш сессии, которую нужно убить
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TerminateSessionRequest) Reset() {
|
|
*x = TerminateSessionRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TerminateSessionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TerminateSessionRequest) ProtoMessage() {}
|
|
|
|
func (x *TerminateSessionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 TerminateSessionRequest.ProtoReflect.Descriptor instead.
|
|
func (*TerminateSessionRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *TerminateSessionRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TerminateSessionRequest) GetTargetHash() string {
|
|
if x != nil {
|
|
return x.TargetHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TerminateSessionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TerminateSessionResponse) Reset() {
|
|
*x = TerminateSessionResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TerminateSessionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TerminateSessionResponse) ProtoMessage() {}
|
|
|
|
func (x *TerminateSessionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_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 TerminateSessionResponse.ProtoReflect.Descriptor instead.
|
|
func (*TerminateSessionResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *TerminateSessionResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *TerminateSessionResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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_auth_proto_msgTypes[15]
|
|
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_auth_proto_msgTypes[15]
|
|
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_auth_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
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_auth_proto_msgTypes[16]
|
|
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_auth_proto_msgTypes[16]
|
|
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_auth_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
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_auth_proto_msgTypes[17]
|
|
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_auth_proto_msgTypes[17]
|
|
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_auth_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
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_auth_proto_msgTypes[18]
|
|
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_auth_proto_msgTypes[18]
|
|
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_auth_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
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 SystemCreateAccountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
PasswordHash string `protobuf:"bytes,2,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"` // Хеш пароля генерирует Admin Service и передает сюда
|
|
IsLdap bool `protobuf:"varint,3,opt,name=is_ldap,json=isLdap,proto3" json:"is_ldap,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemCreateAccountRequest) Reset() {
|
|
*x = SystemCreateAccountRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemCreateAccountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemCreateAccountRequest) ProtoMessage() {}
|
|
|
|
func (x *SystemCreateAccountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[19]
|
|
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 SystemCreateAccountRequest.ProtoReflect.Descriptor instead.
|
|
func (*SystemCreateAccountRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *SystemCreateAccountRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SystemCreateAccountRequest) GetPasswordHash() string {
|
|
if x != nil {
|
|
return x.PasswordHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SystemCreateAccountRequest) GetIsLdap() bool {
|
|
if x != nil {
|
|
return x.IsLdap
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SystemCreateAccountResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemCreateAccountResponse) Reset() {
|
|
*x = SystemCreateAccountResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemCreateAccountResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemCreateAccountResponse) ProtoMessage() {}
|
|
|
|
func (x *SystemCreateAccountResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[20]
|
|
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 SystemCreateAccountResponse.ProtoReflect.Descriptor instead.
|
|
func (*SystemCreateAccountResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *SystemCreateAccountResponse) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SystemChangeStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 'ACTIVE', 'BLOCKED', 'DELETED'
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemChangeStatusRequest) Reset() {
|
|
*x = SystemChangeStatusRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemChangeStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemChangeStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *SystemChangeStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[21]
|
|
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 SystemChangeStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*SystemChangeStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *SystemChangeStatusRequest) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SystemChangeStatusRequest) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SystemChangeStatusResponse 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 *SystemChangeStatusResponse) Reset() {
|
|
*x = SystemChangeStatusResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemChangeStatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemChangeStatusResponse) ProtoMessage() {}
|
|
|
|
func (x *SystemChangeStatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[22]
|
|
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 SystemChangeStatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*SystemChangeStatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *SystemChangeStatusResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SystemUpdatePasswordRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
NewPasswordHash string `protobuf:"bytes,2,opt,name=new_password_hash,json=newPasswordHash,proto3" json:"new_password_hash,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemUpdatePasswordRequest) Reset() {
|
|
*x = SystemUpdatePasswordRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemUpdatePasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemUpdatePasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *SystemUpdatePasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[23]
|
|
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 SystemUpdatePasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*SystemUpdatePasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *SystemUpdatePasswordRequest) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SystemUpdatePasswordRequest) GetNewPasswordHash() string {
|
|
if x != nil {
|
|
return x.NewPasswordHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SystemUpdatePasswordResponse 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 *SystemUpdatePasswordResponse) Reset() {
|
|
*x = SystemUpdatePasswordResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemUpdatePasswordResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemUpdatePasswordResponse) ProtoMessage() {}
|
|
|
|
func (x *SystemUpdatePasswordResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[24]
|
|
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 SystemUpdatePasswordResponse.ProtoReflect.Descriptor instead.
|
|
func (*SystemUpdatePasswordResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *SystemUpdatePasswordResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SystemUpdatePinRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
PinHash *string `protobuf:"bytes,2,opt,name=pin_hash,json=pinHash,proto3,oneof" json:"pin_hash,omitempty"` // null если удаляем
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemUpdatePinRequest) Reset() {
|
|
*x = SystemUpdatePinRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemUpdatePinRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemUpdatePinRequest) ProtoMessage() {}
|
|
|
|
func (x *SystemUpdatePinRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[25]
|
|
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 SystemUpdatePinRequest.ProtoReflect.Descriptor instead.
|
|
func (*SystemUpdatePinRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *SystemUpdatePinRequest) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SystemUpdatePinRequest) GetPinHash() string {
|
|
if x != nil && x.PinHash != nil {
|
|
return *x.PinHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SystemUpdatePinResponse 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 *SystemUpdatePinResponse) Reset() {
|
|
*x = SystemUpdatePinResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemUpdatePinResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemUpdatePinResponse) ProtoMessage() {}
|
|
|
|
func (x *SystemUpdatePinResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[26]
|
|
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 SystemUpdatePinResponse.ProtoReflect.Descriptor instead.
|
|
func (*SystemUpdatePinResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *SystemUpdatePinResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SystemBlockIpRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
|
|
AdminId string `protobuf:"bytes,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
|
|
Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemBlockIpRequest) Reset() {
|
|
*x = SystemBlockIpRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemBlockIpRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemBlockIpRequest) ProtoMessage() {}
|
|
|
|
func (x *SystemBlockIpRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[27]
|
|
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 SystemBlockIpRequest.ProtoReflect.Descriptor instead.
|
|
func (*SystemBlockIpRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *SystemBlockIpRequest) GetIpAddress() string {
|
|
if x != nil {
|
|
return x.IpAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SystemBlockIpRequest) GetAdminId() string {
|
|
if x != nil {
|
|
return x.AdminId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SystemBlockIpRequest) GetReason() string {
|
|
if x != nil && x.Reason != nil {
|
|
return *x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SystemBlockIpResponse 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 *SystemBlockIpResponse) Reset() {
|
|
*x = SystemBlockIpResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemBlockIpResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemBlockIpResponse) ProtoMessage() {}
|
|
|
|
func (x *SystemBlockIpResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[28]
|
|
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 SystemBlockIpResponse.ProtoReflect.Descriptor instead.
|
|
func (*SystemBlockIpResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *SystemBlockIpResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SystemUnblockIpRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemUnblockIpRequest) Reset() {
|
|
*x = SystemUnblockIpRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemUnblockIpRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemUnblockIpRequest) ProtoMessage() {}
|
|
|
|
func (x *SystemUnblockIpRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[29]
|
|
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 SystemUnblockIpRequest.ProtoReflect.Descriptor instead.
|
|
func (*SystemUnblockIpRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *SystemUnblockIpRequest) GetIpAddress() string {
|
|
if x != nil {
|
|
return x.IpAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SystemUnblockIpResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemUnblockIpResponse) Reset() {
|
|
*x = SystemUnblockIpResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemUnblockIpResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemUnblockIpResponse) ProtoMessage() {}
|
|
|
|
func (x *SystemUnblockIpResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[30]
|
|
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 SystemUnblockIpResponse.ProtoReflect.Descriptor instead.
|
|
func (*SystemUnblockIpResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *SystemUnblockIpResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SystemGetAllAccountsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemGetAllAccountsRequest) Reset() {
|
|
*x = SystemGetAllAccountsRequest{}
|
|
mi := &file_sso_auth_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemGetAllAccountsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemGetAllAccountsRequest) ProtoMessage() {}
|
|
|
|
func (x *SystemGetAllAccountsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[31]
|
|
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 SystemGetAllAccountsRequest.ProtoReflect.Descriptor instead.
|
|
func (*SystemGetAllAccountsRequest) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *SystemGetAllAccountsRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SystemGetAllAccountsRequest) GetOffset() int32 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AccountBasicItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AccountBasicItem) Reset() {
|
|
*x = AccountBasicItem{}
|
|
mi := &file_sso_auth_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AccountBasicItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AccountBasicItem) ProtoMessage() {}
|
|
|
|
func (x *AccountBasicItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[32]
|
|
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 AccountBasicItem.ProtoReflect.Descriptor instead.
|
|
func (*AccountBasicItem) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *AccountBasicItem) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccountBasicItem) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccountBasicItem) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SystemGetAllAccountsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Accounts []*AccountBasicItem `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
|
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemGetAllAccountsResponse) Reset() {
|
|
*x = SystemGetAllAccountsResponse{}
|
|
mi := &file_sso_auth_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemGetAllAccountsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemGetAllAccountsResponse) ProtoMessage() {}
|
|
|
|
func (x *SystemGetAllAccountsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sso_auth_proto_msgTypes[33]
|
|
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 SystemGetAllAccountsResponse.ProtoReflect.Descriptor instead.
|
|
func (*SystemGetAllAccountsResponse) Descriptor() ([]byte, []int) {
|
|
return file_sso_auth_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *SystemGetAllAccountsResponse) GetAccounts() []*AccountBasicItem {
|
|
if x != nil {
|
|
return x.Accounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SystemGetAllAccountsResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_sso_auth_proto protoreflect.FileDescriptor
|
|
|
|
const file_sso_auth_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0esso/auth.proto\x12\aauth.v1\"\x82\x01\n" +
|
|
"\fLoginRequest\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x1b\n" +
|
|
"\tdevice_id\x18\x03 \x01(\tR\bdeviceId\x12\x1d\n" +
|
|
"\n" +
|
|
"public_key\x18\x04 \x01(\tR\tpublicKey\"\x9a\x02\n" +
|
|
"\rLoginResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
|
|
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\x12\x16\n" +
|
|
"\x06status\x18\x03 \x01(\tR\x06status\x12\x18\n" +
|
|
"\aneed2fa\x18\x04 \x01(\bR\aneed2fa\x12\"\n" +
|
|
"\n" +
|
|
"temp_token\x18\x05 \x01(\tH\x00R\ttempToken\x88\x01\x01\x12\x1d\n" +
|
|
"\amessage\x18\x06 \x01(\tH\x01R\amessage\x88\x01\x01\x12\"\n" +
|
|
"\n" +
|
|
"error_code\x18\a \x01(\tH\x02R\terrorCode\x88\x01\x01B\r\n" +
|
|
"\v_temp_tokenB\n" +
|
|
"\n" +
|
|
"\b_messageB\r\n" +
|
|
"\v_error_code\"5\n" +
|
|
"\x0eRefreshRequest\x12#\n" +
|
|
"\rrefresh_token\x18\x01 \x01(\tR\frefreshToken\"Y\n" +
|
|
"\x0fRefreshResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
|
|
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\"G\n" +
|
|
"\rLogoutRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x02 \x01(\tR\tsessionId\"D\n" +
|
|
"\x0eLogoutResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"*\n" +
|
|
"\x12VerifyTokenRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"\xa7\x03\n" +
|
|
"\x13VerifyTokenResponse\x12\x19\n" +
|
|
"\bis_valid\x18\x01 \x01(\bR\aisValid\x12(\n" +
|
|
"\rerror_message\x18\x02 \x01(\tH\x00R\ferrorMessage\x88\x01\x01\x12\x13\n" +
|
|
"\x02id\x18\x03 \x01(\tH\x01R\x02id\x88\x01\x01\x12\x1f\n" +
|
|
"\busername\x18\x04 \x01(\tH\x02R\busername\x88\x01\x01\x12\"\n" +
|
|
"\n" +
|
|
"role_level\x18\x05 \x01(\x05H\x03R\troleLevel\x88\x01\x01\x12 \n" +
|
|
"\vpermissions\x18\x06 \x03(\tR\vpermissions\x12\"\n" +
|
|
"\n" +
|
|
"session_id\x18\a \x01(\tH\x04R\tsessionId\x88\x01\x01\x12&\n" +
|
|
"\frequires_pin\x18\b \x01(\bH\x05R\vrequiresPin\x88\x01\x01\x12 \n" +
|
|
"\tdevice_id\x18\t \x01(\tH\x06R\bdeviceId\x88\x01\x01B\x10\n" +
|
|
"\x0e_error_messageB\x05\n" +
|
|
"\x03_idB\v\n" +
|
|
"\t_usernameB\r\n" +
|
|
"\v_role_levelB\r\n" +
|
|
"\v_session_idB\x0f\n" +
|
|
"\r_requires_pinB\f\n" +
|
|
"\n" +
|
|
"_device_id\";\n" +
|
|
"\x1aGetAccountRoleLevelRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x01 \x01(\tR\taccountId\"R\n" +
|
|
"\x1bGetAccountRoleLevelResponse\x12\x14\n" +
|
|
"\x05found\x18\x01 \x01(\bR\x05found\x12\x1d\n" +
|
|
"\n" +
|
|
"role_level\x18\x02 \x01(\x05R\troleLevel\"Z\n" +
|
|
"\x11GetSessionRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12,\n" +
|
|
"\x12current_session_id\x18\x02 \x01(\tR\x10currentSessionId\"\xbc\x01\n" +
|
|
"\vSessionItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
|
|
"\n" +
|
|
"ip_address\x18\x02 \x01(\tR\tipAddress\x12\x1d\n" +
|
|
"\n" +
|
|
"user_agent\x18\x03 \x01(\tR\tuserAgent\x12#\n" +
|
|
"\rlast_activity\x18\x04 \x01(\x03R\flastActivity\x12\x1d\n" +
|
|
"\n" +
|
|
"is_current\x18\x05 \x01(\bR\tisCurrent\x12\x1b\n" +
|
|
"\tdevice_id\x18\x06 \x01(\tR\bdeviceId\"G\n" +
|
|
"\x13GetSessionsResponse\x120\n" +
|
|
"\bsessions\x18\x01 \x03(\v2\x14.auth.v1.SessionItemR\bsessions\"S\n" +
|
|
"\x17TerminateSessionRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1f\n" +
|
|
"\vtarget_hash\x18\x02 \x01(\tR\n" +
|
|
"targetHash\"N\n" +
|
|
"\x18TerminateSessionResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"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\"v\n" +
|
|
"\x1aSystemCreateAccountRequest\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\x12#\n" +
|
|
"\rpassword_hash\x18\x02 \x01(\tR\fpasswordHash\x12\x17\n" +
|
|
"\ais_ldap\x18\x03 \x01(\bR\x06isLdap\"<\n" +
|
|
"\x1bSystemCreateAccountResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x01 \x01(\tR\taccountId\"R\n" +
|
|
"\x19SystemChangeStatusRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x01 \x01(\tR\taccountId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\tR\x06status\"6\n" +
|
|
"\x1aSystemChangeStatusResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"h\n" +
|
|
"\x1bSystemUpdatePasswordRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x01 \x01(\tR\taccountId\x12*\n" +
|
|
"\x11new_password_hash\x18\x02 \x01(\tR\x0fnewPasswordHash\"8\n" +
|
|
"\x1cSystemUpdatePasswordResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"d\n" +
|
|
"\x16SystemUpdatePinRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x01 \x01(\tR\taccountId\x12\x1e\n" +
|
|
"\bpin_hash\x18\x02 \x01(\tH\x00R\apinHash\x88\x01\x01B\v\n" +
|
|
"\t_pin_hash\"3\n" +
|
|
"\x17SystemUpdatePinResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"x\n" +
|
|
"\x14SystemBlockIpRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"ip_address\x18\x01 \x01(\tR\tipAddress\x12\x19\n" +
|
|
"\badmin_id\x18\x02 \x01(\tR\aadminId\x12\x1b\n" +
|
|
"\x06reason\x18\x03 \x01(\tH\x00R\x06reason\x88\x01\x01B\t\n" +
|
|
"\a_reason\"1\n" +
|
|
"\x15SystemBlockIpResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"7\n" +
|
|
"\x16SystemUnblockIpRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"ip_address\x18\x01 \x01(\tR\tipAddress\"3\n" +
|
|
"\x17SystemUnblockIpResponse\x12\x18\n" +
|
|
"\asuccess\x18\x02 \x01(\bR\asuccess\"K\n" +
|
|
"\x1bSystemGetAllAccountsRequest\x12\x14\n" +
|
|
"\x05limit\x18\x01 \x01(\x05R\x05limit\x12\x16\n" +
|
|
"\x06offset\x18\x02 \x01(\x05R\x06offset\"V\n" +
|
|
"\x10AccountBasicItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" +
|
|
"\busername\x18\x02 \x01(\tR\busername\x12\x16\n" +
|
|
"\x06status\x18\x03 \x01(\tR\x06status\"k\n" +
|
|
"\x1cSystemGetAllAccountsResponse\x125\n" +
|
|
"\baccounts\x18\x01 \x03(\v2\x19.auth.v1.AccountBasicItemR\baccounts\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x05R\x05total2\x8b\v\n" +
|
|
"\vAuthService\x126\n" +
|
|
"\x05Login\x12\x15.auth.v1.LoginRequest\x1a\x16.auth.v1.LoginResponse\x12<\n" +
|
|
"\aRefresh\x12\x17.auth.v1.RefreshRequest\x1a\x18.auth.v1.RefreshResponse\x12H\n" +
|
|
"\vVerifyToken\x12\x1b.auth.v1.VerifyTokenRequest\x1a\x1c.auth.v1.VerifyTokenResponse\x12`\n" +
|
|
"\x13GetAccountRoleLevel\x12#.auth.v1.GetAccountRoleLevelRequest\x1a$.auth.v1.GetAccountRoleLevelResponse\x129\n" +
|
|
"\x06Logout\x12\x16.auth.v1.LogoutRequest\x1a\x17.auth.v1.LogoutResponse\x12>\n" +
|
|
"\vLogoutOther\x12\x16.auth.v1.LogoutRequest\x1a\x17.auth.v1.LogoutResponse\x12G\n" +
|
|
"\vGetSessions\x12\x1a.auth.v1.GetSessionRequest\x1a\x1c.auth.v1.GetSessionsResponse\x12W\n" +
|
|
"\x10TerminateSession\x12 .auth.v1.TerminateSessionRequest\x1a!.auth.v1.TerminateSessionResponse\x12Z\n" +
|
|
"\x11GenerateOauthCode\x12!.auth.v1.GenerateOauthCodeRequest\x1a\".auth.v1.GenerateOauthCodeResponse\x12Z\n" +
|
|
"\x11ExchangeOauthCode\x12!.auth.v1.ExchangeOauthCodeRequest\x1a\".auth.v1.ExchangeOauthCodeResponse\x12`\n" +
|
|
"\x13SystemCreateAccount\x12#.auth.v1.SystemCreateAccountRequest\x1a$.auth.v1.SystemCreateAccountResponse\x12]\n" +
|
|
"\x12SystemChangeStatus\x12\".auth.v1.SystemChangeStatusRequest\x1a#.auth.v1.SystemChangeStatusResponse\x12c\n" +
|
|
"\x14SystemUpdatePassword\x12$.auth.v1.SystemUpdatePasswordRequest\x1a%.auth.v1.SystemUpdatePasswordResponse\x12T\n" +
|
|
"\x0fSystemUpdatePin\x12\x1f.auth.v1.SystemUpdatePinRequest\x1a .auth.v1.SystemUpdatePinResponse\x12N\n" +
|
|
"\rSystemBlockIp\x12\x1d.auth.v1.SystemBlockIpRequest\x1a\x1e.auth.v1.SystemBlockIpResponse\x12T\n" +
|
|
"\x0fSystemUnblockIp\x12\x1f.auth.v1.SystemUnblockIpRequest\x1a .auth.v1.SystemUnblockIpResponse\x12c\n" +
|
|
"\x14SystemGetAllAccounts\x12$.auth.v1.SystemGetAllAccountsRequest\x1a%.auth.v1.SystemGetAllAccountsResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
|
|
|
|
var (
|
|
file_sso_auth_proto_rawDescOnce sync.Once
|
|
file_sso_auth_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_sso_auth_proto_rawDescGZIP() []byte {
|
|
file_sso_auth_proto_rawDescOnce.Do(func() {
|
|
file_sso_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_sso_auth_proto_rawDesc), len(file_sso_auth_proto_rawDesc)))
|
|
})
|
|
return file_sso_auth_proto_rawDescData
|
|
}
|
|
|
|
var file_sso_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 34)
|
|
var file_sso_auth_proto_goTypes = []any{
|
|
(*LoginRequest)(nil), // 0: auth.v1.LoginRequest
|
|
(*LoginResponse)(nil), // 1: auth.v1.LoginResponse
|
|
(*RefreshRequest)(nil), // 2: auth.v1.RefreshRequest
|
|
(*RefreshResponse)(nil), // 3: auth.v1.RefreshResponse
|
|
(*LogoutRequest)(nil), // 4: auth.v1.LogoutRequest
|
|
(*LogoutResponse)(nil), // 5: auth.v1.LogoutResponse
|
|
(*VerifyTokenRequest)(nil), // 6: auth.v1.VerifyTokenRequest
|
|
(*VerifyTokenResponse)(nil), // 7: auth.v1.VerifyTokenResponse
|
|
(*GetAccountRoleLevelRequest)(nil), // 8: auth.v1.GetAccountRoleLevelRequest
|
|
(*GetAccountRoleLevelResponse)(nil), // 9: auth.v1.GetAccountRoleLevelResponse
|
|
(*GetSessionRequest)(nil), // 10: auth.v1.GetSessionRequest
|
|
(*SessionItem)(nil), // 11: auth.v1.SessionItem
|
|
(*GetSessionsResponse)(nil), // 12: auth.v1.GetSessionsResponse
|
|
(*TerminateSessionRequest)(nil), // 13: auth.v1.TerminateSessionRequest
|
|
(*TerminateSessionResponse)(nil), // 14: auth.v1.TerminateSessionResponse
|
|
(*GenerateOauthCodeRequest)(nil), // 15: auth.v1.GenerateOauthCodeRequest
|
|
(*GenerateOauthCodeResponse)(nil), // 16: auth.v1.GenerateOauthCodeResponse
|
|
(*ExchangeOauthCodeRequest)(nil), // 17: auth.v1.ExchangeOauthCodeRequest
|
|
(*ExchangeOauthCodeResponse)(nil), // 18: auth.v1.ExchangeOauthCodeResponse
|
|
(*SystemCreateAccountRequest)(nil), // 19: auth.v1.SystemCreateAccountRequest
|
|
(*SystemCreateAccountResponse)(nil), // 20: auth.v1.SystemCreateAccountResponse
|
|
(*SystemChangeStatusRequest)(nil), // 21: auth.v1.SystemChangeStatusRequest
|
|
(*SystemChangeStatusResponse)(nil), // 22: auth.v1.SystemChangeStatusResponse
|
|
(*SystemUpdatePasswordRequest)(nil), // 23: auth.v1.SystemUpdatePasswordRequest
|
|
(*SystemUpdatePasswordResponse)(nil), // 24: auth.v1.SystemUpdatePasswordResponse
|
|
(*SystemUpdatePinRequest)(nil), // 25: auth.v1.SystemUpdatePinRequest
|
|
(*SystemUpdatePinResponse)(nil), // 26: auth.v1.SystemUpdatePinResponse
|
|
(*SystemBlockIpRequest)(nil), // 27: auth.v1.SystemBlockIpRequest
|
|
(*SystemBlockIpResponse)(nil), // 28: auth.v1.SystemBlockIpResponse
|
|
(*SystemUnblockIpRequest)(nil), // 29: auth.v1.SystemUnblockIpRequest
|
|
(*SystemUnblockIpResponse)(nil), // 30: auth.v1.SystemUnblockIpResponse
|
|
(*SystemGetAllAccountsRequest)(nil), // 31: auth.v1.SystemGetAllAccountsRequest
|
|
(*AccountBasicItem)(nil), // 32: auth.v1.AccountBasicItem
|
|
(*SystemGetAllAccountsResponse)(nil), // 33: auth.v1.SystemGetAllAccountsResponse
|
|
}
|
|
var file_sso_auth_proto_depIdxs = []int32{
|
|
11, // 0: auth.v1.GetSessionsResponse.sessions:type_name -> auth.v1.SessionItem
|
|
32, // 1: auth.v1.SystemGetAllAccountsResponse.accounts:type_name -> auth.v1.AccountBasicItem
|
|
0, // 2: auth.v1.AuthService.Login:input_type -> auth.v1.LoginRequest
|
|
2, // 3: auth.v1.AuthService.Refresh:input_type -> auth.v1.RefreshRequest
|
|
6, // 4: auth.v1.AuthService.VerifyToken:input_type -> auth.v1.VerifyTokenRequest
|
|
8, // 5: auth.v1.AuthService.GetAccountRoleLevel:input_type -> auth.v1.GetAccountRoleLevelRequest
|
|
4, // 6: auth.v1.AuthService.Logout:input_type -> auth.v1.LogoutRequest
|
|
4, // 7: auth.v1.AuthService.LogoutOther:input_type -> auth.v1.LogoutRequest
|
|
10, // 8: auth.v1.AuthService.GetSessions:input_type -> auth.v1.GetSessionRequest
|
|
13, // 9: auth.v1.AuthService.TerminateSession:input_type -> auth.v1.TerminateSessionRequest
|
|
15, // 10: auth.v1.AuthService.GenerateOauthCode:input_type -> auth.v1.GenerateOauthCodeRequest
|
|
17, // 11: auth.v1.AuthService.ExchangeOauthCode:input_type -> auth.v1.ExchangeOauthCodeRequest
|
|
19, // 12: auth.v1.AuthService.SystemCreateAccount:input_type -> auth.v1.SystemCreateAccountRequest
|
|
21, // 13: auth.v1.AuthService.SystemChangeStatus:input_type -> auth.v1.SystemChangeStatusRequest
|
|
23, // 14: auth.v1.AuthService.SystemUpdatePassword:input_type -> auth.v1.SystemUpdatePasswordRequest
|
|
25, // 15: auth.v1.AuthService.SystemUpdatePin:input_type -> auth.v1.SystemUpdatePinRequest
|
|
27, // 16: auth.v1.AuthService.SystemBlockIp:input_type -> auth.v1.SystemBlockIpRequest
|
|
29, // 17: auth.v1.AuthService.SystemUnblockIp:input_type -> auth.v1.SystemUnblockIpRequest
|
|
31, // 18: auth.v1.AuthService.SystemGetAllAccounts:input_type -> auth.v1.SystemGetAllAccountsRequest
|
|
1, // 19: auth.v1.AuthService.Login:output_type -> auth.v1.LoginResponse
|
|
3, // 20: auth.v1.AuthService.Refresh:output_type -> auth.v1.RefreshResponse
|
|
7, // 21: auth.v1.AuthService.VerifyToken:output_type -> auth.v1.VerifyTokenResponse
|
|
9, // 22: auth.v1.AuthService.GetAccountRoleLevel:output_type -> auth.v1.GetAccountRoleLevelResponse
|
|
5, // 23: auth.v1.AuthService.Logout:output_type -> auth.v1.LogoutResponse
|
|
5, // 24: auth.v1.AuthService.LogoutOther:output_type -> auth.v1.LogoutResponse
|
|
12, // 25: auth.v1.AuthService.GetSessions:output_type -> auth.v1.GetSessionsResponse
|
|
14, // 26: auth.v1.AuthService.TerminateSession:output_type -> auth.v1.TerminateSessionResponse
|
|
16, // 27: auth.v1.AuthService.GenerateOauthCode:output_type -> auth.v1.GenerateOauthCodeResponse
|
|
18, // 28: auth.v1.AuthService.ExchangeOauthCode:output_type -> auth.v1.ExchangeOauthCodeResponse
|
|
20, // 29: auth.v1.AuthService.SystemCreateAccount:output_type -> auth.v1.SystemCreateAccountResponse
|
|
22, // 30: auth.v1.AuthService.SystemChangeStatus:output_type -> auth.v1.SystemChangeStatusResponse
|
|
24, // 31: auth.v1.AuthService.SystemUpdatePassword:output_type -> auth.v1.SystemUpdatePasswordResponse
|
|
26, // 32: auth.v1.AuthService.SystemUpdatePin:output_type -> auth.v1.SystemUpdatePinResponse
|
|
28, // 33: auth.v1.AuthService.SystemBlockIp:output_type -> auth.v1.SystemBlockIpResponse
|
|
30, // 34: auth.v1.AuthService.SystemUnblockIp:output_type -> auth.v1.SystemUnblockIpResponse
|
|
33, // 35: auth.v1.AuthService.SystemGetAllAccounts:output_type -> auth.v1.SystemGetAllAccountsResponse
|
|
19, // [19:36] is the sub-list for method output_type
|
|
2, // [2:19] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_sso_auth_proto_init() }
|
|
func file_sso_auth_proto_init() {
|
|
if File_sso_auth_proto != nil {
|
|
return
|
|
}
|
|
file_sso_auth_proto_msgTypes[1].OneofWrappers = []any{}
|
|
file_sso_auth_proto_msgTypes[7].OneofWrappers = []any{}
|
|
file_sso_auth_proto_msgTypes[25].OneofWrappers = []any{}
|
|
file_sso_auth_proto_msgTypes[27].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_sso_auth_proto_rawDesc), len(file_sso_auth_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 34,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_sso_auth_proto_goTypes,
|
|
DependencyIndexes: file_sso_auth_proto_depIdxs,
|
|
MessageInfos: file_sso_auth_proto_msgTypes,
|
|
}.Build()
|
|
File_sso_auth_proto = out.File
|
|
file_sso_auth_proto_goTypes = nil
|
|
file_sso_auth_proto_depIdxs = nil
|
|
}
|