api

package module
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dex_GetClient_FullMethodName       = "/api.Dex/GetClient"
	Dex_CreateClient_FullMethodName    = "/api.Dex/CreateClient"
	Dex_UpdateClient_FullMethodName    = "/api.Dex/UpdateClient"
	Dex_DeleteClient_FullMethodName    = "/api.Dex/DeleteClient"
	Dex_ListClients_FullMethodName     = "/api.Dex/ListClients"
	Dex_CreatePassword_FullMethodName  = "/api.Dex/CreatePassword"
	Dex_UpdatePassword_FullMethodName  = "/api.Dex/UpdatePassword"
	Dex_DeletePassword_FullMethodName  = "/api.Dex/DeletePassword"
	Dex_ListPasswords_FullMethodName   = "/api.Dex/ListPasswords"
	Dex_CreateConnector_FullMethodName = "/api.Dex/CreateConnector"
	Dex_UpdateConnector_FullMethodName = "/api.Dex/UpdateConnector"
	Dex_DeleteConnector_FullMethodName = "/api.Dex/DeleteConnector"
	Dex_ListConnectors_FullMethodName  = "/api.Dex/ListConnectors"
	Dex_GetVersion_FullMethodName      = "/api.Dex/GetVersion"
	Dex_GetDiscovery_FullMethodName    = "/api.Dex/GetDiscovery"
	Dex_ListRefresh_FullMethodName     = "/api.Dex/ListRefresh"
	Dex_RevokeRefresh_FullMethodName   = "/api.Dex/RevokeRefresh"
	Dex_VerifyPassword_FullMethodName  = "/api.Dex/VerifyPassword"
)

Variables

View Source
var Dex_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.Dex",
	HandlerType: (*DexServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetClient",
			Handler:    _Dex_GetClient_Handler,
		},
		{
			MethodName: "CreateClient",
			Handler:    _Dex_CreateClient_Handler,
		},
		{
			MethodName: "UpdateClient",
			Handler:    _Dex_UpdateClient_Handler,
		},
		{
			MethodName: "DeleteClient",
			Handler:    _Dex_DeleteClient_Handler,
		},
		{
			MethodName: "ListClients",
			Handler:    _Dex_ListClients_Handler,
		},
		{
			MethodName: "CreatePassword",
			Handler:    _Dex_CreatePassword_Handler,
		},
		{
			MethodName: "UpdatePassword",
			Handler:    _Dex_UpdatePassword_Handler,
		},
		{
			MethodName: "DeletePassword",
			Handler:    _Dex_DeletePassword_Handler,
		},
		{
			MethodName: "ListPasswords",
			Handler:    _Dex_ListPasswords_Handler,
		},
		{
			MethodName: "CreateConnector",
			Handler:    _Dex_CreateConnector_Handler,
		},
		{
			MethodName: "UpdateConnector",
			Handler:    _Dex_UpdateConnector_Handler,
		},
		{
			MethodName: "DeleteConnector",
			Handler:    _Dex_DeleteConnector_Handler,
		},
		{
			MethodName: "ListConnectors",
			Handler:    _Dex_ListConnectors_Handler,
		},
		{
			MethodName: "GetVersion",
			Handler:    _Dex_GetVersion_Handler,
		},
		{
			MethodName: "GetDiscovery",
			Handler:    _Dex_GetDiscovery_Handler,
		},
		{
			MethodName: "ListRefresh",
			Handler:    _Dex_ListRefresh_Handler,
		},
		{
			MethodName: "RevokeRefresh",
			Handler:    _Dex_RevokeRefresh_Handler,
		},
		{
			MethodName: "VerifyPassword",
			Handler:    _Dex_VerifyPassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v2/api.proto",
}

Dex_ServiceDesc is the grpc.ServiceDesc for Dex service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_v2_api_proto protoreflect.FileDescriptor

Functions

func RegisterDexServer

func RegisterDexServer(s grpc.ServiceRegistrar, srv DexServer)

Types

type Client

type Client struct {
	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"`
	// contains filtered or unexported fields
}

Client represents an OAuth2 client.

func (*Client) Descriptor deprecated

func (*Client) Descriptor() ([]byte, []int)

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetId

func (x *Client) GetId() string

func (*Client) GetLogoUrl

func (x *Client) GetLogoUrl() string

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) GetPublic

func (x *Client) GetPublic() bool

func (*Client) GetRedirectUris

func (x *Client) GetRedirectUris() []string

func (*Client) GetSecret

func (x *Client) GetSecret() string

func (*Client) GetTrustedPeers

func (x *Client) GetTrustedPeers() []string

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

func (x *Client) ProtoReflect() protoreflect.Message

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type ClientInfo

type ClientInfo struct {
	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"`
	// contains filtered or unexported fields
}

ClientInfo represents an OAuth2 client without sensitive information.

func (*ClientInfo) Descriptor deprecated

func (*ClientInfo) Descriptor() ([]byte, []int)

Deprecated: Use ClientInfo.ProtoReflect.Descriptor instead.

func (*ClientInfo) GetId

func (x *ClientInfo) GetId() string

func (*ClientInfo) GetLogoUrl

func (x *ClientInfo) GetLogoUrl() string

func (*ClientInfo) GetName

func (x *ClientInfo) GetName() string

func (*ClientInfo) GetPublic

func (x *ClientInfo) GetPublic() bool

func (*ClientInfo) GetRedirectUris

func (x *ClientInfo) GetRedirectUris() []string

func (*ClientInfo) GetTrustedPeers

func (x *ClientInfo) GetTrustedPeers() []string

func (*ClientInfo) ProtoMessage

func (*ClientInfo) ProtoMessage()

func (*ClientInfo) ProtoReflect

func (x *ClientInfo) ProtoReflect() protoreflect.Message

func (*ClientInfo) Reset

func (x *ClientInfo) Reset()

func (*ClientInfo) String

func (x *ClientInfo) String() string

type Connector

type Connector struct {
	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"`
	// contains filtered or unexported fields
}

Connector is a strategy used by Dex for authenticating a user against another identity provider

func (*Connector) Descriptor deprecated

func (*Connector) Descriptor() ([]byte, []int)

Deprecated: Use Connector.ProtoReflect.Descriptor instead.

