idp.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.3
  4. // protoc (unknown)
  5. // source: store/idp.proto
  6. package store
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type IdentityProvider_Type int32
  20. const (
  21. IdentityProvider_TYPE_UNSPECIFIED IdentityProvider_Type = 0
  22. IdentityProvider_OAUTH2 IdentityProvider_Type = 1
  23. )
  24. // Enum value maps for IdentityProvider_Type.
  25. var (
  26. IdentityProvider_Type_name = map[int32]string{
  27. 0: "TYPE_UNSPECIFIED",
  28. 1: "OAUTH2",
  29. }
  30. IdentityProvider_Type_value = map[string]int32{
  31. "TYPE_UNSPECIFIED": 0,
  32. "OAUTH2": 1,
  33. }
  34. )
  35. func (x IdentityProvider_Type) Enum() *IdentityProvider_Type {
  36. p := new(IdentityProvider_Type)
  37. *p = x
  38. return p
  39. }
  40. func (x IdentityProvider_Type) String() string {
  41. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  42. }
  43. func (IdentityProvider_Type) Descriptor() protoreflect.EnumDescriptor {
  44. return file_store_idp_proto_enumTypes[0].Descriptor()
  45. }
  46. func (IdentityProvider_Type) Type() protoreflect.EnumType {
  47. return &file_store_idp_proto_enumTypes[0]
  48. }
  49. func (x IdentityProvider_Type) Number() protoreflect.EnumNumber {
  50. return protoreflect.EnumNumber(x)
  51. }
  52. // Deprecated: Use IdentityProvider_Type.Descriptor instead.
  53. func (IdentityProvider_Type) EnumDescriptor() ([]byte, []int) {
  54. return file_store_idp_proto_rawDescGZIP(), []int{0, 0}
  55. }
  56. type IdentityProvider struct {
  57. state protoimpl.MessageState `protogen:"open.v1"`
  58. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  59. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  60. Type IdentityProvider_Type `protobuf:"varint,3,opt,name=type,proto3,enum=memos.store.IdentityProvider_Type" json:"type,omitempty"`
  61. IdentifierFilter string `protobuf:"bytes,4,opt,name=identifier_filter,json=identifierFilter,proto3" json:"identifier_filter,omitempty"`
  62. Config *IdentityProviderConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
  63. unknownFields protoimpl.UnknownFields
  64. sizeCache protoimpl.SizeCache
  65. }
  66. func (x *IdentityProvider) Reset() {
  67. *x = IdentityProvider{}
  68. mi := &file_store_idp_proto_msgTypes[0]
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. ms.StoreMessageInfo(mi)
  71. }
  72. func (x *IdentityProvider) String() string {
  73. return protoimpl.X.MessageStringOf(x)
  74. }
  75. func (*IdentityProvider) ProtoMessage() {}
  76. func (x *IdentityProvider) ProtoReflect() protoreflect.Message {
  77. mi := &file_store_idp_proto_msgTypes[0]
  78. if x != nil {
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. if ms.LoadMessageInfo() == nil {
  81. ms.StoreMessageInfo(mi)
  82. }
  83. return ms
  84. }
  85. return mi.MessageOf(x)
  86. }
  87. // Deprecated: Use IdentityProvider.ProtoReflect.Descriptor instead.
  88. func (*IdentityProvider) Descriptor() ([]byte, []int) {
  89. return file_store_idp_proto_rawDescGZIP(), []int{0}
  90. }
  91. func (x *IdentityProvider) GetId() int32 {
  92. if x != nil {
  93. return x.Id
  94. }
  95. return 0
  96. }
  97. func (x *IdentityProvider) GetName() string {
  98. if x != nil {
  99. return x.Name
  100. }
  101. return ""
  102. }
  103. func (x *IdentityProvider) GetType() IdentityProvider_Type {
  104. if x != nil {
  105. return x.Type
  106. }
  107. return IdentityProvider_TYPE_UNSPECIFIED
  108. }
  109. func (x *IdentityProvider) GetIdentifierFilter() string {
  110. if x != nil {
  111. return x.IdentifierFilter
  112. }
  113. return ""
  114. }
  115. func (x *IdentityProvider) GetConfig() *IdentityProviderConfig {
  116. if x != nil {
  117. return x.Config
  118. }
  119. return nil
  120. }
  121. type IdentityProviderConfig struct {
  122. state protoimpl.MessageState `protogen:"open.v1"`
  123. // Types that are valid to be assigned to Config:
  124. //
  125. // *IdentityProviderConfig_Oauth2Config
  126. Config isIdentityProviderConfig_Config `protobuf_oneof:"config"`
  127. unknownFields protoimpl.UnknownFields
  128. sizeCache protoimpl.SizeCache
  129. }
  130. func (x *IdentityProviderConfig) Reset() {
  131. *x = IdentityProviderConfig{}
  132. mi := &file_store_idp_proto_msgTypes[1]
  133. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  134. ms.StoreMessageInfo(mi)
  135. }
  136. func (x *IdentityProviderConfig) String() string {
  137. return protoimpl.X.MessageStringOf(x)
  138. }
  139. func (*IdentityProviderConfig) ProtoMessage() {}
  140. func (x *IdentityProviderConfig) ProtoReflect() protoreflect.Message {
  141. mi := &file_store_idp_proto_msgTypes[1]
  142. if x != nil {
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. if ms.LoadMessageInfo() == nil {
  145. ms.StoreMessageInfo(mi)
  146. }
  147. return ms
  148. }
  149. return mi.MessageOf(x)
  150. }
  151. // Deprecated: Use IdentityProviderConfig.ProtoReflect.Descriptor instead.
  152. func (*IdentityProviderConfig) Descriptor() ([]byte, []int) {
  153. return file_store_idp_proto_rawDescGZIP(), []int{1}
  154. }
  155. func (x *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config {
  156. if x != nil {
  157. return x.Config
  158. }
  159. return nil
  160. }
  161. func (x *IdentityProviderConfig) GetOauth2Config() *OAuth2Config {
  162. if x != nil {
  163. if x, ok := x.Config.(*IdentityProviderConfig_Oauth2Config); ok {
  164. return x.Oauth2Config
  165. }
  166. }
  167. return nil
  168. }
  169. type isIdentityProviderConfig_Config interface {
  170. isIdentityProviderConfig_Config()
  171. }
  172. type IdentityProviderConfig_Oauth2Config struct {
  173. Oauth2Config *OAuth2Config `protobuf:"bytes,1,opt,name=oauth2_config,json=oauth2Config,proto3,oneof"`
  174. }
  175. func (*IdentityProviderConfig_Oauth2Config) isIdentityProviderConfig_Config() {}
  176. type FieldMapping struct {
  177. state protoimpl.MessageState `protogen:"open.v1"`
  178. Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
  179. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  180. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
  181. unknownFields protoimpl.UnknownFields
  182. sizeCache protoimpl.SizeCache
  183. }
  184. func (x *FieldMapping) Reset() {
  185. *x = FieldMapping{}
  186. mi := &file_store_idp_proto_msgTypes[2]
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. ms.StoreMessageInfo(mi)
  189. }
  190. func (x *FieldMapping) String() string {
  191. return protoimpl.X.MessageStringOf(x)
  192. }
  193. func (*FieldMapping) ProtoMessage() {}
  194. func (x *FieldMapping) ProtoReflect() protoreflect.Message {
  195. mi := &file_store_idp_proto_msgTypes[2]
  196. if x != nil {
  197. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  198. if ms.LoadMessageInfo() == nil {
  199. ms.StoreMessageInfo(mi)
  200. }
  201. return ms
  202. }
  203. return mi.MessageOf(x)
  204. }
  205. // Deprecated: Use FieldMapping.ProtoReflect.Descriptor instead.
  206. func (*FieldMapping) Descriptor() ([]byte, []int) {
  207. return file_store_idp_proto_rawDescGZIP(), []int{2}
  208. }
  209. func (x *FieldMapping) GetIdentifier() string {
  210. if x != nil {
  211. return x.Identifier
  212. }
  213. return ""
  214. }
  215. func (x *FieldMapping) GetDisplayName() string {
  216. if x != nil {
  217. return x.DisplayName
  218. }
  219. return ""
  220. }
  221. func (x *FieldMapping) GetEmail() string {
  222. if x != nil {
  223. return x.Email
  224. }
  225. return ""
  226. }
  227. type OAuth2Config struct {
  228. state protoimpl.MessageState `protogen:"open.v1"`
  229. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
  230. ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
  231. AuthUrl string `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
  232. TokenUrl string `protobuf:"bytes,4,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
  233. UserInfoUrl string `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`
  234. Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
  235. FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`
  236. unknownFields protoimpl.UnknownFields
  237. sizeCache protoimpl.SizeCache
  238. }
  239. func (x *OAuth2Config) Reset() {
  240. *x = OAuth2Config{}
  241. mi := &file_store_idp_proto_msgTypes[3]
  242. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  243. ms.StoreMessageInfo(mi)
  244. }
  245. func (x *OAuth2Config) String() string {
  246. return protoimpl.X.MessageStringOf(x)
  247. }
  248. func (*OAuth2Config) ProtoMessage() {}
  249. func (x *OAuth2Config) ProtoReflect() protoreflect.Message {
  250. mi := &file_store_idp_proto_msgTypes[3]
  251. if x != nil {
  252. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  253. if ms.LoadMessageInfo() == nil {
  254. ms.StoreMessageInfo(mi)
  255. }
  256. return ms
  257. }
  258. return mi.MessageOf(x)
  259. }
  260. // Deprecated: Use OAuth2Config.ProtoReflect.Descriptor instead.
  261. func (*OAuth2Config) Descriptor() ([]byte, []int) {
  262. return file_store_idp_proto_rawDescGZIP(), []int{3}
  263. }
  264. func (x *OAuth2Config) GetClientId() string {
  265. if x != nil {
  266. return x.ClientId
  267. }
  268. return ""
  269. }
  270. func (x *OAuth2Config) GetClientSecret() string {
  271. if x != nil {
  272. return x.ClientSecret
  273. }
  274. return ""
  275. }
  276. func (x *OAuth2Config) GetAuthUrl() string {
  277. if x != nil {
  278. return x.AuthUrl
  279. }
  280. return ""
  281. }
  282. func (x *OAuth2Config) GetTokenUrl() string {
  283. if x != nil {
  284. return x.TokenUrl
  285. }
  286. return ""
  287. }
  288. func (x *OAuth2Config) GetUserInfoUrl() string {
  289. if x != nil {
  290. return x.UserInfoUrl
  291. }
  292. return ""
  293. }
  294. func (x *OAuth2Config) GetScopes() []string {
  295. if x != nil {
  296. return x.Scopes
  297. }
  298. return nil
  299. }
  300. func (x *OAuth2Config) GetFieldMapping() *FieldMapping {
  301. if x != nil {
  302. return x.FieldMapping
  303. }
  304. return nil
  305. }
  306. var File_store_idp_proto protoreflect.FileDescriptor
  307. var file_store_idp_proto_rawDesc = []byte{
  308. 0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  309. 0x6f, 0x12, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x82,
  310. 0x02, 0x0a, 0x10, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,
  311. 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
  312. 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  313. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  314. 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74,
  315. 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,
  316. 0x69, 0x64, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
  317. 0x2b, 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x66, 0x69,
  318. 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x69, 0x64, 0x65, 0x6e,
  319. 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x06,
  320. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d,
  321. 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74,
  322. 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  323. 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x28, 0x0a, 0x04, 0x54, 0x79, 0x70,
  324. 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
  325. 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x41, 0x55, 0x54, 0x48,
  326. 0x32, 0x10, 0x01, 0x22, 0x64, 0x0a, 0x16, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50,
  327. 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x40, 0x0a,
  328. 0x0d, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,
  329. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f,
  330. 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48,
  331. 0x00, 0x52, 0x0c, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
  332. 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x67, 0x0a, 0x0c, 0x46, 0x69, 0x65,
  333. 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65,
  334. 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69,
  335. 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73,
  336. 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  337. 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
  338. 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61,
  339. 0x69, 0x6c, 0x22, 0x84, 0x02, 0x0a, 0x0c, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6f, 0x6e,
  340. 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,
  341. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64,
  342. 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65,
  343. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53,
  344. 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, 0x72,
  345. 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x55, 0x72, 0x6c,
  346. 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20,
  347. 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x22, 0x0a,
  348. 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05,
  349. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x55, 0x72,
  350. 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
  351. 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x66, 0x69, 0x65,
  352. 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
  353. 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x46,
  354. 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65,
  355. 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x42, 0x93, 0x01, 0x0a, 0x0f, 0x63, 0x6f,
  356. 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x08, 0x49,
  357. 0x64, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75,
  358. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x6d,
  359. 0x65, 0x6d, 0x6f, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73,
  360. 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x53, 0x58, 0xaa, 0x02, 0x0b, 0x4d, 0x65, 0x6d,
  361. 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x73,
  362. 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x53,
  363. 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
  364. 0xea, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x62,
  365. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  366. }
  367. var (
  368. file_store_idp_proto_rawDescOnce sync.Once
  369. file_store_idp_proto_rawDescData = file_store_idp_proto_rawDesc
  370. )
  371. func file_store_idp_proto_rawDescGZIP() []byte {
  372. file_store_idp_proto_rawDescOnce.Do(func() {
  373. file_store_idp_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_idp_proto_rawDescData)
  374. })
  375. return file_store_idp_proto_rawDescData
  376. }
  377. var file_store_idp_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  378. var file_store_idp_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  379. var file_store_idp_proto_goTypes = []any{
  380. (IdentityProvider_Type)(0), // 0: memos.store.IdentityProvider.Type
  381. (*IdentityProvider)(nil), // 1: memos.store.IdentityProvider
  382. (*IdentityProviderConfig)(nil), // 2: memos.store.IdentityProviderConfig
  383. (*FieldMapping)(nil), // 3: memos.store.FieldMapping
  384. (*OAuth2Config)(nil), // 4: memos.store.OAuth2Config
  385. }
  386. var file_store_idp_proto_depIdxs = []int32{
  387. 0, // 0: memos.store.IdentityProvider.type:type_name -> memos.store.IdentityProvider.Type
  388. 2, // 1: memos.store.IdentityProvider.config:type_name -> memos.store.IdentityProviderConfig
  389. 4, // 2: memos.store.IdentityProviderConfig.oauth2_config:type_name -> memos.store.OAuth2Config
  390. 3, // 3: memos.store.OAuth2Config.field_mapping:type_name -> memos.store.FieldMapping
  391. 4, // [4:4] is the sub-list for method output_type
  392. 4, // [4:4] is the sub-list for method input_type
  393. 4, // [4:4] is the sub-list for extension type_name
  394. 4, // [4:4] is the sub-list for extension extendee
  395. 0, // [0:4] is the sub-list for field type_name
  396. }
  397. func init() { file_store_idp_proto_init() }
  398. func file_store_idp_proto_init() {
  399. if File_store_idp_proto != nil {
  400. return
  401. }
  402. file_store_idp_proto_msgTypes[1].OneofWrappers = []any{
  403. (*IdentityProviderConfig_Oauth2Config)(nil),
  404. }
  405. type x struct{}
  406. out := protoimpl.TypeBuilder{
  407. File: protoimpl.DescBuilder{
  408. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  409. RawDescriptor: file_store_idp_proto_rawDesc,
  410. NumEnums: 1,
  411. NumMessages: 4,
  412. NumExtensions: 0,
  413. NumServices: 0,
  414. },
  415. GoTypes: file_store_idp_proto_goTypes,
  416. DependencyIndexes: file_store_idp_proto_depIdxs,
  417. EnumInfos: file_store_idp_proto_enumTypes,
  418. MessageInfos: file_store_idp_proto_msgTypes,
  419. }.Build()
  420. File_store_idp_proto = out.File
  421. file_store_idp_proto_rawDesc = nil
  422. file_store_idp_proto_goTypes = nil
  423. file_store_idp_proto_depIdxs = nil
  424. }