OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2513 lines
75 KiB

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc v6.32.0
// source: api/v2/api.proto
package api
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)
)
// Client represents an OAuth2 client.
type Client struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
TrustedPeers []string `protobuf:"bytes,4,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
Public bool `protobuf:"varint,5,opt,name=public,proto3" json:"public,omitempty"`
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
LogoUrl string `protobuf:"bytes,7,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Client) Reset() {
*x = Client{}
mi := &file_api_v2_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Client) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Client) ProtoMessage() {}
func (x *Client) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 Client.ProtoReflect.Descriptor instead.
func (*Client) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{0}
}
func (x *Client) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Client) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
func (x *Client) GetRedirectUris() []string {
if x != nil {
return x.RedirectUris
}
return nil
}
func (x *Client) GetTrustedPeers() []string {
if x != nil {
return x.TrustedPeers
}
return nil
}
func (x *Client) GetPublic() bool {
if x != nil {
return x.Public
}
return false
}
func (x *Client) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Client) GetLogoUrl() string {
if x != nil {
return x.LogoUrl
}
return ""
}
// ClientInfo represents an OAuth2 client without sensitive information.
type ClientInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
RedirectUris []string `protobuf:"bytes,2,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
TrustedPeers []string `protobuf:"bytes,3,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
Public bool `protobuf:"varint,4,opt,name=public,proto3" json:"public,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
LogoUrl string `protobuf:"bytes,6,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ClientInfo) Reset() {
*x = ClientInfo{}
mi := &file_api_v2_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ClientInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientInfo) ProtoMessage() {}
func (x *ClientInfo) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 ClientInfo.ProtoReflect.Descriptor instead.
func (*ClientInfo) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{1}
}
func (x *ClientInfo) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ClientInfo) GetRedirectUris() []string {
if x != nil {
return x.RedirectUris
}
return nil
}
func (x *ClientInfo) GetTrustedPeers() []string {
if x != nil {
return x.TrustedPeers
}
return nil
}
func (x *ClientInfo) GetPublic() bool {
if x != nil {
return x.Public
}
return false
}
func (x *ClientInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ClientInfo) GetLogoUrl() string {
if x != nil {
return x.LogoUrl
}
return ""
}
// GetClientReq is a request to retrieve client details.
type GetClientReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The ID of the client.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetClientReq) Reset() {
*x = GetClientReq{}
mi := &file_api_v2_api_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetClientReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetClientReq) ProtoMessage() {}
func (x *GetClientReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 GetClientReq.ProtoReflect.Descriptor instead.
func (*GetClientReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{2}
}
func (x *GetClientReq) GetId() string {
if x != nil {
return x.Id
}
return ""
}
// GetClientResp returns the client details.
type GetClientResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetClientResp) Reset() {
*x = GetClientResp{}
mi := &file_api_v2_api_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetClientResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetClientResp) ProtoMessage() {}
func (x *GetClientResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 GetClientResp.ProtoReflect.Descriptor instead.
func (*GetClientResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{3}
}
func (x *GetClientResp) GetClient() *Client {
if x != nil {
return x.Client
}
return nil
}
// CreateClientReq is a request to make a client.
type CreateClientReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateClientReq) Reset() {
*x = CreateClientReq{}
mi := &file_api_v2_api_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateClientReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateClientReq) ProtoMessage() {}
func (x *CreateClientReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 CreateClientReq.ProtoReflect.Descriptor instead.
func (*CreateClientReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{4}
}
func (x *CreateClientReq) GetClient() *Client {
if x != nil {
return x.Client
}
return nil
}
// CreateClientResp returns the response from creating a client.
type CreateClientResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
Client *Client `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateClientResp) Reset() {
*x = CreateClientResp{}
mi := &file_api_v2_api_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateClientResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateClientResp) ProtoMessage() {}
func (x *CreateClientResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 CreateClientResp.ProtoReflect.Descriptor instead.
func (*CreateClientResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{5}
}
func (x *CreateClientResp) GetAlreadyExists() bool {
if x != nil {
return x.AlreadyExists
}
return false
}
func (x *CreateClientResp) GetClient() *Client {
if x != nil {
return x.Client
}
return nil
}
// DeleteClientReq is a request to delete a client.
type DeleteClientReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The ID of the client.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteClientReq) Reset() {
*x = DeleteClientReq{}
mi := &file_api_v2_api_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteClientReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteClientReq) ProtoMessage() {}
func (x *DeleteClientReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 DeleteClientReq.ProtoReflect.Descriptor instead.
func (*DeleteClientReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteClientReq) GetId() string {
if x != nil {
return x.Id
}
return ""
}
// DeleteClientResp determines if the client is deleted successfully.
type DeleteClientResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteClientResp) Reset() {
*x = DeleteClientResp{}
mi := &file_api_v2_api_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteClientResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteClientResp) ProtoMessage() {}
func (x *DeleteClientResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 DeleteClientResp.ProtoReflect.Descriptor instead.
func (*DeleteClientResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{7}
}
func (x *DeleteClientResp) GetNotFound() bool {
if x != nil {
return x.NotFound
}
return false
}
// UpdateClientReq is a request to update an existing client.
type UpdateClientReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
RedirectUris []string `protobuf:"bytes,2,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
TrustedPeers []string `protobuf:"bytes,3,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
LogoUrl string `protobuf:"bytes,5,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateClientReq) Reset() {
*x = UpdateClientReq{}
mi := &file_api_v2_api_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateClientReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateClientReq) ProtoMessage() {}
func (x *UpdateClientReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 UpdateClientReq.ProtoReflect.Descriptor instead.
func (*UpdateClientReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{8}
}
func (x *UpdateClientReq) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *UpdateClientReq) GetRedirectUris() []string {
if x != nil {
return x.RedirectUris
}
return nil
}
func (x *UpdateClientReq) GetTrustedPeers() []string {
if x != nil {
return x.TrustedPeers
}
return nil
}
func (x *UpdateClientReq) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UpdateClientReq) GetLogoUrl() string {
if x != nil {
return x.LogoUrl
}
return ""
}
// UpdateClientResp returns the response from updating a client.
type UpdateClientResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateClientResp) Reset() {
*x = UpdateClientResp{}
mi := &file_api_v2_api_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateClientResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateClientResp) ProtoMessage() {}
func (x *UpdateClientResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 UpdateClientResp.ProtoReflect.Descriptor instead.
func (*UpdateClientResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{9}
}
func (x *UpdateClientResp) GetNotFound() bool {
if x != nil {
return x.NotFound
}
return false
}
// ListClientReq is a request to enumerate clients.
type ListClientReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListClientReq) Reset() {
*x = ListClientReq{}
mi := &file_api_v2_api_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListClientReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListClientReq) ProtoMessage() {}
func (x *ListClientReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 ListClientReq.ProtoReflect.Descriptor instead.
func (*ListClientReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{10}
}
// ListClientResp returns a list of clients.
type ListClientResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Clients []*ClientInfo `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListClientResp) Reset() {
*x = ListClientResp{}
mi := &file_api_v2_api_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListClientResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListClientResp) ProtoMessage() {}
func (x *ListClientResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 ListClientResp.ProtoReflect.Descriptor instead.
func (*ListClientResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{11}
}
func (x *ListClientResp) GetClients() []*ClientInfo {
if x != nil {
return x.Clients
}
return nil
}
// Password is an email for password mapping managed by the storage.
type Password struct {
state protoimpl.MessageState `protogen:"open.v1"`
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
// Currently we do not accept plain text passwords. Could be an option in the future.
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Password) Reset() {
*x = Password{}
mi := &file_api_v2_api_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Password) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Password) ProtoMessage() {}
func (x *Password) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 Password.ProtoReflect.Descriptor instead.
func (*Password) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{12}
}
func (x *Password) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *Password) GetHash() []byte {
if x != nil {
return x.Hash
}
return nil
}
func (x *Password) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *Password) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
// CreatePasswordReq is a request to make a password.
type CreatePasswordReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Password *Password `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreatePasswordReq) Reset() {
*x = CreatePasswordReq{}
mi := &file_api_v2_api_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreatePasswordReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreatePasswordReq) ProtoMessage() {}
func (x *CreatePasswordReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 CreatePasswordReq.ProtoReflect.Descriptor instead.
func (*CreatePasswordReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{13}
}
func (x *CreatePasswordReq) GetPassword() *Password {
if x != nil {
return x.Password
}
return nil
}
// CreatePasswordResp returns the response from creating a password.
type CreatePasswordResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreatePasswordResp) Reset() {
*x = CreatePasswordResp{}
mi := &file_api_v2_api_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreatePasswordResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreatePasswordResp) ProtoMessage() {}
func (x *CreatePasswordResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 CreatePasswordResp.ProtoReflect.Descriptor instead.
func (*CreatePasswordResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{14}
}
func (x *CreatePasswordResp) GetAlreadyExists() bool {
if x != nil {
return x.AlreadyExists
}
return false
}
// UpdatePasswordReq is a request to modify an existing password.
type UpdatePasswordReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The email used to lookup the password. This field cannot be modified
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
NewHash []byte `protobuf:"bytes,2,opt,name=new_hash,json=newHash,proto3" json:"new_hash,omitempty"`
NewUsername string `protobuf:"bytes,3,opt,name=new_username,json=newUsername,proto3" json:"new_username,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdatePasswordReq) Reset() {
*x = UpdatePasswordReq{}
mi := &file_api_v2_api_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdatePasswordReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdatePasswordReq) ProtoMessage() {}
func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 UpdatePasswordReq.ProtoReflect.Descriptor instead.
func (*UpdatePasswordReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{15}
}
func (x *UpdatePasswordReq) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *UpdatePasswordReq) GetNewHash() []byte {
if x != nil {
return x.NewHash
}
return nil
}
func (x *UpdatePasswordReq) GetNewUsername() string {
if x != nil {
return x.NewUsername
}
return ""
}
// UpdatePasswordResp returns the response from modifying an existing password.
type UpdatePasswordResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdatePasswordResp) Reset() {
*x = UpdatePasswordResp{}
mi := &file_api_v2_api_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdatePasswordResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdatePasswordResp) ProtoMessage() {}
func (x *UpdatePasswordResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 UpdatePasswordResp.ProtoReflect.Descriptor instead.
func (*UpdatePasswordResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{16}
}
func (x *UpdatePasswordResp) GetNotFound() bool {
if x != nil {
return x.NotFound
}
return false
}
// DeletePasswordReq is a request to delete a password.
type DeletePasswordReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeletePasswordReq) Reset() {
*x = DeletePasswordReq{}
mi := &file_api_v2_api_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeletePasswordReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeletePasswordReq) ProtoMessage() {}
func (x *DeletePasswordReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 DeletePasswordReq.ProtoReflect.Descriptor instead.
func (*DeletePasswordReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{17}
}
func (x *DeletePasswordReq) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
// DeletePasswordResp returns the response from deleting a password.
type DeletePasswordResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeletePasswordResp) Reset() {
*x = DeletePasswordResp{}
mi := &file_api_v2_api_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeletePasswordResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeletePasswordResp) ProtoMessage() {}
func (x *DeletePasswordResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 DeletePasswordResp.ProtoReflect.Descriptor instead.
func (*DeletePasswordResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{18}
}
func (x *DeletePasswordResp) GetNotFound() bool {
if x != nil {
return x.NotFound
}
return false
}
// ListPasswordReq is a request to enumerate passwords.
type ListPasswordReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListPasswordReq) Reset() {
*x = ListPasswordReq{}
mi := &file_api_v2_api_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListPasswordReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPasswordReq) ProtoMessage() {}
func (x *ListPasswordReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 ListPasswordReq.ProtoReflect.Descriptor instead.
func (*ListPasswordReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{19}
}
// ListPasswordResp returns a list of passwords.
type ListPasswordResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Passwords []*Password `protobuf:"bytes,1,rep,name=passwords,proto3" json:"passwords,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListPasswordResp) Reset() {
*x = ListPasswordResp{}
mi := &file_api_v2_api_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListPasswordResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPasswordResp) ProtoMessage() {}
func (x *ListPasswordResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 ListPasswordResp.ProtoReflect.Descriptor instead.
func (*ListPasswordResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{20}
}
func (x *ListPasswordResp) GetPasswords() []*Password {
if x != nil {
return x.Passwords
}
return nil
}
// Connector is a strategy used by Dex for authenticating a user against another identity provider
type Connector struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Config []byte `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Connector) Reset() {
*x = Connector{}
mi := &file_api_v2_api_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Connector) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Connector) ProtoMessage() {}
func (x *Connector) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 Connector.ProtoReflect.Descriptor instead.
func (*Connector) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{21}
}
func (x *Connector) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Connector) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Connector) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Connector) GetConfig() []byte {
if x != nil {
return x.Config
}
return nil
}
// CreateConnectorReq is a request to make a connector.
type CreateConnectorReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Connector *Connector `protobuf:"bytes,1,opt,name=connector,proto3" json:"connector,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateConnectorReq) Reset() {
*x = CreateConnectorReq{}
mi := &file_api_v2_api_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateConnectorReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateConnectorReq) ProtoMessage() {}
func (x *CreateConnectorReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 CreateConnectorReq.ProtoReflect.Descriptor instead.
func (*CreateConnectorReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{22}
}
func (x *CreateConnectorReq) GetConnector() *Connector {
if x != nil {
return x.Connector
}
return nil
}
// CreateConnectorResp returns the response from creating a connector.
type CreateConnectorResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateConnectorResp) Reset() {
*x = CreateConnectorResp{}
mi := &file_api_v2_api_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateConnectorResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateConnectorResp) ProtoMessage() {}
func (x *CreateConnectorResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 CreateConnectorResp.ProtoReflect.Descriptor instead.
func (*CreateConnectorResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{23}
}
func (x *CreateConnectorResp) GetAlreadyExists() bool {
if x != nil {
return x.AlreadyExists
}
return false
}
// UpdateConnectorReq is a request to modify an existing connector.
type UpdateConnectorReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The id used to lookup the connector. This field cannot be modified
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
NewType string `protobuf:"bytes,2,opt,name=new_type,json=newType,proto3" json:"new_type,omitempty"`
NewName string `protobuf:"bytes,3,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
NewConfig []byte `protobuf:"bytes,4,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateConnectorReq) Reset() {
*x = UpdateConnectorReq{}
mi := &file_api_v2_api_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateConnectorReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateConnectorReq) ProtoMessage() {}
func (x *UpdateConnectorReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 UpdateConnectorReq.ProtoReflect.Descriptor instead.
func (*UpdateConnectorReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{24}
}
func (x *UpdateConnectorReq) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *UpdateConnectorReq) GetNewType() string {
if x != nil {
return x.NewType
}
return ""
}
func (x *UpdateConnectorReq) GetNewName() string {
if x != nil {
return x.NewName
}
return ""
}
func (x *UpdateConnectorReq) GetNewConfig() []byte {
if x != nil {
return x.NewConfig
}
return nil
}
// UpdateConnectorResp returns the response from modifying an existing connector.
type UpdateConnectorResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateConnectorResp) Reset() {
*x = UpdateConnectorResp{}
mi := &file_api_v2_api_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateConnectorResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateConnectorResp) ProtoMessage() {}
func (x *UpdateConnectorResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 UpdateConnectorResp.ProtoReflect.Descriptor instead.
func (*UpdateConnectorResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{25}
}
func (x *UpdateConnectorResp) GetNotFound() bool {
if x != nil {
return x.NotFound
}
return false
}
// DeleteConnectorReq is a request to delete a connector.
type DeleteConnectorReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteConnectorReq) Reset() {
*x = DeleteConnectorReq{}
mi := &file_api_v2_api_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteConnectorReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteConnectorReq) ProtoMessage() {}
func (x *DeleteConnectorReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 DeleteConnectorReq.ProtoReflect.Descriptor instead.
func (*DeleteConnectorReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{26}
}
func (x *DeleteConnectorReq) GetId() string {
if x != nil {
return x.Id
}
return ""
}
// DeleteConnectorResp returns the response from deleting a connector.
type DeleteConnectorResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteConnectorResp) Reset() {
*x = DeleteConnectorResp{}
mi := &file_api_v2_api_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteConnectorResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteConnectorResp) ProtoMessage() {}
func (x *DeleteConnectorResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 DeleteConnectorResp.ProtoReflect.Descriptor instead.
func (*DeleteConnectorResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{27}
}
func (x *DeleteConnectorResp) GetNotFound() bool {
if x != nil {
return x.NotFound
}
return false
}
// ListConnectorReq is a request to enumerate connectors.
type ListConnectorReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListConnectorReq) Reset() {
*x = ListConnectorReq{}
mi := &file_api_v2_api_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListConnectorReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListConnectorReq) ProtoMessage() {}
func (x *ListConnectorReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 ListConnectorReq.ProtoReflect.Descriptor instead.
func (*ListConnectorReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{28}
}
// ListConnectorResp returns a list of connectors.
type ListConnectorResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListConnectorResp) Reset() {
*x = ListConnectorResp{}
mi := &file_api_v2_api_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListConnectorResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListConnectorResp) ProtoMessage() {}
func (x *ListConnectorResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 ListConnectorResp.ProtoReflect.Descriptor instead.
func (*ListConnectorResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{29}
}
func (x *ListConnectorResp) GetConnectors() []*Connector {
if x != nil {
return x.Connectors
}
return nil
}
// VersionReq is a request to fetch version info.
type VersionReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VersionReq) Reset() {
*x = VersionReq{}
mi := &file_api_v2_api_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VersionReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VersionReq) ProtoMessage() {}
func (x *VersionReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 VersionReq.ProtoReflect.Descriptor instead.
func (*VersionReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{30}
}
// VersionResp holds the version info of components.
type VersionResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Semantic version of the server.
Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
// Numeric version of the API. It increases every time a new call is added to the API.
// Clients should use this info to determine if the server supports specific features.
Api int32 `protobuf:"varint,2,opt,name=api,proto3" json:"api,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VersionResp) Reset() {
*x = VersionResp{}
mi := &file_api_v2_api_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VersionResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VersionResp) ProtoMessage() {}
func (x *VersionResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 VersionResp.ProtoReflect.Descriptor instead.
func (*VersionResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{31}
}
func (x *VersionResp) GetServer() string {
if x != nil {
return x.Server
}
return ""
}
func (x *VersionResp) GetApi() int32 {
if x != nil {
return x.Api
}
return 0
}
// DiscoveryReq is a request to fetch discover information.
type DiscoveryReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DiscoveryReq) Reset() {
*x = DiscoveryReq{}
mi := &file_api_v2_api_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DiscoveryReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiscoveryReq) ProtoMessage() {}
func (x *DiscoveryReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 DiscoveryReq.ProtoReflect.Descriptor instead.
func (*DiscoveryReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{32}
}
// DiscoverResp holds the version oidc disovery info.
type DiscoveryResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
AuthorizationEndpoint string `protobuf:"bytes,2,opt,name=authorization_endpoint,json=authorizationEndpoint,proto3" json:"authorization_endpoint,omitempty"`
TokenEndpoint string `protobuf:"bytes,3,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"`
JwksUri string `protobuf:"bytes,4,opt,name=jwks_uri,json=jwksUri,proto3" json:"jwks_uri,omitempty"`
UserinfoEndpoint string `protobuf:"bytes,5,opt,name=userinfo_endpoint,json=userinfoEndpoint,proto3" json:"userinfo_endpoint,omitempty"`
DeviceAuthorizationEndpoint string `protobuf:"bytes,6,opt,name=device_authorization_endpoint,json=deviceAuthorizationEndpoint,proto3" json:"device_authorization_endpoint,omitempty"`
IntrospectionEndpoint string `protobuf:"bytes,7,opt,name=introspection_endpoint,json=introspectionEndpoint,proto3" json:"introspection_endpoint,omitempty"`
GrantTypesSupported []string `protobuf:"bytes,8,rep,name=grant_types_supported,json=grantTypesSupported,proto3" json:"grant_types_supported,omitempty"`
ResponseTypesSupported []string `protobuf:"bytes,9,rep,name=response_types_supported,json=responseTypesSupported,proto3" json:"response_types_supported,omitempty"`
SubjectTypesSupported []string `protobuf:"bytes,10,rep,name=subject_types_supported,json=subjectTypesSupported,proto3" json:"subject_types_supported,omitempty"`
IdTokenSigningAlgValuesSupported []string `protobuf:"bytes,11,rep,name=id_token_signing_alg_values_supported,json=idTokenSigningAlgValuesSupported,proto3" json:"id_token_signing_alg_values_supported,omitempty"`
CodeChallengeMethodsSupported []string `protobuf:"bytes,12,rep,name=code_challenge_methods_supported,json=codeChallengeMethodsSupported,proto3" json:"code_challenge_methods_supported,omitempty"`
ScopesSupported []string `protobuf:"bytes,13,rep,name=scopes_supported,json=scopesSupported,proto3" json:"scopes_supported,omitempty"`
TokenEndpointAuthMethodsSupported []string `protobuf:"bytes,14,rep,name=token_endpoint_auth_methods_supported,json=tokenEndpointAuthMethodsSupported,proto3" json:"token_endpoint_auth_methods_supported,omitempty"`
ClaimsSupported []string `protobuf:"bytes,15,rep,name=claims_supported,json=claimsSupported,proto3" json:"claims_supported,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DiscoveryResp) Reset() {
*x = DiscoveryResp{}
mi := &file_api_v2_api_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DiscoveryResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiscoveryResp) ProtoMessage() {}
func (x *DiscoveryResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_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 DiscoveryResp.ProtoReflect.Descriptor instead.
func (*DiscoveryResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{33}
}
func (x *DiscoveryResp) GetIssuer() string {
if x != nil {
return x.Issuer
}
return ""
}
func (x *DiscoveryResp) GetAuthorizationEndpoint() string {
if x != nil {
return x.AuthorizationEndpoint
}
return ""
}
func (x *DiscoveryResp) GetTokenEndpoint() string {
if x != nil {
return x.TokenEndpoint
}
return ""
}
func (x *DiscoveryResp) GetJwksUri() string {
if x != nil {
return x.JwksUri
}
return ""
}
func (x *DiscoveryResp) GetUserinfoEndpoint() string {
if x != nil {
return x.UserinfoEndpoint
}
return ""
}
func (x *DiscoveryResp) GetDeviceAuthorizationEndpoint() string {
if x != nil {
return x.DeviceAuthorizationEndpoint
}
return ""
}
func (x *DiscoveryResp) GetIntrospectionEndpoint() string {
if x != nil {
return x.IntrospectionEndpoint
}
return ""
}
func (x *DiscoveryResp) GetGrantTypesSupported() []string {
if x != nil {
return x.GrantTypesSupported
}
return nil
}
func (x *DiscoveryResp) GetResponseTypesSupported() []string {
if x != nil {
return x.ResponseTypesSupported
}
return nil
}
func (x *DiscoveryResp) GetSubjectTypesSupported() []string {
if x != nil {
return x.SubjectTypesSupported
}
return nil
}
func (x *DiscoveryResp) GetIdTokenSigningAlgValuesSupported() []string {
if x != nil {
return x.IdTokenSigningAlgValuesSupported
}
return nil
}
func (x *DiscoveryResp) GetCodeChallengeMethodsSupported() []string {
if x != nil {
return x.CodeChallengeMethodsSupported
}
return nil
}
func (x *DiscoveryResp) GetScopesSupported() []string {
if x != nil {
return x.ScopesSupported
}
return nil
}
func (x *DiscoveryResp) GetTokenEndpointAuthMethodsSupported() []string {
if x != nil {
return x.TokenEndpointAuthMethodsSupported
}
return nil
}
func (x *DiscoveryResp) GetClaimsSupported() []string {
if x != nil {
return x.ClaimsSupported
}
return nil
}
// RefreshTokenRef contains the metadata for a refresh token that is managed by the storage.
type RefreshTokenRef struct {
state protoimpl.MessageState `protogen:"open.v1"`
// ID of the refresh token.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
LastUsed int64 `protobuf:"varint,6,opt,name=last_used,json=lastUsed,proto3" json:"last_used,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RefreshTokenRef) Reset() {
*x = RefreshTokenRef{}
mi := &file_api_v2_api_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RefreshTokenRef) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RefreshTokenRef) ProtoMessage() {}
func (x *RefreshTokenRef) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_proto_msgTypes[34]
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 RefreshTokenRef.ProtoReflect.Descriptor instead.
func (*RefreshTokenRef) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{34}
}
func (x *RefreshTokenRef) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *RefreshTokenRef) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
func (x *RefreshTokenRef) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *RefreshTokenRef) GetLastUsed() int64 {
if x != nil {
return x.LastUsed
}
return 0
}
// ListRefreshReq is a request to enumerate the refresh tokens of a user.
type ListRefreshReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The "sub" claim returned in the ID Token.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListRefreshReq) Reset() {
*x = ListRefreshReq{}
mi := &file_api_v2_api_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListRefreshReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRefreshReq) ProtoMessage() {}
func (x *ListRefreshReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_proto_msgTypes[35]
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 ListRefreshReq.ProtoReflect.Descriptor instead.
func (*ListRefreshReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{35}
}
func (x *ListRefreshReq) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
// ListRefreshResp returns a list of refresh tokens for a user.
type ListRefreshResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
RefreshTokens []*RefreshTokenRef `protobuf:"bytes,1,rep,name=refresh_tokens,json=refreshTokens,proto3" json:"refresh_tokens,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListRefreshResp) Reset() {
*x = ListRefreshResp{}
mi := &file_api_v2_api_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListRefreshResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRefreshResp) ProtoMessage() {}
func (x *ListRefreshResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_proto_msgTypes[36]
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 ListRefreshResp.ProtoReflect.Descriptor instead.
func (*ListRefreshResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{36}
}
func (x *ListRefreshResp) GetRefreshTokens() []*RefreshTokenRef {
if x != nil {
return x.RefreshTokens
}
return nil
}
// RevokeRefreshReq is a request to revoke the refresh token of the user-client pair.
type RevokeRefreshReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The "sub" claim returned in the ID Token.
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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RevokeRefreshReq) Reset() {
*x = RevokeRefreshReq{}
mi := &file_api_v2_api_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RevokeRefreshReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevokeRefreshReq) ProtoMessage() {}
func (x *RevokeRefreshReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_proto_msgTypes[37]
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 RevokeRefreshReq.ProtoReflect.Descriptor instead.
func (*RevokeRefreshReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{37}
}
func (x *RevokeRefreshReq) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *RevokeRefreshReq) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
// RevokeRefreshResp determines if the refresh token is revoked successfully.
type RevokeRefreshResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Set to true is refresh token was not found and token could not be revoked.
NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RevokeRefreshResp) Reset() {
*x = RevokeRefreshResp{}
mi := &file_api_v2_api_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RevokeRefreshResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevokeRefreshResp) ProtoMessage() {}
func (x *RevokeRefreshResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_proto_msgTypes[38]
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 RevokeRefreshResp.ProtoReflect.Descriptor instead.
func (*RevokeRefreshResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{38}
}
func (x *RevokeRefreshResp) GetNotFound() bool {
if x != nil {
return x.NotFound
}
return false
}
type VerifyPasswordReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VerifyPasswordReq) Reset() {
*x = VerifyPasswordReq{}
mi := &file_api_v2_api_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VerifyPasswordReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VerifyPasswordReq) ProtoMessage() {}
func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_proto_msgTypes[39]
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 VerifyPasswordReq.ProtoReflect.Descriptor instead.
func (*VerifyPasswordReq) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{39}
}
func (x *VerifyPasswordReq) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *VerifyPasswordReq) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
type VerifyPasswordResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"`
NotFound bool `protobuf:"varint,2,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VerifyPasswordResp) Reset() {
*x = VerifyPasswordResp{}
mi := &file_api_v2_api_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VerifyPasswordResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VerifyPasswordResp) ProtoMessage() {}
func (x *VerifyPasswordResp) ProtoReflect() protoreflect.Message {
mi := &file_api_v2_api_proto_msgTypes[40]
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 VerifyPasswordResp.ProtoReflect.Descriptor instead.
func (*VerifyPasswordResp) Descriptor() ([]byte, []int) {
return file_api_v2_api_proto_rawDescGZIP(), []int{40}
}
func (x *VerifyPasswordResp) GetVerified() bool {
if x != nil {
return x.Verified
}
return false
}
func (x *VerifyPasswordResp) GetNotFound() bool {
if x != nil {
return x.NotFound
}
return false
}
var File_api_v2_api_proto protoreflect.FileDescriptor
const file_api_v2_api_proto_rawDesc = "" +
"\n" +
"\x10api/v2/api.proto\x12\x03api\"\xc1\x01\n" +
"\x06Client\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
"\x06secret\x18\x02 \x01(\tR\x06secret\x12#\n" +
"\rredirect_uris\x18\x03 \x03(\tR\fredirectUris\x12#\n" +
"\rtrusted_peers\x18\x04 \x03(\tR\ftrustedPeers\x12\x16\n" +
"\x06public\x18\x05 \x01(\bR\x06public\x12\x12\n" +
"\x04name\x18\x06 \x01(\tR\x04name\x12\x19\n" +
"\blogo_url\x18\a \x01(\tR\alogoUrl\"\xad\x01\n" +
"\n" +
"ClientInfo\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12#\n" +
"\rredirect_uris\x18\x02 \x03(\tR\fredirectUris\x12#\n" +
"\rtrusted_peers\x18\x03 \x03(\tR\ftrustedPeers\x12\x16\n" +
"\x06public\x18\x04 \x01(\bR\x06public\x12\x12\n" +
"\x04name\x18\x05 \x01(\tR\x04name\x12\x19\n" +
"\blogo_url\x18\x06 \x01(\tR\alogoUrl\"\x1e\n" +
"\fGetClientReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"4\n" +
"\rGetClientResp\x12#\n" +
"\x06client\x18\x01 \x01(\v2\v.api.ClientR\x06client\"6\n" +
"\x0fCreateClientReq\x12#\n" +
"\x06client\x18\x01 \x01(\v2\v.api.ClientR\x06client\"^\n" +
"\x10CreateClientResp\x12%\n" +
"\x0ealready_exists\x18\x01 \x01(\bR\ralreadyExists\x12#\n" +
"\x06client\x18\x02 \x01(\v2\v.api.ClientR\x06client\"!\n" +
"\x0fDeleteClientReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"/\n" +
"\x10DeleteClientResp\x12\x1b\n" +
"\tnot_found\x18\x01 \x01(\bR\bnotFound\"\x9a\x01\n" +
"\x0fUpdateClientReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12#\n" +
"\rredirect_uris\x18\x02 \x03(\tR\fredirectUris\x12#\n" +
"\rtrusted_peers\x18\x03 \x03(\tR\ftrustedPeers\x12\x12\n" +
"\x04name\x18\x04 \x01(\tR\x04name\x12\x19\n" +
"\blogo_url\x18\x05 \x01(\tR\alogoUrl\"/\n" +
"\x10UpdateClientResp\x12\x1b\n" +
"\tnot_found\x18\x01 \x01(\bR\bnotFound\"\x0f\n" +
"\rListClientReq\";\n" +
"\x0eListClientResp\x12)\n" +
"\aclients\x18\x01 \x03(\v2\x0f.api.ClientInfoR\aclients\"i\n" +
"\bPassword\x12\x14\n" +
"\x05email\x18\x01 \x01(\tR\x05email\x12\x12\n" +
"\x04hash\x18\x02 \x01(\fR\x04hash\x12\x1a\n" +
"\busername\x18\x03 \x01(\tR\busername\x12\x17\n" +
"\auser_id\x18\x04 \x01(\tR\x06userId\">\n" +
"\x11CreatePasswordReq\x12)\n" +
"\bpassword\x18\x01 \x01(\v2\r.api.PasswordR\bpassword\";\n" +
"\x12CreatePasswordResp\x12%\n" +
"\x0ealready_exists\x18\x01 \x01(\bR\ralreadyExists\"g\n" +
"\x11UpdatePasswordReq\x12\x14\n" +
"\x05email\x18\x01 \x01(\tR\x05email\x12\x19\n" +
"\bnew_hash\x18\x02 \x01(\fR\anewHash\x12!\n" +
"\fnew_username\x18\x03 \x01(\tR\vnewUsername\"1\n" +
"\x12UpdatePasswordResp\x12\x1b\n" +
"\tnot_found\x18\x01 \x01(\bR\bnotFound\")\n" +
"\x11DeletePasswordReq\x12\x14\n" +
"\x05email\x18\x01 \x01(\tR\x05email\"1\n" +
"\x12DeletePasswordResp\x12\x1b\n" +
"\tnot_found\x18\x01 \x01(\bR\bnotFound\"\x11\n" +
"\x0fListPasswordReq\"?\n" +
"\x10ListPasswordResp\x12+\n" +
"\tpasswords\x18\x01 \x03(\v2\r.api.PasswordR\tpasswords\"[\n" +
"\tConnector\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" +
"\x06config\x18\x04 \x01(\fR\x06config\"B\n" +
"\x12CreateConnectorReq\x12,\n" +
"\tconnector\x18\x01 \x01(\v2\x0e.api.ConnectorR\tconnector\"<\n" +
"\x13CreateConnectorResp\x12%\n" +
"\x0ealready_exists\x18\x01 \x01(\bR\ralreadyExists\"y\n" +
"\x12UpdateConnectorReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
"\bnew_type\x18\x02 \x01(\tR\anewType\x12\x19\n" +
"\bnew_name\x18\x03 \x01(\tR\anewName\x12\x1d\n" +
"\n" +
"new_config\x18\x04 \x01(\fR\tnewConfig\"2\n" +
"\x13UpdateConnectorResp\x12\x1b\n" +
"\tnot_found\x18\x01 \x01(\bR\bnotFound\"$\n" +
"\x12DeleteConnectorReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"2\n" +
"\x13DeleteConnectorResp\x12\x1b\n" +
"\tnot_found\x18\x01 \x01(\bR\bnotFound\"\x12\n" +
"\x10ListConnectorReq\"C\n" +
"\x11ListConnectorResp\x12.\n" +
"\n" +
"connectors\x18\x01 \x03(\v2\x0e.api.ConnectorR\n" +
"connectors\"\f\n" +
"\n" +
"VersionReq\"7\n" +
"\vVersionResp\x12\x16\n" +
"\x06server\x18\x01 \x01(\tR\x06server\x12\x10\n" +
"\x03api\x18\x02 \x01(\x05R\x03api\"\x0e\n" +
"\fDiscoveryReq\"\xb0\x06\n" +
"\rDiscoveryResp\x12\x16\n" +
"\x06issuer\x18\x01 \x01(\tR\x06issuer\x125\n" +
"\x16authorization_endpoint\x18\x02 \x01(\tR\x15authorizationEndpoint\x12%\n" +
"\x0etoken_endpoint\x18\x03 \x01(\tR\rtokenEndpoint\x12\x19\n" +
"\bjwks_uri\x18\x04 \x01(\tR\ajwksUri\x12+\n" +
"\x11userinfo_endpoint\x18\x05 \x01(\tR\x10userinfoEndpoint\x12B\n" +
"\x1ddevice_authorization_endpoint\x18\x06 \x01(\tR\x1bdeviceAuthorizationEndpoint\x125\n" +
"\x16introspection_endpoint\x18\a \x01(\tR\x15introspectionEndpoint\x122\n" +
"\x15grant_types_supported\x18\b \x03(\tR\x13grantTypesSupported\x128\n" +
"\x18response_types_supported\x18\t \x03(\tR\x16responseTypesSupported\x126\n" +
"\x17subject_types_supported\x18\n" +
" \x03(\tR\x15subjectTypesSupported\x12O\n" +
"%id_token_signing_alg_values_supported\x18\v \x03(\tR idTokenSigningAlgValuesSupported\x12G\n" +
" code_challenge_methods_supported\x18\f \x03(\tR\x1dcodeChallengeMethodsSupported\x12)\n" +
"\x10scopes_supported\x18\r \x03(\tR\x0fscopesSupported\x12P\n" +
"%token_endpoint_auth_methods_supported\x18\x0e \x03(\tR!tokenEndpointAuthMethodsSupported\x12)\n" +
"\x10claims_supported\x18\x0f \x03(\tR\x0fclaimsSupported\"z\n" +
"\x0fRefreshTokenRef\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
"\tclient_id\x18\x02 \x01(\tR\bclientId\x12\x1d\n" +
"\n" +
"created_at\x18\x05 \x01(\x03R\tcreatedAt\x12\x1b\n" +
"\tlast_used\x18\x06 \x01(\x03R\blastUsed\")\n" +
"\x0eListRefreshReq\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\"N\n" +
"\x0fListRefreshResp\x12;\n" +
"\x0erefresh_tokens\x18\x01 \x03(\v2\x14.api.RefreshTokenRefR\rrefreshTokens\"H\n" +
"\x10RevokeRefreshReq\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1b\n" +
"\tclient_id\x18\x02 \x01(\tR\bclientId\"0\n" +
"\x11RevokeRefreshResp\x12\x1b\n" +
"\tnot_found\x18\x01 \x01(\bR\bnotFound\"E\n" +
"\x11VerifyPasswordReq\x12\x14\n" +
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\"M\n" +
"\x12VerifyPasswordResp\x12\x1a\n" +
"\bverified\x18\x01 \x01(\bR\bverified\x12\x1b\n" +
"\tnot_found\x18\x02 \x01(\bR\bnotFound2\x8b\t\n" +
"\x03Dex\x124\n" +
"\tGetClient\x12\x11.api.GetClientReq\x1a\x12.api.GetClientResp\"\x00\x12=\n" +
"\fCreateClient\x12\x14.api.CreateClientReq\x1a\x15.api.CreateClientResp\"\x00\x12=\n" +
"\fUpdateClient\x12\x14.api.UpdateClientReq\x1a\x15.api.UpdateClientResp\"\x00\x12=\n" +
"\fDeleteClient\x12\x14.api.DeleteClientReq\x1a\x15.api.DeleteClientResp\"\x00\x128\n" +
"\vListClients\x12\x12.api.ListClientReq\x1a\x13.api.ListClientResp\"\x00\x12C\n" +
"\x0eCreatePassword\x12\x16.api.CreatePasswordReq\x1a\x17.api.CreatePasswordResp\"\x00\x12C\n" +
"\x0eUpdatePassword\x12\x16.api.UpdatePasswordReq\x1a\x17.api.UpdatePasswordResp\"\x00\x12C\n" +
"\x0eDeletePassword\x12\x16.api.DeletePasswordReq\x1a\x17.api.DeletePasswordResp\"\x00\x12>\n" +
"\rListPasswords\x12\x14.api.ListPasswordReq\x1a\x15.api.ListPasswordResp\"\x00\x12F\n" +
"\x0fCreateConnector\x12\x17.api.CreateConnectorReq\x1a\x18.api.CreateConnectorResp\"\x00\x12F\n" +
"\x0fUpdateConnector\x12\x17.api.UpdateConnectorReq\x1a\x18.api.UpdateConnectorResp\"\x00\x12F\n" +
"\x0fDeleteConnector\x12\x17.api.DeleteConnectorReq\x1a\x18.api.DeleteConnectorResp\"\x00\x12A\n" +
"\x0eListConnectors\x12\x15.api.ListConnectorReq\x1a\x16.api.ListConnectorResp\"\x00\x121\n" +
"\n" +
"GetVersion\x12\x0f.api.VersionReq\x1a\x10.api.VersionResp\"\x00\x127\n" +
"\fGetDiscovery\x12\x11.api.DiscoveryReq\x1a\x12.api.DiscoveryResp\"\x00\x12:\n" +
"\vListRefresh\x12\x13.api.ListRefreshReq\x1a\x14.api.ListRefreshResp\"\x00\x12@\n" +
"\rRevokeRefresh\x12\x15.api.RevokeRefreshReq\x1a\x16.api.RevokeRefreshResp\"\x00\x12C\n" +
"\x0eVerifyPassword\x12\x16.api.VerifyPasswordReq\x1a\x17.api.VerifyPasswordResp\"\x00B6\n" +
"\x12com.coreos.dex.apiZ github.com/dexidp/dex/api/v2;apib\x06proto3"
var (
file_api_v2_api_proto_rawDescOnce sync.Once
file_api_v2_api_proto_rawDescData []byte
)
func file_api_v2_api_proto_rawDescGZIP() []byte {
file_api_v2_api_proto_rawDescOnce.Do(func() {
file_api_v2_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v2_api_proto_rawDesc), len(file_api_v2_api_proto_rawDesc)))
})
return file_api_v2_api_proto_rawDescData
}
var file_api_v2_api_proto_msgTypes = make([]protoimpl.MessageInfo, 41)
var file_api_v2_api_proto_goTypes = []any{
(*Client)(nil), // 0: api.Client
(*ClientInfo)(nil), // 1: api.ClientInfo
(*GetClientReq)(nil), // 2: api.GetClientReq
(*GetClientResp)(nil), // 3: api.GetClientResp
(*CreateClientReq)(nil), // 4: api.CreateClientReq
(*CreateClientResp)(nil), // 5: api.CreateClientResp
(*DeleteClientReq)(nil), // 6: api.DeleteClientReq
(*DeleteClientResp)(nil), // 7: api.DeleteClientResp
(*UpdateClientReq)(nil), // 8: api.UpdateClientReq
(*UpdateClientResp)(nil), // 9: api.UpdateClientResp
(*ListClientReq)(nil), // 10: api.ListClientReq
(*ListClientResp)(nil), // 11: api.ListClientResp
(*Password)(nil), // 12: api.Password
(*CreatePasswordReq)(nil), // 13: api.CreatePasswordReq
(*CreatePasswordResp)(nil), // 14: api.CreatePasswordResp
(*UpdatePasswordReq)(nil), // 15: api.UpdatePasswordReq
(*UpdatePasswordResp)(nil), // 16: api.UpdatePasswordResp
(*DeletePasswordReq)(nil), // 17: api.DeletePasswordReq
(*DeletePasswordResp)(nil), // 18: api.DeletePasswordResp
(*ListPasswordReq)(nil), // 19: api.ListPasswordReq
(*ListPasswordResp)(nil), // 20: api.ListPasswordResp
(*Connector)(nil), // 21: api.Connector
(*CreateConnectorReq)(nil), // 22: api.CreateConnectorReq
(*CreateConnectorResp)(nil), // 23: api.CreateConnectorResp
(*UpdateConnectorReq)(nil), // 24: api.UpdateConnectorReq
(*UpdateConnectorResp)(nil), // 25: api.UpdateConnectorResp
(*DeleteConnectorReq)(nil), // 26: api.DeleteConnectorReq
(*DeleteConnectorResp)(nil), // 27: api.DeleteConnectorResp
(*ListConnectorReq)(nil), // 28: api.ListConnectorReq
(*ListConnectorResp)(nil), // 29: api.ListConnectorResp
(*VersionReq)(nil), // 30: api.VersionReq
(*VersionResp)(nil), // 31: api.VersionResp
(*DiscoveryReq)(nil), // 32: api.DiscoveryReq
(*DiscoveryResp)(nil), // 33: api.DiscoveryResp
(*RefreshTokenRef)(nil), // 34: api.RefreshTokenRef
(*ListRefreshReq)(nil), // 35: api.ListRefreshReq
(*ListRefreshResp)(nil), // 36: api.ListRefreshResp
(*RevokeRefreshReq)(nil), // 37: api.RevokeRefreshReq
(*RevokeRefreshResp)(nil), // 38: api.RevokeRefreshResp
(*VerifyPasswordReq)(nil), // 39: api.VerifyPasswordReq
(*VerifyPasswordResp)(nil), // 40: api.VerifyPasswordResp
}
var file_api_v2_api_proto_depIdxs = []int32{
0, // 0: api.GetClientResp.client:type_name -> api.Client
0, // 1: api.CreateClientReq.client:type_name -> api.Client
0, // 2: api.CreateClientResp.client:type_name -> api.Client
1, // 3: api.ListClientResp.clients:type_name -> api.ClientInfo
12, // 4: api.CreatePasswordReq.password:type_name -> api.Password
12, // 5: api.ListPasswordResp.passwords:type_name -> api.Password
21, // 6: api.CreateConnectorReq.connector:type_name -> api.Connector
21, // 7: api.ListConnectorResp.connectors:type_name -> api.Connector
34, // 8: api.ListRefreshResp.refresh_tokens:type_name -> api.RefreshTokenRef
2, // 9: api.Dex.GetClient:input_type -> api.GetClientReq
4, // 10: api.Dex.CreateClient:input_type -> api.CreateClientReq
8, // 11: api.Dex.UpdateClient:input_type -> api.UpdateClientReq
6, // 12: api.Dex.DeleteClient:input_type -> api.DeleteClientReq
10, // 13: api.Dex.ListClients:input_type -> api.ListClientReq
13, // 14: api.Dex.CreatePassword:input_type -> api.CreatePasswordReq
15, // 15: api.Dex.UpdatePassword:input_type -> api.UpdatePasswordReq
17, // 16: api.Dex.DeletePassword:input_type -> api.DeletePasswordReq
19, // 17: api.Dex.ListPasswords:input_type -> api.ListPasswordReq
22, // 18: api.Dex.CreateConnector:input_type -> api.CreateConnectorReq
24, // 19: api.Dex.UpdateConnector:input_type -> api.UpdateConnectorReq
26, // 20: api.Dex.DeleteConnector:input_type -> api.DeleteConnectorReq
28, // 21: api.Dex.ListConnectors:input_type -> api.ListConnectorReq
30, // 22: api.Dex.GetVersion:input_type -> api.VersionReq
32, // 23: api.Dex.GetDiscovery:input_type -> api.DiscoveryReq
35, // 24: api.Dex.ListRefresh:input_type -> api.ListRefreshReq
37, // 25: api.Dex.RevokeRefresh:input_type -> api.RevokeRefreshReq
39, // 26: api.Dex.VerifyPassword:input_type -> api.VerifyPasswordReq
3, // 27: api.Dex.GetClient:output_type -> api.GetClientResp
5, // 28: api.Dex.CreateClient:output_type -> api.CreateClientResp
9, // 29: api.Dex.UpdateClient:output_type -> api.UpdateClientResp
7, // 30: api.Dex.DeleteClient:output_type -> api.DeleteClientResp
11, // 31: api.Dex.ListClients:output_type -> api.ListClientResp
14, // 32: api.Dex.CreatePassword:output_type -> api.CreatePasswordResp
16, // 33: api.Dex.UpdatePassword:output_type -> api.UpdatePasswordResp
18, // 34: api.Dex.DeletePassword:output_type -> api.DeletePasswordResp
20, // 35: api.Dex.ListPasswords:output_type -> api.ListPasswordResp
23, // 36: api.Dex.CreateConnector:output_type -> api.CreateConnectorResp
25, // 37: api.Dex.UpdateConnector:output_type -> api.UpdateConnectorResp
27, // 38: api.Dex.DeleteConnector:output_type -> api.DeleteConnectorResp
29, // 39: api.Dex.ListConnectors:output_type -> api.ListConnectorResp
31, // 40: api.Dex.GetVersion:output_type -> api.VersionResp
33, // 41: api.Dex.GetDiscovery:output_type -> api.DiscoveryResp
36, // 42: api.Dex.ListRefresh:output_type -> api.ListRefreshResp
38, // 43: api.Dex.RevokeRefresh:output_type -> api.RevokeRefreshResp
40, // 44: api.Dex.VerifyPassword:output_type -> api.VerifyPasswordResp
27, // [27:45] is the sub-list for method output_type
9, // [9:27] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_api_v2_api_proto_init() }
func file_api_v2_api_proto_init() {
if File_api_v2_api_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v2_api_proto_rawDesc), len(file_api_v2_api_proto_rawDesc)),
NumEnums: 0,
NumMessages: 41,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_api_v2_api_proto_goTypes,
DependencyIndexes: file_api_v2_api_proto_depIdxs,
MessageInfos: file_api_v2_api_proto_msgTypes,
}.Build()
File_api_v2_api_proto = out.File
file_api_v2_api_proto_goTypes = nil
file_api_v2_api_proto_depIdxs = nil
}