func (*Connector) GetConfig

func (x *Connector) GetConfig() []byte

func (*Connector) GetId

func (x *Connector) GetId() string

func (*Connector) GetName

func (x *Connector) GetName() string

func (*Connector) GetType

func (x *Connector) GetType() string

func (*Connector) ProtoMessage

func (*Connector) ProtoMessage()

func (*Connector) ProtoReflect

func (x *Connector) ProtoReflect() protoreflect.Message

func (*Connector) Reset

func (x *Connector) Reset()

func (*Connector) String

func (x *Connector) String() string

type CreateClientReq

type CreateClientReq struct {
	Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

CreateClientReq is a request to make a client.

func (*CreateClientReq) Descriptor deprecated

func (*CreateClientReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateClientReq.ProtoReflect.Descriptor instead.

func (*CreateClientReq) GetClient

func (x *CreateClientReq) GetClient() *Client

func (*CreateClientReq) ProtoMessage

func (*CreateClientReq) ProtoMessage()

func (*CreateClientReq) ProtoReflect

func (x *CreateClientReq) ProtoReflect() protoreflect.Message

func (*CreateClientReq) Reset

func (x *CreateClientReq) Reset()

func (*CreateClientReq) String

func (x *CreateClientReq) String() string

type CreateClientResp

type CreateClientResp struct {
	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"`
	// contains filtered or unexported fields
}

CreateClientResp returns the response from creating a client.

func (*CreateClientResp) Descriptor deprecated

func (*CreateClientResp) Descriptor() ([]byte, []int)

Deprecated: Use CreateClientResp.ProtoReflect.Descriptor instead.

func (*CreateClientResp) GetAlreadyExists

func (x *CreateClientResp) GetAlreadyExists() bool

func (*CreateClientResp) GetClient

func (x *CreateClientResp) GetClient() *Client

func (*CreateClientResp) ProtoMessage

func (*CreateClientResp) ProtoMessage()

func (*CreateClientResp) ProtoReflect

func (x *CreateClientResp) ProtoReflect() protoreflect.Message

func (*CreateClientResp) Reset

func (x *CreateClientResp) Reset()

func (*CreateClientResp) String

func (x *CreateClientResp) String() string

type CreateConnectorReq

type CreateConnectorReq struct {
	Connector *Connector `protobuf:"bytes,1,opt,name=connector,proto3" json:"connector,omitempty"`
	// contains filtered or unexported fields
}

CreateConnectorReq is a request to make a connector.

func (*CreateConnectorReq) Descriptor deprecated

func (*CreateConnectorReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateConnectorReq.ProtoReflect.Descriptor instead.

func (*CreateConnectorReq) GetConnector

func (x *CreateConnectorReq) GetConnector() *Connector

func (*CreateConnectorReq) ProtoMessage

func (*CreateConnectorReq) ProtoMessage()

func (*CreateConnectorReq) ProtoReflect

func (x *CreateConnectorReq) ProtoReflect() protoreflect.Message

func (*CreateConnectorReq) Reset

func (x *CreateConnectorReq) Reset()

func (*CreateConnectorReq) String

func (x *CreateConnectorReq) String() string

type CreateConnectorResp

type CreateConnectorResp struct {
	AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
	// contains filtered or unexported fields
}

CreateConnectorResp returns the response from creating a connector.

func (*CreateConnectorResp) Descriptor deprecated

func (*CreateConnectorResp) Descriptor() ([]byte, []int)

Deprecated: Use CreateConnectorResp.ProtoReflect.Descriptor instead.

func (*CreateConnectorResp) GetAlreadyExists

func (x *CreateConnectorResp) GetAlreadyExists() bool

func (*CreateConnectorResp) ProtoMessage

func (*CreateConnectorResp) ProtoMessage()

func (*CreateConnectorResp) ProtoReflect

func (x *CreateConnectorResp) ProtoReflect() protoreflect.Message

func (*CreateConnectorResp) Reset

func (x *CreateConnectorResp) Reset()

func (*CreateConnectorResp) String

func (x *CreateConnectorResp) String() string

type CreatePasswordReq

type CreatePasswordReq struct {
	Password *Password `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

CreatePasswordReq is a request to make a password.

func (*CreatePasswordReq) Descriptor deprecated

func (*CreatePasswordReq) Descriptor() ([]byte, []int)

Deprecated: Use CreatePasswordReq.ProtoReflect.Descriptor instead.

func (*CreatePasswordReq) GetPassword

func (x *CreatePasswordReq) GetPassword() *Password

func (*CreatePasswordReq) ProtoMessage

func (*CreatePasswordReq) ProtoMessage()

func (*CreatePasswordReq) ProtoReflect

func (x *CreatePasswordReq) ProtoReflect() protoreflect.Message

func (*CreatePasswordReq) Reset

func (x *CreatePasswordReq) Reset()

func (*CreatePasswordReq) String

func (x *CreatePasswordReq) String() string

type CreatePasswordResp

type CreatePasswordResp struct {
	AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
	// contains filtered or unexported fields
}

CreatePasswordResp returns the response from creating a password.

func (*CreatePasswordResp) Descriptor deprecated

func (*CreatePasswordResp) Descriptor() ([]byte, []int)

Deprecated: Use CreatePasswordResp.ProtoReflect.Descriptor instead.

func (*CreatePasswordResp) GetAlreadyExists

func (x *CreatePasswordResp) GetAlreadyExists() bool

func (*CreatePasswordResp) ProtoMessage

func (*CreatePasswordResp) ProtoMessage()

func (*CreatePasswordResp) ProtoReflect

func (x *CreatePasswordResp) ProtoReflect() protoreflect.Message

func (*CreatePasswordResp) Reset

func (x *CreatePasswordResp) Reset()

func (*CreatePasswordResp) String

func (x *CreatePasswordResp) String() string

type DeleteClientReq

type DeleteClientReq struct {

	// The ID of the client.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteClientReq is a request to delete a client.

func (*DeleteClientReq) Descriptor deprecated

func (*DeleteClientReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClientReq.ProtoReflect.Descriptor instead.

func (*DeleteClientReq) GetId

func (x *DeleteClientReq) GetId() string

func (*DeleteClientReq) ProtoMessage

func (*DeleteClientReq) ProtoMessage()

func (*DeleteClientReq) ProtoReflect

func (x *DeleteClientReq) ProtoReflect() protoreflect.Message

func (*DeleteClientReq) Reset

func (x *DeleteClientReq) Reset()

func (*DeleteClientReq) String

func (x *DeleteClientReq) String() string

type DeleteClientResp

type DeleteClientResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeleteClientResp determines if the client is deleted successfully.

func (*DeleteClientResp) Descriptor deprecated

func (*DeleteClientResp) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClientResp.ProtoReflect.Descriptor instead.

func (*DeleteClientResp) GetNotFound

func (x *DeleteClientResp) GetNotFound() bool

func (*DeleteClientResp) ProtoMessage

func (*DeleteClientResp) ProtoMessage()

func (*DeleteClientResp) ProtoReflect

func (x *DeleteClientResp) ProtoReflect() protoreflect.Message

func (*DeleteClientResp) Reset

func (x *DeleteClientResp) Reset()

func (*DeleteClientResp) String

func (x *DeleteClientResp) String() string

type DeleteConnectorReq

type DeleteConnectorReq struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteConnectorReq is a request to delete a connector.

func (*DeleteConnectorReq) Descriptor deprecated

func (*DeleteConnectorReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteConnectorReq.ProtoReflect.Descriptor instead.

func (*DeleteConnectorReq) GetId

func (x *DeleteConnectorReq) GetId() string

func (*DeleteConnectorReq) ProtoMessage

func (*DeleteConnectorReq) ProtoMessage()

func (*DeleteConnectorReq) ProtoReflect

func (x *DeleteConnectorReq) ProtoReflect() protoreflect.Message

func (*DeleteConnectorReq) Reset

func (x *DeleteConnectorReq) Reset()

func (*DeleteConnectorReq) String

func (x *DeleteConnectorReq) String() string

type DeleteConnectorResp

type DeleteConnectorResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeleteConnectorResp returns the response from deleting a connector.

func (*DeleteConnectorResp) Descriptor deprecated

func (*DeleteConnectorResp) Descriptor() ([]byte, []int)

Deprecated: Use DeleteConnectorResp.ProtoReflect.Descriptor instead.

func (*DeleteConnectorResp) GetNotFound

func (x *DeleteConnectorResp) GetNotFound() bool

func (*DeleteConnectorResp) ProtoMessage

func (*DeleteConnectorResp) ProtoMessage()

func (*DeleteConnectorResp) ProtoReflect

func (x *DeleteConnectorResp) ProtoReflect() protoreflect.Message

func (*DeleteConnectorResp) Reset

func (x *DeleteConnectorResp) Reset()

func (*DeleteConnectorResp) String

func (x *DeleteConnectorResp) String() string

type DeletePasswordReq

type DeletePasswordReq struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

DeletePasswordReq is a request to delete a password.

func (*DeletePasswordReq) Descriptor deprecated

func (*DeletePasswordReq) Descriptor() ([]byte, []int)

Deprecated: Use DeletePasswordReq.ProtoReflect.Descriptor instead.

func (*DeletePasswordReq) GetEmail

func (x *DeletePasswordReq) GetEmail() string

func (*DeletePasswordReq) ProtoMessage

func (*DeletePasswordReq) ProtoMessage()

func (*DeletePasswordReq) ProtoReflect

func (x *DeletePasswordReq) ProtoReflect() protoreflect.Message

func (*DeletePasswordReq) Reset

func (x *DeletePasswordReq) Reset()

func (*DeletePasswordReq) String

func (x *DeletePasswordReq) String() string

type DeletePasswordResp

type DeletePasswordResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeletePasswordResp returns the response from deleting a password.

func (*DeletePasswordResp) Descriptor deprecated

func (*DeletePasswordResp) Descriptor() ([]byte, []int)

Deprecated: Use DeletePasswordResp.ProtoReflect.Descriptor instead.

func (*DeletePasswordResp) GetNotFound

func (x *DeletePasswordResp) GetNotFound() bool

func (*DeletePasswordResp) ProtoMessage

func (*DeletePasswordResp) ProtoMessage()

func (*DeletePasswordResp) ProtoReflect

func (x *DeletePasswordResp) ProtoReflect() protoreflect.Message

func (*DeletePasswordResp) Reset

func (x *DeletePasswordResp) Reset()

func (*DeletePasswordResp) String

func (x *DeletePasswordResp) String() string

type DexClient

type DexClient interface {
	// GetClient gets a client.
	GetClient(ctx context.Context, in *GetClientReq, opts ...grpc.CallOption) (*GetClientResp, error)
	// CreateClient creates a client.
	CreateClient(ctx context.Context, in *CreateClientReq, opts ...grpc.CallOption) (*CreateClientResp, error)
	// UpdateClient updates an existing client
	UpdateClient(ctx context.Context, in *UpdateClientReq, opts ...grpc.CallOption) (*UpdateClientResp, error)
	// DeleteClient deletes the provided client.
	DeleteClient(ctx context.Context, in *DeleteClientReq, opts ...grpc.CallOption) (*DeleteClientResp, error)
	// ListClients lists all client entries.
	ListClients(ctx context.Context, in *ListClientReq, opts ...grpc.CallOption) (*ListClientResp, error)
	// CreatePassword creates a password.
	CreatePassword(ctx context.Context, in *CreatePasswordReq, opts ...grpc.CallOption) (*CreatePasswordResp, error)
	// UpdatePassword modifies existing password.
	UpdatePassword(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UpdatePasswordResp, error)
	// DeletePassword deletes the password.
	DeletePassword(ctx context.Context, in *DeletePasswordReq, opts ...grpc.CallOption) (*DeletePasswordResp, error)
	// ListPassword lists all password entries.
	ListPasswords(ctx context.Context, in *ListPasswordReq, opts ...grpc.CallOption) (*ListPasswordResp, error)
	// CreateConnector creates a connector.
	CreateConnector(ctx context.Context, in *CreateConnectorReq, opts ...grpc.CallOption) (*CreateConnectorResp, error)
	// UpdateConnector modifies existing connector.
	UpdateConnector(ctx context.Context, in *UpdateConnectorReq, opts ...grpc.CallOption) (*UpdateConnectorResp, error)
	// DeleteConnector deletes the connector.
	DeleteConnector(ctx context.Context, in *DeleteConnectorReq, opts ...grpc.CallOption) (*DeleteConnectorResp, error)
	// ListConnectors lists all connector entries.
	ListConnectors(ctx context.Context, in *ListConnectorReq, opts ...grpc.CallOption) (*ListConnectorResp, error)
	// GetVersion returns version information of the server.
	GetVersion(ctx context.Context, in *VersionReq, opts ...grpc.CallOption) (*VersionResp, error)
	// GetDiscovery returns discovery information of the server.
	GetDiscovery(ctx context.Context, in *DiscoveryReq, opts ...grpc.CallOption) (*DiscoveryResp, error)
	// ListRefresh lists all the refresh token entries for a particular user.
	ListRefresh(ctx context.Context, in *ListRefreshReq, opts ...grpc.CallOption) (*ListRefreshResp, error)
	// RevokeRefresh revokes the refresh token for the provided user-client pair.
	//
	// Note that each user-client pair can have only one refresh token at a time.
	RevokeRefresh(ctx context.Context, in *RevokeRefreshReq, opts ...grpc.CallOption) (*RevokeRefreshResp, error)
	// VerifyPassword returns whether a password matches a hash for a specific email or not.
	VerifyPassword(ctx context.Context, in *VerifyPasswordReq, opts ...grpc.CallOption) (*VerifyPasswordResp, error)
}

DexClient is the client API for Dex service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Dex represents the dex gRPC service.

func NewDexClient

func NewDexClient(cc grpc.ClientConnInterface) DexClient

type DexServer

type DexServer interface {
	// GetClient gets a client.
	GetClient(context.Context, *GetClientReq) (*GetClientResp, error)
	// CreateClient creates a client.
	CreateClient(context.Context, *CreateClientReq) (*CreateClientResp, error)
	// UpdateClient updates an existing client
	UpdateClient(context.Context, *UpdateClientReq) (*UpdateClientResp, error)
	// DeleteClient deletes the provided client.
	DeleteClient(context.Context, *DeleteClientReq) (*DeleteClientResp, error)
	// ListClients lists all client entries.
	ListClients(context.Context, *ListClientReq) (*ListClientResp, error)
	// CreatePassword creates a password.
	CreatePassword(context.Context, *CreatePasswordReq) (*CreatePasswordResp, error)
	// UpdatePassword modifies existing password.
	UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error)
	// DeletePassword deletes the password.
	DeletePassword(context.Context, *DeletePasswordReq) (*DeletePasswordResp, error)
	// ListPassword lists all password entries.
	ListPasswords(context.Context, *ListPasswordReq) (*ListPasswordResp, error)
	// CreateConnector creates a connector.
	CreateConnector(context.Context, *CreateConnectorReq) (*CreateConnectorResp, error)
	// UpdateConnector modifies existing connector.
	UpdateConnector(context.Context, *UpdateConnectorReq) (*UpdateConnectorResp, error)
	// DeleteConnector deletes the connector.
	DeleteConnector(context.Context, *DeleteConnectorReq) (*DeleteConnectorResp, error)
	// ListConnectors lists all connector entries.
	ListConnectors(context.Context, *ListConnectorReq) (*ListConnectorResp, error)
	// GetVersion returns version information of the server.
	GetVersion(context.Context, *VersionReq) (*VersionResp, error)
	// GetDiscovery returns discovery information of the server.
	GetDiscovery(context.Context, *DiscoveryReq) (*DiscoveryResp, error)
	// ListRefresh lists all the refresh token entries for a particular user.
	ListRefresh(context.Context, *ListRefreshReq) (*ListRefreshResp, error)
	// RevokeRefresh revokes the refresh token for the provided user-client pair.
	//
	// Note that each user-client pair can have only one refresh token at a time.
	RevokeRefresh(context.Context, *RevokeRefreshReq) (*RevokeRefreshResp, error)
	// VerifyPassword returns whether a password matches a hash for a specific email or not.
	VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordResp, error)
	// contains filtered or unexported methods
}

DexServer is the server API for Dex service. All implementations must embed UnimplementedDexServer for forward compatibility.

Dex represents the dex gRPC service.

type DiscoveryReq

type DiscoveryReq struct {
	// contains filtered or unexported fields
}

DiscoveryReq is a request to fetch discover information.

func (*DiscoveryReq) Descriptor deprecated

func (*DiscoveryReq) Descriptor() ([]byte, []int)

Deprecated: Use DiscoveryReq.ProtoReflect.Descriptor instead.

func (*DiscoveryReq) ProtoMessage

func (*DiscoveryReq) ProtoMessage()

func (*DiscoveryReq) ProtoReflect

func (x *DiscoveryReq) ProtoReflect() protoreflect.Message

func (*DiscoveryReq) Reset

func (x *DiscoveryReq) Reset()

func (*DiscoveryReq) String

func (x *DiscoveryReq) String() string

type DiscoveryResp

type DiscoveryResp struct {
	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   `` /* 144-byte string literal not displayed */
	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 `` /* 129-byte string literal not displayed */
	SubjectTypesSupported             []string `` /* 127-byte string literal not displayed */
	IdTokenSigningAlgValuesSupported  []string `` /* 166-byte string literal not displayed */
	CodeChallengeMethodsSupported     []string `` /* 153-byte string literal not displayed */
	ScopesSupported                   []string `protobuf:"bytes,13,rep,name=scopes_supported,json=scopesSupported,proto3" json:"scopes_supported,omitempty"`
	TokenEndpointAuthMethodsSupported []string `` /* 167-byte string literal not displayed */
	ClaimsSupported                   []string `protobuf:"bytes,15,rep,name=claims_supported,json=claimsSupported,proto3" json:"claims_supported,omitempty"`
	// contains filtered or unexported fields
}

DiscoverResp holds the version oidc disovery info.

func (*DiscoveryResp) Descriptor deprecated

func (*DiscoveryResp) Descriptor() ([]byte, []int)

Deprecated: Use DiscoveryResp.ProtoReflect.Descriptor instead.

func (*DiscoveryResp) GetAuthorizationEndpoint

func (x *DiscoveryResp) GetAuthorizationEndpoint() string

func (*DiscoveryResp) GetClaimsSupported

func (x *DiscoveryResp) GetClaimsSupported() []string

func (*DiscoveryResp) GetCodeChallengeMethodsSupported

func (x *DiscoveryResp) GetCodeChallengeMethodsSupported() []string

func (*DiscoveryResp) GetDeviceAuthorizationEndpoint

func (x *DiscoveryResp) GetDeviceAuthorizationEndpoint() string

func (*DiscoveryResp) GetGrantTypesSupported

func (x *DiscoveryResp) GetGrantTypesSupported() []string

func (*DiscoveryResp) GetIdTokenSigningAlgValuesSupported

func (x *DiscoveryResp) GetIdTokenSigningAlgValuesSupported() []string

func (*DiscoveryResp) GetIntrospectionEndpoint

func (x *DiscoveryResp) GetIntrospectionEndpoint() string

func (*DiscoveryResp) GetIssuer

func (x *DiscoveryResp) GetIssuer() string

func (*DiscoveryResp) GetJwksUri

func (x *DiscoveryResp) GetJwksUri() string

func (*DiscoveryResp) GetResponseTypesSupported

func (x *DiscoveryResp) GetResponseTypesSupported() []string

func (*DiscoveryResp) GetScopesSupported

func (x *DiscoveryResp) GetScopesSupported() []string

func (*DiscoveryResp) GetSubjectTypesSupported

func (x *DiscoveryResp) GetSubjectTypesSupported() []string

func (*DiscoveryResp) GetTokenEndpoint

func (x *DiscoveryResp) GetTokenEndpoint() string

func (*DiscoveryResp) GetTokenEndpointAuthMethodsSupported

func (x *DiscoveryResp) GetTokenEndpointAuthMethodsSupported() []string

func (*DiscoveryResp) GetUserinfoEndpoint

func (x *DiscoveryResp) GetUserinfoEndpoint() string

func (*DiscoveryResp) ProtoMessage

func (*DiscoveryResp) ProtoMessage()

func (*DiscoveryResp) ProtoReflect

func (x *DiscoveryResp) ProtoReflect() protoreflect.Message

func (*DiscoveryResp) Reset

func (x *DiscoveryResp) Reset()

func (*DiscoveryResp) String

func (x *DiscoveryResp) String() string

type GetClientReq

type GetClientReq struct {

	// The ID of the client.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetClientReq is a request to retrieve client details.

func (*GetClientReq) Descriptor deprecated

func (*GetClientReq) Descriptor() ([]byte, []int)

Deprecated: Use GetClientReq.ProtoReflect.Descriptor instead.

func (*GetClientReq) GetId

func (x *GetClientReq) GetId() string

func (*GetClientReq) ProtoMessage

func (*GetClientReq) ProtoMessage()

func (*GetClientReq) ProtoReflect

func (x *GetClientReq) ProtoReflect() protoreflect.Message

func (*GetClientReq) Reset

func (x *GetClientReq) Reset()

func (*GetClientReq) String

func (x *GetClientReq) String() string

type GetClientResp

type GetClientResp struct {
	Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

GetClientResp returns the client details.

func (*GetClientResp) Descriptor deprecated

func (*GetClientResp) Descriptor() ([]byte, []int)

Deprecated: Use GetClientResp.ProtoReflect.Descriptor instead.

func (*GetClientResp) GetClient

func (x *GetClientResp) GetClient() *Client

func (*GetClientResp) ProtoMessage

func (*GetClientResp) ProtoMessage()

func (*GetClientResp) ProtoReflect

func (x *GetClientResp) ProtoReflect() protoreflect.Message

func (*GetClientResp) Reset

func (x *GetClientResp) Reset()

func (*GetClientResp) String

func (x *GetClientResp) String() string

type ListClientReq

type ListClientReq struct {
	// contains filtered or unexported fields
}

ListClientReq is a request to enumerate clients.

func (*ListClientReq) Descriptor deprecated

func (*ListClientReq) Descriptor() ([]byte, []int)

Deprecated: Use ListClientReq.ProtoReflect.Descriptor instead.

func (*ListClientReq) ProtoMessage

func (*ListClientReq) ProtoMessage()

func (*ListClientReq) ProtoReflect

func (x *ListClientReq) ProtoReflect() protoreflect.Message

func (*ListClientReq) Reset

func (x *ListClientReq) Reset()

func (*ListClientReq) String

func (x *ListClientReq) String() string

type ListClientResp

type ListClientResp struct {
	Clients []*ClientInfo `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
	// contains filtered or unexported fields
}

ListClientResp returns a list of clients.

func (*ListClientResp) Descriptor deprecated

func (*ListClientResp) Descriptor() ([]byte, []int)

Deprecated: Use ListClientResp.ProtoReflect.Descriptor instead.

func (*ListClientResp) GetClients

func (x *ListClientResp) GetClients() []*ClientInfo

func (*ListClientResp) ProtoMessage

func (*ListClientResp) ProtoMessage()

func (*ListClientResp) ProtoReflect

func (x *ListClientResp) ProtoReflect() protoreflect.Message

func (*ListClientResp) Reset

func (x *ListClientResp) Reset()

func (*ListClientResp) String

func (x *ListClientResp) String() string

type ListConnectorReq

type ListConnectorReq struct {
	// contains filtered or unexported fields
}

ListConnectorReq is a request to enumerate connectors.

func (*ListConnectorReq) Descriptor deprecated

func (*ListConnectorReq) Descriptor() ([]byte, []int)

Deprecated: Use ListConnectorReq.ProtoReflect.Descriptor instead.

func (*ListConnectorReq) ProtoMessage

func (*ListConnectorReq) ProtoMessage()

func (*ListConnectorReq) ProtoReflect

func (x *ListConnectorReq) ProtoReflect() protoreflect.Message

func (*ListConnectorReq) Reset

func (x *ListConnectorReq) Reset()

func (*ListConnectorReq) String

func (x *ListConnectorReq) String() string

type ListConnectorResp

type ListConnectorResp struct {
	Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"`
	// contains filtered or unexported fields
}

ListConnectorResp returns a list of connectors.

func (*ListConnectorResp) Descriptor deprecated

func (*ListConnectorResp) Descriptor() ([]byte, []int)

Deprecated: Use ListConnectorResp.ProtoReflect.Descriptor instead.

func (*ListConnectorResp) GetConnectors

func (x *ListConnectorResp) GetConnectors() []*Connector

func (*ListConnectorResp) ProtoMessage

func (*ListConnectorResp) ProtoMessage()

func (*ListConnectorResp) ProtoReflect

func (x *ListConnectorResp) ProtoReflect() protoreflect.Message

func (*ListConnectorResp) Reset

func (x *ListConnectorResp) Reset()

func (*ListConnectorResp) String

func (x *ListConnectorResp) String() string

type ListPasswordReq

type ListPasswordReq struct {
	// contains filtered or unexported fields
}

ListPasswordReq is a request to enumerate passwords.

func (*ListPasswordReq) Descriptor deprecated

func (*ListPasswordReq) Descriptor() ([]byte, []int)

Deprecated: Use ListPasswordReq.ProtoReflect.Descriptor instead.

func (*ListPasswordReq) ProtoMessage

func (*ListPasswordReq) ProtoMessage()

func (*ListPasswordReq) ProtoReflect

func (x *ListPasswordReq) ProtoReflect() protoreflect.Message

func (*ListPasswordReq) Reset

func (x *ListPasswordReq) Reset()

func (*ListPasswordReq) String

func (x *ListPasswordReq) String() string

type ListPasswordResp

type ListPasswordResp struct {
	Passwords []*Password `protobuf:"bytes,1,rep,name=passwords,proto3" json:"passwords,omitempty"`
	// contains filtered or unexported fields
}

ListPasswordResp returns a list of passwords.

func (*ListPasswordResp) Descriptor deprecated

func (*ListPasswordResp) Descriptor() ([]byte, []int)

Deprecated: Use ListPasswordResp.ProtoReflect.Descriptor instead.

func (*ListPasswordResp) GetPasswords

func (x *ListPasswordResp) GetPasswords() []*Password

func (*ListPasswordResp) ProtoMessage

func (*ListPasswordResp) ProtoMessage()

func (*ListPasswordResp) ProtoReflect

func (x *ListPasswordResp) ProtoReflect() protoreflect.Message

func (*ListPasswordResp) Reset

func (x *ListPasswordResp) Reset()

func (*ListPasswordResp) String

func (x *ListPasswordResp) String() string

type ListRefreshReq

type ListRefreshReq struct {

	// The "sub" claim returned in the ID Token.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

ListRefreshReq is a request to enumerate the refresh tokens of a user.

func (*ListRefreshReq) Descriptor deprecated

func (*ListRefreshReq) Descriptor() ([]byte, []int)

Deprecated: Use ListRefreshReq.ProtoReflect.Descriptor instead.

func (*ListRefreshReq) GetUserId

func (x *ListRefreshReq) GetUserId() string

func (*ListRefreshReq) ProtoMessage

func (*ListRefreshReq) ProtoMessage()

func (*ListRefreshReq) ProtoReflect

func (x *ListRefreshReq) ProtoReflect() protoreflect.Message

func (*ListRefreshReq) Reset

func (x *ListRefreshReq) Reset()

func (*ListRefreshReq) String

func (x *ListRefreshReq) String() string

type ListRefreshResp

type ListRefreshResp struct {
	RefreshTokens []*RefreshTokenRef `protobuf:"bytes,1,rep,name=refresh_tokens,json=refreshTokens,proto3" json:"refresh_tokens,omitempty"`
	// contains filtered or unexported fields
}

ListRefreshResp returns a list of refresh tokens for a user.

func (*ListRefreshResp) Descriptor deprecated

func (*ListRefreshResp) Descriptor() ([]byte, []int)

Deprecated: Use ListRefreshResp.ProtoReflect.Descriptor instead.

func (*ListRefreshResp) GetRefreshTokens

func (x *ListRefreshResp) GetRefreshTokens() []*RefreshTokenRef

func (*ListRefreshResp) ProtoMessage

func (*ListRefreshResp) ProtoMessage()

func (*ListRefreshResp) ProtoReflect

func (x *ListRefreshResp) ProtoReflect() protoreflect.Message

func (*ListRefreshResp) Reset

func (x *ListRefreshResp) Reset()

func (*ListRefreshResp) String

func (x *ListRefreshResp) String() string

type Password

type Password struct {
	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"`
	// contains filtered or unexported fields
}

Password is an email for password mapping managed by the storage.

func (*Password) Descriptor deprecated

func (*Password) Descriptor() ([]byte, []int)

Deprecated: Use Password.ProtoReflect.Descriptor instead.

func (*Password) GetEmail

func (x *Password) GetEmail() string

func (*Password) GetHash

func (x *Password) GetHash() []byte

func (*Password) GetUserId

func (x *Password) GetUserId() string

func (*Password) GetUsername

func (x *Password) GetUsername() string

func (*Password) ProtoMessage

func (*Password) ProtoMessage()

func (*Password) ProtoReflect

func (x *Password) ProtoReflect() protoreflect.Message

func (*Password) Reset

func (x *Password) Reset()

func (*Password) String

func (x *Password) String() string

type RefreshTokenRef

type RefreshTokenRef struct {

	// 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"`
	// contains filtered or unexported fields
}

RefreshTokenRef contains the metadata for a refresh token that is managed by the storage.

func (*RefreshTokenRef) Descriptor deprecated

func (*RefreshTokenRef) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenRef.ProtoReflect.Descriptor instead.

func (*RefreshTokenRef) GetClientId

func (x *RefreshTokenRef) GetClientId() string

func (*RefreshTokenRef) GetCreatedAt

func (x *RefreshTokenRef) GetCreatedAt() int64

func (*RefreshTokenRef) GetId

func (x *RefreshTokenRef) GetId() string

func (*RefreshTokenRef) GetLastUsed

func (x *RefreshTokenRef) GetLastUsed() int64

func (*RefreshTokenRef) ProtoMessage

func (*RefreshTokenRef) ProtoMessage()

func (*RefreshTokenRef) ProtoReflect

func (x *RefreshTokenRef) ProtoReflect() protoreflect.Message

func (*RefreshTokenRef) Reset

func (x *RefreshTokenRef) Reset()

func (*RefreshTokenRef) String

func (x *RefreshTokenRef) String() string

type RevokeRefreshReq

type RevokeRefreshReq struct {

	// 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"`
	// contains filtered or unexported fields
}

RevokeRefreshReq is a request to revoke the refresh token of the user-client pair.

func (*RevokeRefreshReq) Descriptor deprecated

func (*RevokeRefreshReq) Descriptor() ([]byte, []int)

Deprecated: Use RevokeRefreshReq.ProtoReflect.Descriptor instead.

func (*RevokeRefreshReq) GetClientId

func (x *RevokeRefreshReq) GetClientId() string

func (*RevokeRefreshReq) GetUserId

func (x *RevokeRefreshReq) GetUserId() string

func (*RevokeRefreshReq) ProtoMessage

func (*RevokeRefreshReq) ProtoMessage()

func (*RevokeRefreshReq) ProtoReflect

func (x *RevokeRefreshReq) ProtoReflect() protoreflect.Message

func (*RevokeRefreshReq) Reset

func (x *RevokeRefreshReq) Reset()

func (*RevokeRefreshReq) String

func (x *RevokeRefreshReq) String() string

type RevokeRefreshResp

type RevokeRefreshResp struct {

	// 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"`
	// contains filtered or unexported fields
}

RevokeRefreshResp determines if the refresh token is revoked successfully.

func (*RevokeRefreshResp) Descriptor deprecated

func (*RevokeRefreshResp) Descriptor() ([]byte, []int)

Deprecated: Use RevokeRefreshResp.ProtoReflect.Descriptor instead.

func (*RevokeRefreshResp) GetNotFound

func (x *RevokeRefreshResp) GetNotFound() bool

func (*RevokeRefreshResp) ProtoMessage

func (*RevokeRefreshResp) ProtoMessage()

func (*RevokeRefreshResp) ProtoReflect

func (x *RevokeRefreshResp) ProtoReflect() protoreflect.Message

func (*RevokeRefreshResp) Reset

func (x *RevokeRefreshResp) Reset()

func (*RevokeRefreshResp) String

func (x *RevokeRefreshResp) String() string

type UnimplementedDexServer

type UnimplementedDexServer struct{}

UnimplementedDexServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDexServer) CreateClient

func (UnimplementedDexServer) CreateConnector

func (UnimplementedDexServer) CreatePassword

func (UnimplementedDexServer) DeleteClient

func (UnimplementedDexServer) DeleteConnector

func (UnimplementedDexServer) DeletePassword

func (UnimplementedDexServer) GetClient

func (UnimplementedDexServer) GetDiscovery

func (UnimplementedDexServer) GetVersion

func (UnimplementedDexServer) ListClients

func (UnimplementedDexServer) ListConnectors

func (UnimplementedDexServer) ListPasswords

func (UnimplementedDexServer) ListRefresh

func (UnimplementedDexServer) RevokeRefresh

func (UnimplementedDexServer) UpdateClient

func (UnimplementedDexServer) UpdateConnector

func (UnimplementedDexServer) UpdatePassword

func (UnimplementedDexServer) VerifyPassword

type UnsafeDexServer

type UnsafeDexServer interface {
	// contains filtered or unexported methods
}

UnsafeDexServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DexServer will result in compilation errors.

type UpdateClientReq

type UpdateClientReq struct {
	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"`
	// contains filtered or unexported fields
}

UpdateClientReq is a request to update an existing client.

func (*UpdateClientReq) Descriptor deprecated

func (*UpdateClientReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClientReq.ProtoReflect.Descriptor instead.

func (*UpdateClientReq) GetId

func (x *UpdateClientReq) GetId() string

func (*UpdateClientReq) GetLogoUrl

func (x *UpdateClientReq) GetLogoUrl() string

func (*UpdateClientReq) GetName

func (x *UpdateClientReq) GetName() string

func (*UpdateClientReq) GetRedirectUris

func (x *UpdateClientReq) GetRedirectUris() []string

func (*UpdateClientReq) GetTrustedPeers

func (x *UpdateClientReq) GetTrustedPeers() []string

func (*UpdateClientReq) ProtoMessage

func (*UpdateClientReq) ProtoMessage()

func (*UpdateClientReq) ProtoReflect

func (x *UpdateClientReq) ProtoReflect() protoreflect.Message

func (*UpdateClientReq) Reset

func (x *UpdateClientReq) Reset()

func (*UpdateClientReq) String

func (x *UpdateClientReq) String() string

type UpdateClientResp

type UpdateClientResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdateClientResp returns the response from updating a client.

func (*UpdateClientResp) Descriptor deprecated

func (*UpdateClientResp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClientResp.ProtoReflect.Descriptor instead.

func (*UpdateClientResp) GetNotFound

func (x *UpdateClientResp) GetNotFound() bool

func (*UpdateClientResp) ProtoMessage

func (*UpdateClientResp) ProtoMessage()

func (*UpdateClientResp) ProtoReflect

func (x *UpdateClientResp) ProtoReflect() protoreflect.Message

func (*UpdateClientResp) Reset

func (x *UpdateClientResp) Reset()

func (*UpdateClientResp) String

func (x *UpdateClientResp) String() string

type UpdateConnectorReq

type UpdateConnectorReq struct {

	// 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"`
	// contains filtered or unexported fields
}

UpdateConnectorReq is a request to modify an existing connector.

func (*UpdateConnectorReq) Descriptor deprecated

func (*UpdateConnectorReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateConnectorReq.ProtoReflect.Descriptor instead.

func (*UpdateConnectorReq) GetId

func (x *UpdateConnectorReq) GetId() string

func (*UpdateConnectorReq) GetNewConfig

func (x *UpdateConnectorReq) GetNewConfig() []byte

func (*UpdateConnectorReq) GetNewName

func (x *UpdateConnectorReq) GetNewName() string

func (*UpdateConnectorReq) GetNewType

func (x *UpdateConnectorReq) GetNewType() string

func (*UpdateConnectorReq) ProtoMessage

func (*UpdateConnectorReq) ProtoMessage()

func (*UpdateConnectorReq) ProtoReflect

func (x *UpdateConnectorReq) ProtoReflect() protoreflect.Message

func (*UpdateConnectorReq) Reset

func (x *UpdateConnectorReq) Reset()

func (*UpdateConnectorReq) String

func (x *UpdateConnectorReq) String() string

type UpdateConnectorResp

type UpdateConnectorResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdateConnectorResp returns the response from modifying an existing connector.

func (*UpdateConnectorResp) Descriptor deprecated

func (*UpdateConnectorResp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateConnectorResp.ProtoReflect.Descriptor instead.

func (*UpdateConnectorResp) GetNotFound

func (x *UpdateConnectorResp) GetNotFound() bool

func (*UpdateConnectorResp) ProtoMessage

func (*UpdateConnectorResp) ProtoMessage()

func (*UpdateConnectorResp) ProtoReflect

func (x *UpdateConnectorResp) ProtoReflect() protoreflect.Message

func (*UpdateConnectorResp) Reset

func (x *UpdateConnectorResp) Reset()

func (*UpdateConnectorResp) String

func (x *UpdateConnectorResp) String() string

type UpdatePasswordReq

type UpdatePasswordReq struct {

	// 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"`
	// contains filtered or unexported fields
}

UpdatePasswordReq is a request to modify an existing password.

func (*UpdatePasswordReq) Descriptor deprecated

func (*UpdatePasswordReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePasswordReq.ProtoReflect.Descriptor instead.

func (*UpdatePasswordReq) GetEmail

func (x *UpdatePasswordReq) GetEmail() string

func (*UpdatePasswordReq) GetNewHash

func (x *UpdatePasswordReq) GetNewHash() []byte

func (*UpdatePasswordReq) GetNewUsername

func (x *UpdatePasswordReq) GetNewUsername() string

func (*UpdatePasswordReq) ProtoMessage

func (*UpdatePasswordReq) ProtoMessage()

func (*UpdatePasswordReq) ProtoReflect

func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message

func (*UpdatePasswordReq) Reset

func (x *UpdatePasswordReq) Reset()

func (*UpdatePasswordReq) String

func (x *UpdatePasswordReq) String() string

type UpdatePasswordResp

type UpdatePasswordResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdatePasswordResp returns the response from modifying an existing password.

func (*UpdatePasswordResp) Descriptor deprecated

func (*UpdatePasswordResp) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePasswordResp.ProtoReflect.Descriptor instead.

func (*UpdatePasswordResp) GetNotFound

func (x *UpdatePasswordResp) GetNotFound() bool

func (*UpdatePasswordResp) ProtoMessage

func (*UpdatePasswordResp) ProtoMessage()

func (*UpdatePasswordResp) ProtoReflect

func (x *UpdatePasswordResp) ProtoReflect() protoreflect.Message

func (*UpdatePasswordResp) Reset

func (x *UpdatePasswordResp) Reset()

func (*UpdatePasswordResp) String

func (x *UpdatePasswordResp) String() string

type VerifyPasswordReq

type VerifyPasswordReq struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyPasswordReq) Descriptor deprecated

func (*VerifyPasswordReq) Descriptor() ([]byte, []int)

Deprecated: Use VerifyPasswordReq.ProtoReflect.Descriptor instead.

func (*VerifyPasswordReq) GetEmail

func (x *VerifyPasswordReq) GetEmail() string

func (*VerifyPasswordReq) GetPassword

func (x *VerifyPasswordReq) GetPassword() string

func (*VerifyPasswordReq) ProtoMessage

func (*VerifyPasswordReq) ProtoMessage()

func (*VerifyPasswordReq) ProtoReflect

func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message

func (*VerifyPasswordReq) Reset

func (x *VerifyPasswordReq) Reset()

func (*VerifyPasswordReq) String

func (x *VerifyPasswordReq) String() string

type VerifyPasswordResp

type VerifyPasswordResp struct {
	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"`
	// contains filtered or unexported fields
}

func (*VerifyPasswordResp) Descriptor deprecated

func (*VerifyPasswordResp) Descriptor() ([]byte, []int)

Deprecated: Use VerifyPasswordResp.ProtoReflect.Descriptor instead.

func (*VerifyPasswordResp) GetNotFound

func (x *VerifyPasswordResp) GetNotFound() bool

func (*VerifyPasswordResp) GetVerified

func (x *VerifyPasswordResp) GetVerified() bool

func (*VerifyPasswordResp) ProtoMessage

func (*VerifyPasswordResp) ProtoMessage()

func (*VerifyPasswordResp) ProtoReflect

func (x *VerifyPasswordResp) ProtoReflect() protoreflect.Message

func (*VerifyPasswordResp) Reset

func (x *VerifyPasswordResp) Reset()

func (*VerifyPasswordResp) String

func (x *VerifyPasswordResp) String() string

type VersionReq

type VersionReq struct {
	// contains filtered or unexported fields
}

VersionReq is a request to fetch version info.

func (*VersionReq) Descriptor deprecated

func (*VersionReq) Descriptor() ([]byte, []int)

Deprecated: Use VersionReq.ProtoReflect.Descriptor instead.

func (*VersionReq) ProtoMessage

func (*VersionReq) ProtoMessage()

func (*VersionReq) ProtoReflect

func (x *VersionReq) ProtoReflect() protoreflect.Message

func (*VersionReq) Reset

func (x *VersionReq) Reset()

func (*VersionReq) String

func (x *VersionReq) String() string

type VersionResp

type VersionResp struct {

	// 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"`
	// contains filtered or unexported fields
}

VersionResp holds the version info of components.

func (*VersionResp) Descriptor deprecated

func (*VersionResp) Descriptor() ([]byte, []int)

Deprecated: Use VersionResp.ProtoReflect.Descriptor instead.

func (*VersionResp) GetApi

func (x *VersionResp) GetApi() int32

func (*VersionResp) GetServer

func (x *VersionResp) GetServer() string

func (*VersionResp) ProtoMessage

func (*VersionResp) ProtoMessage()

func (*VersionResp) ProtoReflect

func (x *VersionResp) ProtoReflect() protoreflect.Message

func (*VersionResp) Reset

func (x *VersionResp) Reset()

func (*VersionResp) String

func (x *VersionResp) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL