auth.pb.go 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.17.3
  5. // source: auth/proto/auth.proto
  6. package proto
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type CheckUserAndPassRequest struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  28. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  29. Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
  30. Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"`
  31. User []byte `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` // SFTPGo user JSON serialized
  32. }
  33. func (x *CheckUserAndPassRequest) Reset() {
  34. *x = CheckUserAndPassRequest{}
  35. if protoimpl.UnsafeEnabled {
  36. mi := &file_auth_proto_auth_proto_msgTypes[0]
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. ms.StoreMessageInfo(mi)
  39. }
  40. }
  41. func (x *CheckUserAndPassRequest) String() string {
  42. return protoimpl.X.MessageStringOf(x)
  43. }
  44. func (*CheckUserAndPassRequest) ProtoMessage() {}
  45. func (x *CheckUserAndPassRequest) ProtoReflect() protoreflect.Message {
  46. mi := &file_auth_proto_auth_proto_msgTypes[0]
  47. if protoimpl.UnsafeEnabled && x != nil {
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. if ms.LoadMessageInfo() == nil {
  50. ms.StoreMessageInfo(mi)
  51. }
  52. return ms
  53. }
  54. return mi.MessageOf(x)
  55. }
  56. // Deprecated: Use CheckUserAndPassRequest.ProtoReflect.Descriptor instead.
  57. func (*CheckUserAndPassRequest) Descriptor() ([]byte, []int) {
  58. return file_auth_proto_auth_proto_rawDescGZIP(), []int{0}
  59. }
  60. func (x *CheckUserAndPassRequest) GetUsername() string {
  61. if x != nil {
  62. return x.Username
  63. }
  64. return ""
  65. }
  66. func (x *CheckUserAndPassRequest) GetPassword() string {
  67. if x != nil {
  68. return x.Password
  69. }
  70. return ""
  71. }
  72. func (x *CheckUserAndPassRequest) GetIp() string {
  73. if x != nil {
  74. return x.Ip
  75. }
  76. return ""
  77. }
  78. func (x *CheckUserAndPassRequest) GetProtocol() string {
  79. if x != nil {
  80. return x.Protocol
  81. }
  82. return ""
  83. }
  84. func (x *CheckUserAndPassRequest) GetUser() []byte {
  85. if x != nil {
  86. return x.User
  87. }
  88. return nil
  89. }
  90. type CheckUserAndTLSCertRequest struct {
  91. state protoimpl.MessageState
  92. sizeCache protoimpl.SizeCache
  93. unknownFields protoimpl.UnknownFields
  94. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  95. TlsCert string `protobuf:"bytes,2,opt,name=tlsCert,proto3" json:"tlsCert,omitempty"` // tls certificate pem encoded
  96. Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
  97. Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"`
  98. User []byte `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` // SFTPGo user JSON serialized
  99. }
  100. func (x *CheckUserAndTLSCertRequest) Reset() {
  101. *x = CheckUserAndTLSCertRequest{}
  102. if protoimpl.UnsafeEnabled {
  103. mi := &file_auth_proto_auth_proto_msgTypes[1]
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. ms.StoreMessageInfo(mi)
  106. }
  107. }
  108. func (x *CheckUserAndTLSCertRequest) String() string {
  109. return protoimpl.X.MessageStringOf(x)
  110. }
  111. func (*CheckUserAndTLSCertRequest) ProtoMessage() {}
  112. func (x *CheckUserAndTLSCertRequest) ProtoReflect() protoreflect.Message {
  113. mi := &file_auth_proto_auth_proto_msgTypes[1]
  114. if protoimpl.UnsafeEnabled && x != nil {
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. if ms.LoadMessageInfo() == nil {
  117. ms.StoreMessageInfo(mi)
  118. }
  119. return ms
  120. }
  121. return mi.MessageOf(x)
  122. }
  123. // Deprecated: Use CheckUserAndTLSCertRequest.ProtoReflect.Descriptor instead.
  124. func (*CheckUserAndTLSCertRequest) Descriptor() ([]byte, []int) {
  125. return file_auth_proto_auth_proto_rawDescGZIP(), []int{1}
  126. }
  127. func (x *CheckUserAndTLSCertRequest) GetUsername() string {
  128. if x != nil {
  129. return x.Username
  130. }
  131. return ""
  132. }
  133. func (x *CheckUserAndTLSCertRequest) GetTlsCert() string {
  134. if x != nil {
  135. return x.TlsCert
  136. }
  137. return ""
  138. }
  139. func (x *CheckUserAndTLSCertRequest) GetIp() string {
  140. if x != nil {
  141. return x.Ip
  142. }
  143. return ""
  144. }
  145. func (x *CheckUserAndTLSCertRequest) GetProtocol() string {
  146. if x != nil {
  147. return x.Protocol
  148. }
  149. return ""
  150. }
  151. func (x *CheckUserAndTLSCertRequest) GetUser() []byte {
  152. if x != nil {
  153. return x.User
  154. }
  155. return nil
  156. }
  157. type CheckUserAndPublicKeyRequest struct {
  158. state protoimpl.MessageState
  159. sizeCache protoimpl.SizeCache
  160. unknownFields protoimpl.UnknownFields
  161. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  162. PubKey string `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
  163. Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
  164. Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"`
  165. User []byte `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` // SFTPGo user JSON serialized
  166. }
  167. func (x *CheckUserAndPublicKeyRequest) Reset() {
  168. *x = CheckUserAndPublicKeyRequest{}
  169. if protoimpl.UnsafeEnabled {
  170. mi := &file_auth_proto_auth_proto_msgTypes[2]
  171. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  172. ms.StoreMessageInfo(mi)
  173. }
  174. }
  175. func (x *CheckUserAndPublicKeyRequest) String() string {
  176. return protoimpl.X.MessageStringOf(x)
  177. }
  178. func (*CheckUserAndPublicKeyRequest) ProtoMessage() {}
  179. func (x *CheckUserAndPublicKeyRequest) ProtoReflect() protoreflect.Message {
  180. mi := &file_auth_proto_auth_proto_msgTypes[2]
  181. if protoimpl.UnsafeEnabled && x != nil {
  182. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  183. if ms.LoadMessageInfo() == nil {
  184. ms.StoreMessageInfo(mi)
  185. }
  186. return ms
  187. }
  188. return mi.MessageOf(x)
  189. }
  190. // Deprecated: Use CheckUserAndPublicKeyRequest.ProtoReflect.Descriptor instead.
  191. func (*CheckUserAndPublicKeyRequest) Descriptor() ([]byte, []int) {
  192. return file_auth_proto_auth_proto_rawDescGZIP(), []int{2}
  193. }
  194. func (x *CheckUserAndPublicKeyRequest) GetUsername() string {
  195. if x != nil {
  196. return x.Username
  197. }
  198. return ""
  199. }
  200. func (x *CheckUserAndPublicKeyRequest) GetPubKey() string {
  201. if x != nil {
  202. return x.PubKey
  203. }
  204. return ""
  205. }
  206. func (x *CheckUserAndPublicKeyRequest) GetIp() string {
  207. if x != nil {
  208. return x.Ip
  209. }
  210. return ""
  211. }
  212. func (x *CheckUserAndPublicKeyRequest) GetProtocol() string {
  213. if x != nil {
  214. return x.Protocol
  215. }
  216. return ""
  217. }
  218. func (x *CheckUserAndPublicKeyRequest) GetUser() []byte {
  219. if x != nil {
  220. return x.User
  221. }
  222. return nil
  223. }
  224. type CheckUserAndKeyboardInteractiveRequest struct {
  225. state protoimpl.MessageState
  226. sizeCache protoimpl.SizeCache
  227. unknownFields protoimpl.UnknownFields
  228. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  229. Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
  230. Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
  231. User []byte `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` // SFTPGo user JSON serialized
  232. }
  233. func (x *CheckUserAndKeyboardInteractiveRequest) Reset() {
  234. *x = CheckUserAndKeyboardInteractiveRequest{}
  235. if protoimpl.UnsafeEnabled {
  236. mi := &file_auth_proto_auth_proto_msgTypes[3]
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. ms.StoreMessageInfo(mi)
  239. }
  240. }
  241. func (x *CheckUserAndKeyboardInteractiveRequest) String() string {
  242. return protoimpl.X.MessageStringOf(x)
  243. }
  244. func (*CheckUserAndKeyboardInteractiveRequest) ProtoMessage() {}
  245. func (x *CheckUserAndKeyboardInteractiveRequest) ProtoReflect() protoreflect.Message {
  246. mi := &file_auth_proto_auth_proto_msgTypes[3]
  247. if protoimpl.UnsafeEnabled && x != nil {
  248. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  249. if ms.LoadMessageInfo() == nil {
  250. ms.StoreMessageInfo(mi)
  251. }
  252. return ms
  253. }
  254. return mi.MessageOf(x)
  255. }
  256. // Deprecated: Use CheckUserAndKeyboardInteractiveRequest.ProtoReflect.Descriptor instead.
  257. func (*CheckUserAndKeyboardInteractiveRequest) Descriptor() ([]byte, []int) {
  258. return file_auth_proto_auth_proto_rawDescGZIP(), []int{3}
  259. }
  260. func (x *CheckUserAndKeyboardInteractiveRequest) GetUsername() string {
  261. if x != nil {
  262. return x.Username
  263. }
  264. return ""
  265. }
  266. func (x *CheckUserAndKeyboardInteractiveRequest) GetIp() string {
  267. if x != nil {
  268. return x.Ip
  269. }
  270. return ""
  271. }
  272. func (x *CheckUserAndKeyboardInteractiveRequest) GetProtocol() string {
  273. if x != nil {
  274. return x.Protocol
  275. }
  276. return ""
  277. }
  278. func (x *CheckUserAndKeyboardInteractiveRequest) GetUser() []byte {
  279. if x != nil {
  280. return x.User
  281. }
  282. return nil
  283. }
  284. type KeyboardAuthRequest struct {
  285. state protoimpl.MessageState
  286. sizeCache protoimpl.SizeCache
  287. unknownFields protoimpl.UnknownFields
  288. RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
  289. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  290. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
  291. Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
  292. Answers []string `protobuf:"bytes,5,rep,name=answers,proto3" json:"answers,omitempty"`
  293. Questions []string `protobuf:"bytes,6,rep,name=questions,proto3" json:"questions,omitempty"`
  294. Step int32 `protobuf:"varint,7,opt,name=step,proto3" json:"step,omitempty"`
  295. }
  296. func (x *KeyboardAuthRequest) Reset() {
  297. *x = KeyboardAuthRequest{}
  298. if protoimpl.UnsafeEnabled {
  299. mi := &file_auth_proto_auth_proto_msgTypes[4]
  300. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  301. ms.StoreMessageInfo(mi)
  302. }
  303. }
  304. func (x *KeyboardAuthRequest) String() string {
  305. return protoimpl.X.MessageStringOf(x)
  306. }
  307. func (*KeyboardAuthRequest) ProtoMessage() {}
  308. func (x *KeyboardAuthRequest) ProtoReflect() protoreflect.Message {
  309. mi := &file_auth_proto_auth_proto_msgTypes[4]
  310. if protoimpl.UnsafeEnabled && x != nil {
  311. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  312. if ms.LoadMessageInfo() == nil {
  313. ms.StoreMessageInfo(mi)
  314. }
  315. return ms
  316. }
  317. return mi.MessageOf(x)
  318. }
  319. // Deprecated: Use KeyboardAuthRequest.ProtoReflect.Descriptor instead.
  320. func (*KeyboardAuthRequest) Descriptor() ([]byte, []int) {
  321. return file_auth_proto_auth_proto_rawDescGZIP(), []int{4}
  322. }
  323. func (x *KeyboardAuthRequest) GetRequestID() string {
  324. if x != nil {
  325. return x.RequestID
  326. }
  327. return ""
  328. }
  329. func (x *KeyboardAuthRequest) GetUsername() string {
  330. if x != nil {
  331. return x.Username
  332. }
  333. return ""
  334. }
  335. func (x *KeyboardAuthRequest) GetPassword() string {
  336. if x != nil {
  337. return x.Password
  338. }
  339. return ""
  340. }
  341. func (x *KeyboardAuthRequest) GetIp() string {
  342. if x != nil {
  343. return x.Ip
  344. }
  345. return ""
  346. }
  347. func (x *KeyboardAuthRequest) GetAnswers() []string {
  348. if x != nil {
  349. return x.Answers
  350. }
  351. return nil
  352. }
  353. func (x *KeyboardAuthRequest) GetQuestions() []string {
  354. if x != nil {
  355. return x.Questions
  356. }
  357. return nil
  358. }
  359. func (x *KeyboardAuthRequest) GetStep() int32 {
  360. if x != nil {
  361. return x.Step
  362. }
  363. return 0
  364. }
  365. type KeyboardAuthResponse struct {
  366. state protoimpl.MessageState
  367. sizeCache protoimpl.SizeCache
  368. unknownFields protoimpl.UnknownFields
  369. Instructions string `protobuf:"bytes,1,opt,name=instructions,proto3" json:"instructions,omitempty"`
  370. Questions []string `protobuf:"bytes,2,rep,name=questions,proto3" json:"questions,omitempty"`
  371. Echos []bool `protobuf:"varint,3,rep,packed,name=echos,proto3" json:"echos,omitempty"`
  372. AuthResult int32 `protobuf:"varint,4,opt,name=auth_result,json=authResult,proto3" json:"auth_result,omitempty"`
  373. CheckPassword int32 `protobuf:"varint,5,opt,name=check_password,json=checkPassword,proto3" json:"check_password,omitempty"`
  374. }
  375. func (x *KeyboardAuthResponse) Reset() {
  376. *x = KeyboardAuthResponse{}
  377. if protoimpl.UnsafeEnabled {
  378. mi := &file_auth_proto_auth_proto_msgTypes[5]
  379. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  380. ms.StoreMessageInfo(mi)
  381. }
  382. }
  383. func (x *KeyboardAuthResponse) String() string {
  384. return protoimpl.X.MessageStringOf(x)
  385. }
  386. func (*KeyboardAuthResponse) ProtoMessage() {}
  387. func (x *KeyboardAuthResponse) ProtoReflect() protoreflect.Message {
  388. mi := &file_auth_proto_auth_proto_msgTypes[5]
  389. if protoimpl.UnsafeEnabled && x != nil {
  390. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  391. if ms.LoadMessageInfo() == nil {
  392. ms.StoreMessageInfo(mi)
  393. }
  394. return ms
  395. }
  396. return mi.MessageOf(x)
  397. }
  398. // Deprecated: Use KeyboardAuthResponse.ProtoReflect.Descriptor instead.
  399. func (*KeyboardAuthResponse) Descriptor() ([]byte, []int) {
  400. return file_auth_proto_auth_proto_rawDescGZIP(), []int{5}
  401. }
  402. func (x *KeyboardAuthResponse) GetInstructions() string {
  403. if x != nil {
  404. return x.Instructions
  405. }
  406. return ""
  407. }
  408. func (x *KeyboardAuthResponse) GetQuestions() []string {
  409. if x != nil {
  410. return x.Questions
  411. }
  412. return nil
  413. }
  414. func (x *KeyboardAuthResponse) GetEchos() []bool {
  415. if x != nil {
  416. return x.Echos
  417. }
  418. return nil
  419. }
  420. func (x *KeyboardAuthResponse) GetAuthResult() int32 {
  421. if x != nil {
  422. return x.AuthResult
  423. }
  424. return 0
  425. }
  426. func (x *KeyboardAuthResponse) GetCheckPassword() int32 {
  427. if x != nil {
  428. return x.CheckPassword
  429. }
  430. return 0
  431. }
  432. type AuthResponse struct {
  433. state protoimpl.MessageState
  434. sizeCache protoimpl.SizeCache
  435. unknownFields protoimpl.UnknownFields
  436. User []byte `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // SFTPGo user JSON serialized
  437. }
  438. func (x *AuthResponse) Reset() {
  439. *x = AuthResponse{}
  440. if protoimpl.UnsafeEnabled {
  441. mi := &file_auth_proto_auth_proto_msgTypes[6]
  442. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  443. ms.StoreMessageInfo(mi)
  444. }
  445. }
  446. func (x *AuthResponse) String() string {
  447. return protoimpl.X.MessageStringOf(x)
  448. }
  449. func (*AuthResponse) ProtoMessage() {}
  450. func (x *AuthResponse) ProtoReflect() protoreflect.Message {
  451. mi := &file_auth_proto_auth_proto_msgTypes[6]
  452. if protoimpl.UnsafeEnabled && x != nil {
  453. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  454. if ms.LoadMessageInfo() == nil {
  455. ms.StoreMessageInfo(mi)
  456. }
  457. return ms
  458. }
  459. return mi.MessageOf(x)
  460. }
  461. // Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
  462. func (*AuthResponse) Descriptor() ([]byte, []int) {
  463. return file_auth_proto_auth_proto_rawDescGZIP(), []int{6}
  464. }
  465. func (x *AuthResponse) GetUser() []byte {
  466. if x != nil {
  467. return x.User
  468. }
  469. return nil
  470. }
  471. var File_auth_proto_auth_proto protoreflect.FileDescriptor
  472. var file_auth_proto_auth_proto_rawDesc = []byte{
  473. 0x0a, 0x15, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x75, 0x74,
  474. 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91,
  475. 0x01, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50,
  476. 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73,
  477. 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73,
  478. 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
  479. 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
  480. 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  481. 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04,
  482. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12,
  483. 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73,
  484. 0x65, 0x72, 0x22, 0x92, 0x01, 0x0a, 0x1a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72,
  485. 0x41, 0x6e, 0x64, 0x54, 0x4c, 0x53, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  486. 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
  487. 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a,
  488. 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  489. 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20,
  490. 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  491. 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  492. 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
  493. 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x92, 0x01, 0x0a, 0x1c, 0x43, 0x68, 0x65, 0x63,
  494. 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65,
  495. 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
  496. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
  497. 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02,
  498. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02,
  499. 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08,
  500. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  501. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
  502. 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x84, 0x01, 0x0a,
  503. 0x26, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x4b, 0x65, 0x79,
  504. 0x62, 0x6f, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65,
  505. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
  506. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
  507. 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  508. 0x02, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18,
  509. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12,
  510. 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75,
  511. 0x73, 0x65, 0x72, 0x22, 0xc7, 0x01, 0x0a, 0x13, 0x4b, 0x65, 0x79, 0x62, 0x6f, 0x61, 0x72, 0x64,
  512. 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72,
  513. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
  514. 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
  515. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
  516. 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
  517. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
  518. 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
  519. 0x70, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03,
  520. 0x28, 0x09, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x71,
  521. 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09,
  522. 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65,
  523. 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0xb6, 0x01,
  524. 0x0a, 0x14, 0x4b, 0x65, 0x79, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
  525. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75,
  526. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e,
  527. 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x71, 0x75,
  528. 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x71,
  529. 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x63, 0x68, 0x6f,
  530. 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x08, 0x52, 0x05, 0x65, 0x63, 0x68, 0x6f, 0x73, 0x12, 0x1f,
  531. 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20,
  532. 0x01, 0x28, 0x05, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12,
  533. 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
  534. 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x61,
  535. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x22, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
  536. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01,
  537. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0xac, 0x03, 0x0a, 0x04, 0x41,
  538. 0x75, 0x74, 0x68, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72,
  539. 0x41, 0x6e, 0x64, 0x50, 0x61, 0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  540. 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x61, 0x73, 0x73,
  541. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  542. 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13,
  543. 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x54, 0x4c, 0x53, 0x43,
  544. 0x65, 0x72, 0x74, 0x12, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x68, 0x65, 0x63,
  545. 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x54, 0x4c, 0x53, 0x43, 0x65, 0x72, 0x74, 0x52,
  546. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41,
  547. 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x43,
  548. 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69,
  549. 0x63, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x68, 0x65,
  550. 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b,
  551. 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  552. 0x6f, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65,
  553. 0x0a, 0x1f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x4b, 0x65,
  554. 0x79, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x76,
  555. 0x65, 0x12, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55,
  556. 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x49, 0x6e,
  557. 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  558. 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73,
  559. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x17, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79,
  560. 0x62, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  561. 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4b, 0x65, 0x79, 0x62, 0x6f, 0x61, 0x72,
  562. 0x64, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70,
  563. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4b, 0x65, 0x79, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x75, 0x74,
  564. 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x17, 0x5a, 0x15, 0x73, 0x64, 0x6b,
  565. 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f,
  566. 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  567. }
  568. var (
  569. file_auth_proto_auth_proto_rawDescOnce sync.Once
  570. file_auth_proto_auth_proto_rawDescData = file_auth_proto_auth_proto_rawDesc
  571. )
  572. func file_auth_proto_auth_proto_rawDescGZIP() []byte {
  573. file_auth_proto_auth_proto_rawDescOnce.Do(func() {
  574. file_auth_proto_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_auth_proto_rawDescData)
  575. })
  576. return file_auth_proto_auth_proto_rawDescData
  577. }
  578. var file_auth_proto_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  579. var file_auth_proto_auth_proto_goTypes = []interface{}{
  580. (*CheckUserAndPassRequest)(nil), // 0: proto.CheckUserAndPassRequest
  581. (*CheckUserAndTLSCertRequest)(nil), // 1: proto.CheckUserAndTLSCertRequest
  582. (*CheckUserAndPublicKeyRequest)(nil), // 2: proto.CheckUserAndPublicKeyRequest
  583. (*CheckUserAndKeyboardInteractiveRequest)(nil), // 3: proto.CheckUserAndKeyboardInteractiveRequest
  584. (*KeyboardAuthRequest)(nil), // 4: proto.KeyboardAuthRequest
  585. (*KeyboardAuthResponse)(nil), // 5: proto.KeyboardAuthResponse
  586. (*AuthResponse)(nil), // 6: proto.AuthResponse
  587. }
  588. var file_auth_proto_auth_proto_depIdxs = []int32{
  589. 0, // 0: proto.Auth.CheckUserAndPass:input_type -> proto.CheckUserAndPassRequest
  590. 1, // 1: proto.Auth.CheckUserAndTLSCert:input_type -> proto.CheckUserAndTLSCertRequest
  591. 2, // 2: proto.Auth.CheckUserAndPublicKey:input_type -> proto.CheckUserAndPublicKeyRequest
  592. 3, // 3: proto.Auth.CheckUserAndKeyboardInteractive:input_type -> proto.CheckUserAndKeyboardInteractiveRequest
  593. 4, // 4: proto.Auth.SendKeyboardAuthRequest:input_type -> proto.KeyboardAuthRequest
  594. 6, // 5: proto.Auth.CheckUserAndPass:output_type -> proto.AuthResponse
  595. 6, // 6: proto.Auth.CheckUserAndTLSCert:output_type -> proto.AuthResponse
  596. 6, // 7: proto.Auth.CheckUserAndPublicKey:output_type -> proto.AuthResponse
  597. 6, // 8: proto.Auth.CheckUserAndKeyboardInteractive:output_type -> proto.AuthResponse
  598. 5, // 9: proto.Auth.SendKeyboardAuthRequest:output_type -> proto.KeyboardAuthResponse
  599. 5, // [5:10] is the sub-list for method output_type
  600. 0, // [0:5] is the sub-list for method input_type
  601. 0, // [0:0] is the sub-list for extension type_name
  602. 0, // [0:0] is the sub-list for extension extendee
  603. 0, // [0:0] is the sub-list for field type_name
  604. }
  605. func init() { file_auth_proto_auth_proto_init() }
  606. func file_auth_proto_auth_proto_init() {
  607. if File_auth_proto_auth_proto != nil {
  608. return
  609. }
  610. if !protoimpl.UnsafeEnabled {
  611. file_auth_proto_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  612. switch v := v.(*CheckUserAndPassRequest); i {
  613. case 0:
  614. return &v.state
  615. case 1:
  616. return &v.sizeCache
  617. case 2:
  618. return &v.unknownFields
  619. default:
  620. return nil
  621. }
  622. }
  623. file_auth_proto_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  624. switch v := v.(*CheckUserAndTLSCertRequest); i {
  625. case 0:
  626. return &v.state
  627. case 1:
  628. return &v.sizeCache
  629. case 2:
  630. return &v.unknownFields
  631. default:
  632. return nil
  633. }
  634. }
  635. file_auth_proto_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  636. switch v := v.(*CheckUserAndPublicKeyRequest); i {
  637. case 0:
  638. return &v.state
  639. case 1:
  640. return &v.sizeCache
  641. case 2:
  642. return &v.unknownFields
  643. default:
  644. return nil
  645. }
  646. }
  647. file_auth_proto_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  648. switch v := v.(*CheckUserAndKeyboardInteractiveRequest); i {
  649. case 0:
  650. return &v.state
  651. case 1:
  652. return &v.sizeCache
  653. case 2:
  654. return &v.unknownFields
  655. default:
  656. return nil
  657. }
  658. }
  659. file_auth_proto_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  660. switch v := v.(*KeyboardAuthRequest); i {
  661. case 0:
  662. return &v.state
  663. case 1:
  664. return &v.sizeCache
  665. case 2:
  666. return &v.unknownFields
  667. default:
  668. return nil
  669. }
  670. }
  671. file_auth_proto_auth_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  672. switch v := v.(*KeyboardAuthResponse); i {
  673. case 0:
  674. return &v.state
  675. case 1:
  676. return &v.sizeCache
  677. case 2:
  678. return &v.unknownFields
  679. default:
  680. return nil
  681. }
  682. }
  683. file_auth_proto_auth_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  684. switch v := v.(*AuthResponse); i {
  685. case 0:
  686. return &v.state
  687. case 1:
  688. return &v.sizeCache
  689. case 2:
  690. return &v.unknownFields
  691. default:
  692. return nil
  693. }
  694. }
  695. }
  696. type x struct{}
  697. out := protoimpl.TypeBuilder{
  698. File: protoimpl.DescBuilder{
  699. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  700. RawDescriptor: file_auth_proto_auth_proto_rawDesc,
  701. NumEnums: 0,
  702. NumMessages: 7,
  703. NumExtensions: 0,
  704. NumServices: 1,
  705. },
  706. GoTypes: file_auth_proto_auth_proto_goTypes,
  707. DependencyIndexes: file_auth_proto_auth_proto_depIdxs,
  708. MessageInfos: file_auth_proto_auth_proto_msgTypes,
  709. }.Build()
  710. File_auth_proto_auth_proto = out.File
  711. file_auth_proto_auth_proto_rawDesc = nil
  712. file_auth_proto_auth_proto_goTypes = nil
  713. file_auth_proto_auth_proto_depIdxs = nil
  714. }
  715. // Reference imports to suppress errors if they are not otherwise used.
  716. var _ context.Context
  717. var _ grpc.ClientConnInterface
  718. // This is a compile-time assertion to ensure that this generated file
  719. // is compatible with the grpc package it is being compiled against.
  720. const _ = grpc.SupportPackageIsVersion6
  721. // AuthClient is the client API for Auth service.
  722. //
  723. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  724. type AuthClient interface {
  725. CheckUserAndPass(ctx context.Context, in *CheckUserAndPassRequest, opts ...grpc.CallOption) (*AuthResponse, error)
  726. CheckUserAndTLSCert(ctx context.Context, in *CheckUserAndTLSCertRequest, opts ...grpc.CallOption) (*AuthResponse, error)
  727. CheckUserAndPublicKey(ctx context.Context, in *CheckUserAndPublicKeyRequest, opts ...grpc.CallOption) (*AuthResponse, error)
  728. CheckUserAndKeyboardInteractive(ctx context.Context, in *CheckUserAndKeyboardInteractiveRequest, opts ...grpc.CallOption) (*AuthResponse, error)
  729. SendKeyboardAuthRequest(ctx context.Context, in *KeyboardAuthRequest, opts ...grpc.CallOption) (*KeyboardAuthResponse, error)
  730. }
  731. type authClient struct {
  732. cc grpc.ClientConnInterface
  733. }
  734. func NewAuthClient(cc grpc.ClientConnInterface) AuthClient {
  735. return &authClient{cc}
  736. }
  737. func (c *authClient) CheckUserAndPass(ctx context.Context, in *CheckUserAndPassRequest, opts ...grpc.CallOption) (*AuthResponse, error) {
  738. out := new(AuthResponse)
  739. err := c.cc.Invoke(ctx, "/proto.Auth/CheckUserAndPass", in, out, opts...)
  740. if err != nil {
  741. return nil, err
  742. }
  743. return out, nil
  744. }
  745. func (c *authClient) CheckUserAndTLSCert(ctx context.Context, in *CheckUserAndTLSCertRequest, opts ...grpc.CallOption) (*AuthResponse, error) {
  746. out := new(AuthResponse)
  747. err := c.cc.Invoke(ctx, "/proto.Auth/CheckUserAndTLSCert", in, out, opts...)
  748. if err != nil {
  749. return nil, err
  750. }
  751. return out, nil
  752. }
  753. func (c *authClient) CheckUserAndPublicKey(ctx context.Context, in *CheckUserAndPublicKeyRequest, opts ...grpc.CallOption) (*AuthResponse, error) {
  754. out := new(AuthResponse)
  755. err := c.cc.Invoke(ctx, "/proto.Auth/CheckUserAndPublicKey", in, out, opts...)
  756. if err != nil {
  757. return nil, err
  758. }
  759. return out, nil
  760. }
  761. func (c *authClient) CheckUserAndKeyboardInteractive(ctx context.Context, in *CheckUserAndKeyboardInteractiveRequest, opts ...grpc.CallOption) (*AuthResponse, error) {
  762. out := new(AuthResponse)
  763. err := c.cc.Invoke(ctx, "/proto.Auth/CheckUserAndKeyboardInteractive", in, out, opts...)
  764. if err != nil {
  765. return nil, err
  766. }
  767. return out, nil
  768. }
  769. func (c *authClient) SendKeyboardAuthRequest(ctx context.Context, in *KeyboardAuthRequest, opts ...grpc.CallOption) (*KeyboardAuthResponse, error) {
  770. out := new(KeyboardAuthResponse)
  771. err := c.cc.Invoke(ctx, "/proto.Auth/SendKeyboardAuthRequest", in, out, opts...)
  772. if err != nil {
  773. return nil, err
  774. }
  775. return out, nil
  776. }
  777. // AuthServer is the server API for Auth service.
  778. type AuthServer interface {
  779. CheckUserAndPass(context.Context, *CheckUserAndPassRequest) (*AuthResponse, error)
  780. CheckUserAndTLSCert(context.Context, *CheckUserAndTLSCertRequest) (*AuthResponse, error)
  781. CheckUserAndPublicKey(context.Context, *CheckUserAndPublicKeyRequest) (*AuthResponse, error)
  782. CheckUserAndKeyboardInteractive(context.Context, *CheckUserAndKeyboardInteractiveRequest) (*AuthResponse, error)
  783. SendKeyboardAuthRequest(context.Context, *KeyboardAuthRequest) (*KeyboardAuthResponse, error)
  784. }
  785. // UnimplementedAuthServer can be embedded to have forward compatible implementations.
  786. type UnimplementedAuthServer struct {
  787. }
  788. func (*UnimplementedAuthServer) CheckUserAndPass(context.Context, *CheckUserAndPassRequest) (*AuthResponse, error) {
  789. return nil, status.Errorf(codes.Unimplemented, "method CheckUserAndPass not implemented")
  790. }
  791. func (*UnimplementedAuthServer) CheckUserAndTLSCert(context.Context, *CheckUserAndTLSCertRequest) (*AuthResponse, error) {
  792. return nil, status.Errorf(codes.Unimplemented, "method CheckUserAndTLSCert not implemented")
  793. }
  794. func (*UnimplementedAuthServer) CheckUserAndPublicKey(context.Context, *CheckUserAndPublicKeyRequest) (*AuthResponse, error) {
  795. return nil, status.Errorf(codes.Unimplemented, "method CheckUserAndPublicKey not implemented")
  796. }
  797. func (*UnimplementedAuthServer) CheckUserAndKeyboardInteractive(context.Context, *CheckUserAndKeyboardInteractiveRequest) (*AuthResponse, error) {
  798. return nil, status.Errorf(codes.Unimplemented, "method CheckUserAndKeyboardInteractive not implemented")
  799. }
  800. func (*UnimplementedAuthServer) SendKeyboardAuthRequest(context.Context, *KeyboardAuthRequest) (*KeyboardAuthResponse, error) {
  801. return nil, status.Errorf(codes.Unimplemented, "method SendKeyboardAuthRequest not implemented")
  802. }
  803. func RegisterAuthServer(s *grpc.Server, srv AuthServer) {
  804. s.RegisterService(&_Auth_serviceDesc, srv)
  805. }
  806. func _Auth_CheckUserAndPass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  807. in := new(CheckUserAndPassRequest)
  808. if err := dec(in); err != nil {
  809. return nil, err
  810. }
  811. if interceptor == nil {
  812. return srv.(AuthServer).CheckUserAndPass(ctx, in)
  813. }
  814. info := &grpc.UnaryServerInfo{
  815. Server: srv,
  816. FullMethod: "/proto.Auth/CheckUserAndPass",
  817. }
  818. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  819. return srv.(AuthServer).CheckUserAndPass(ctx, req.(*CheckUserAndPassRequest))
  820. }
  821. return interceptor(ctx, in, info, handler)
  822. }
  823. func _Auth_CheckUserAndTLSCert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  824. in := new(CheckUserAndTLSCertRequest)
  825. if err := dec(in); err != nil {
  826. return nil, err
  827. }
  828. if interceptor == nil {
  829. return srv.(AuthServer).CheckUserAndTLSCert(ctx, in)
  830. }
  831. info := &grpc.UnaryServerInfo{
  832. Server: srv,
  833. FullMethod: "/proto.Auth/CheckUserAndTLSCert",
  834. }
  835. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  836. return srv.(AuthServer).CheckUserAndTLSCert(ctx, req.(*CheckUserAndTLSCertRequest))
  837. }
  838. return interceptor(ctx, in, info, handler)
  839. }
  840. func _Auth_CheckUserAndPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  841. in := new(CheckUserAndPublicKeyRequest)
  842. if err := dec(in); err != nil {
  843. return nil, err
  844. }
  845. if interceptor == nil {
  846. return srv.(AuthServer).CheckUserAndPublicKey(ctx, in)
  847. }
  848. info := &grpc.UnaryServerInfo{
  849. Server: srv,
  850. FullMethod: "/proto.Auth/CheckUserAndPublicKey",
  851. }
  852. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  853. return srv.(AuthServer).CheckUserAndPublicKey(ctx, req.(*CheckUserAndPublicKeyRequest))
  854. }
  855. return interceptor(ctx, in, info, handler)
  856. }
  857. func _Auth_CheckUserAndKeyboardInteractive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  858. in := new(CheckUserAndKeyboardInteractiveRequest)
  859. if err := dec(in); err != nil {
  860. return nil, err
  861. }
  862. if interceptor == nil {
  863. return srv.(AuthServer).CheckUserAndKeyboardInteractive(ctx, in)
  864. }
  865. info := &grpc.UnaryServerInfo{
  866. Server: srv,
  867. FullMethod: "/proto.Auth/CheckUserAndKeyboardInteractive",
  868. }
  869. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  870. return srv.(AuthServer).CheckUserAndKeyboardInteractive(ctx, req.(*CheckUserAndKeyboardInteractiveRequest))
  871. }
  872. return interceptor(ctx, in, info, handler)
  873. }
  874. func _Auth_SendKeyboardAuthRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  875. in := new(KeyboardAuthRequest)
  876. if err := dec(in); err != nil {
  877. return nil, err
  878. }
  879. if interceptor == nil {
  880. return srv.(AuthServer).SendKeyboardAuthRequest(ctx, in)
  881. }
  882. info := &grpc.UnaryServerInfo{
  883. Server: srv,
  884. FullMethod: "/proto.Auth/SendKeyboardAuthRequest",
  885. }
  886. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  887. return srv.(AuthServer).SendKeyboardAuthRequest(ctx, req.(*KeyboardAuthRequest))
  888. }
  889. return interceptor(ctx, in, info, handler)
  890. }
  891. var _Auth_serviceDesc = grpc.ServiceDesc{
  892. ServiceName: "proto.Auth",
  893. HandlerType: (*AuthServer)(nil),
  894. Methods: []grpc.MethodDesc{
  895. {
  896. MethodName: "CheckUserAndPass",
  897. Handler: _Auth_CheckUserAndPass_Handler,
  898. },
  899. {
  900. MethodName: "CheckUserAndTLSCert",
  901. Handler: _Auth_CheckUserAndTLSCert_Handler,
  902. },
  903. {
  904. MethodName: "CheckUserAndPublicKey",
  905. Handler: _Auth_CheckUserAndPublicKey_Handler,
  906. },
  907. {
  908. MethodName: "CheckUserAndKeyboardInteractive",
  909. Handler: _Auth_CheckUserAndKeyboardInteractive_Handler,
  910. },
  911. {
  912. MethodName: "SendKeyboardAuthRequest",
  913. Handler: _Auth_SendKeyboardAuthRequest_Handler,
  914. },
  915. },
  916. Streams: []grpc.StreamDesc{},
  917. Metadata: "auth/proto/auth.proto",
  918. }