Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDexServer(s grpc.ServiceRegistrar, srv DexServer)
- type Client
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetId() string
- func (x *Client) GetLogoUrl() string
- func (x *Client) GetName() string
- func (x *Client) GetPublic() bool
- func (x *Client) GetRedirectUris() []string
- func (x *Client) GetSecret() string
- func (x *Client) GetTrustedPeers() []string
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (x *Client) Reset()
- func (x *Client) String() string
- type CreateClientReq
- type CreateClientResp
- func (*CreateClientResp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateClientResp) GetAlreadyExists() bool
- func (x *CreateClientResp) GetClient() *Client
- func (*CreateClientResp) ProtoMessage()
- func (x *CreateClientResp) ProtoReflect() protoreflect.Message
- func (x *CreateClientResp) Reset()
- func (x *CreateClientResp) String() string
- type CreatePasswordReq
- func (*CreatePasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePasswordReq) GetPassword() *Password
- func (*CreatePasswordReq) ProtoMessage()
- func (x *CreatePasswordReq) ProtoReflect() protoreflect.Message
- func (x *CreatePasswordReq) Reset()
- func (x *CreatePasswordReq) String() string
- type CreatePasswordResp
- func (*CreatePasswordResp) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePasswordResp) GetAlreadyExists() bool
- func (*CreatePasswordResp) ProtoMessage()
- func (x *CreatePasswordResp) ProtoReflect() protoreflect.Message
- func (x *CreatePasswordResp) Reset()
- func (x *CreatePasswordResp) String() string
- type DeleteClientReq
- type DeleteClientResp
- type DeletePasswordReq
- type DeletePasswordResp
- func (*DeletePasswordResp) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePasswordResp) GetNotFound() bool
- func (*DeletePasswordResp) ProtoMessage()
- func (x *DeletePasswordResp) ProtoReflect() protoreflect.Message
- func (x *DeletePasswordResp) Reset()
- func (x *DeletePasswordResp) String() string
- type DexClient
- type DexServer
- type ListPasswordReq
- type ListPasswordResp
- type ListRefreshReq
- type ListRefreshResp
- func (*ListRefreshResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListRefreshResp) GetRefreshTokens() []*RefreshTokenRef
- func (*ListRefreshResp) ProtoMessage()
- func (x *ListRefreshResp) ProtoReflect() protoreflect.Message
- func (x *ListRefreshResp) Reset()
- func (x *ListRefreshResp) String() string
- type Password
- func (*Password) Descriptor() ([]byte, []int)deprecated
- func (x *Password) GetEmail() string
- func (x *Password) GetHash() []byte
- func (x *Password) GetUserId() string
- func (x *Password) GetUsername() string
- func (*Password) ProtoMessage()
- func (x *Password) ProtoReflect() protoreflect.Message
- func (x *Password) Reset()
- func (x *Password) String() string
- type RefreshTokenRef
- func (*RefreshTokenRef) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRef) GetClientId() string
- func (x *RefreshTokenRef) GetCreatedAt() int64
- func (x *RefreshTokenRef) GetId() string
- func (x *RefreshTokenRef) GetLastUsed() int64
- func (*RefreshTokenRef) ProtoMessage()
- func (x *RefreshTokenRef) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRef) Reset()
- func (x *RefreshTokenRef) String() string
- type RevokeRefreshReq
- func (*RevokeRefreshReq) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRefreshReq) GetClientId() string
- func (x *RevokeRefreshReq) GetUserId() string
- func (*RevokeRefreshReq) ProtoMessage()
- func (x *RevokeRefreshReq) ProtoReflect() protoreflect.Message
- func (x *RevokeRefreshReq) Reset()
- func (x *RevokeRefreshReq) String() string
- type RevokeRefreshResp
- type UnimplementedDexServer
- func (UnimplementedDexServer) CreateClient(context.Context, *CreateClientReq) (*CreateClientResp, error)
- func (UnimplementedDexServer) CreatePassword(context.Context, *CreatePasswordReq) (*CreatePasswordResp, error)
- func (UnimplementedDexServer) DeleteClient(context.Context, *DeleteClientReq) (*DeleteClientResp, error)
- func (UnimplementedDexServer) DeletePassword(context.Context, *DeletePasswordReq) (*DeletePasswordResp, error)
- func (UnimplementedDexServer) GetVersion(context.Context, *VersionReq) (*VersionResp, error)
- func (UnimplementedDexServer) ListPasswords(context.Context, *ListPasswordReq) (*ListPasswordResp, error)
- func (UnimplementedDexServer) ListRefresh(context.Context, *ListRefreshReq) (*ListRefreshResp, error)
- func (UnimplementedDexServer) RevokeRefresh(context.Context, *RevokeRefreshReq) (*RevokeRefreshResp, error)
- func (UnimplementedDexServer) UpdateClient(context.Context, *UpdateClientReq) (*UpdateClientResp, error)
- func (UnimplementedDexServer) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error)
- func (UnimplementedDexServer) VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordResp, error)
- type UnsafeDexServer
- type UpdateClientReq
- func (*UpdateClientReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateClientReq) GetId() string
- func (x *UpdateClientReq) GetLogoUrl() string
- func (x *UpdateClientReq) GetName() string
- func (x *UpdateClientReq) GetRedirectUris() []string
- func (x *UpdateClientReq) GetTrustedPeers() []string
- func (*UpdateClientReq) ProtoMessage()
- func (x *UpdateClientReq) ProtoReflect() protoreflect.Message
- func (x *UpdateClientReq) Reset()
- func (x *UpdateClientReq) String() string
- type UpdateClientResp
- type UpdatePasswordReq
- func (*UpdatePasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordReq) GetEmail() string
- func (x *UpdatePasswordReq) GetNewHash() []byte
- func (x *UpdatePasswordReq) GetNewUsername() string
- func (*UpdatePasswordReq) ProtoMessage()
- func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordReq) Reset()
- func (x *UpdatePasswordReq) String() string
- type UpdatePasswordResp
- func (*UpdatePasswordResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordResp) GetNotFound() bool
- func (*UpdatePasswordResp) ProtoMessage()
- func (x *UpdatePasswordResp) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordResp) Reset()
- func (x *UpdatePasswordResp) String() string
- type VerifyPasswordReq
- func (*VerifyPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordReq) GetEmail() string
- func (x *VerifyPasswordReq) GetPassword() string
- func (*VerifyPasswordReq) ProtoMessage()
- func (x *VerifyPasswordReq) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordReq) Reset()
- func (x *VerifyPasswordReq) String() string
- type VerifyPasswordResp
- func (*VerifyPasswordResp) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyPasswordResp) GetNotFound() bool
- func (x *VerifyPasswordResp) GetVerified() bool
- func (*VerifyPasswordResp) ProtoMessage()
- func (x *VerifyPasswordResp) ProtoReflect() protoreflect.Message
- func (x *VerifyPasswordResp) Reset()
- func (x *VerifyPasswordResp) String() string
- type VersionReq
- type VersionResp
Constants ¶
const ( Dex_CreateClient_FullMethodName = "/api.Dex/CreateClient" Dex_UpdateClient_FullMethodName = "/api.Dex/UpdateClient" Dex_DeleteClient_FullMethodName = "/api.Dex/DeleteClient" 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_GetVersion_FullMethodName = "/api.Dex/GetVersion" Dex_ListRefresh_FullMethodName = "/api.Dex/ListRefresh" Dex_RevokeRefresh_FullMethodName = "/api.Dex/RevokeRefresh" Dex_VerifyPassword_FullMethodName = "/api.Dex/VerifyPassword" )
Variables ¶
var Dex_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.Dex", HandlerType: (*DexServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateClient", Handler: _Dex_CreateClient_Handler, }, { MethodName: "UpdateClient", Handler: _Dex_UpdateClient_Handler, }, { MethodName: "DeleteClient", Handler: _Dex_DeleteClient_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: "GetVersion", Handler: _Dex_GetVersion_Handler, }, { MethodName: "ListRefresh", Handler: _Dex_ListRefresh_Handler, }, { MethodName: "RevokeRefresh", Handler: _Dex_RevokeRefresh_Handler, }, { MethodName: "VerifyPassword", Handler: _Dex_VerifyPassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/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)
var File_api_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) GetLogoUrl ¶
func (*Client) GetRedirectUris ¶
func (*Client) GetTrustedPeers ¶
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) ProtoReflect ¶
func (x *Client) ProtoReflect() protoreflect.Message
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 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 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 { // 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) // 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) // GetVersion returns version information of the server. GetVersion(ctx context.Context, in *VersionReq, opts ...grpc.CallOption) (*VersionResp, 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.
func NewDexClient ¶
func NewDexClient(cc grpc.ClientConnInterface) DexClient
type DexServer ¶
type DexServer interface { // 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) // 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) // GetVersion returns version information of the server. GetVersion(context.Context, *VersionReq) (*VersionResp, 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
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) GetUsername ¶
func (*Password) ProtoMessage ¶
func (*Password) ProtoMessage()
func (*Password) ProtoReflect ¶
func (x *Password) ProtoReflect() protoreflect.Message
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.
func (UnimplementedDexServer) CreateClient ¶
func (UnimplementedDexServer) CreateClient(context.Context, *CreateClientReq) (*CreateClientResp, error)
func (UnimplementedDexServer) CreatePassword ¶
func (UnimplementedDexServer) CreatePassword(context.Context, *CreatePasswordReq) (*CreatePasswordResp, error)
func (UnimplementedDexServer) DeleteClient ¶
func (UnimplementedDexServer) DeleteClient(context.Context, *DeleteClientReq) (*DeleteClientResp, error)
func (UnimplementedDexServer) DeletePassword ¶
func (UnimplementedDexServer) DeletePassword(context.Context, *DeletePasswordReq) (*DeletePasswordResp, error)
func (UnimplementedDexServer) GetVersion ¶
func (UnimplementedDexServer) GetVersion(context.Context, *VersionReq) (*VersionResp, error)
func (UnimplementedDexServer) ListPasswords ¶
func (UnimplementedDexServer) ListPasswords(context.Context, *ListPasswordReq) (*ListPasswordResp, error)
func (UnimplementedDexServer) ListRefresh ¶
func (UnimplementedDexServer) ListRefresh(context.Context, *ListRefreshReq) (*ListRefreshResp, error)
func (UnimplementedDexServer) RevokeRefresh ¶
func (UnimplementedDexServer) RevokeRefresh(context.Context, *RevokeRefreshReq) (*RevokeRefreshResp, error)
func (UnimplementedDexServer) UpdateClient ¶
func (UnimplementedDexServer) UpdateClient(context.Context, *UpdateClientReq) (*UpdateClientResp, error)
func (UnimplementedDexServer) UpdatePassword ¶
func (UnimplementedDexServer) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error)
func (UnimplementedDexServer) VerifyPassword ¶
func (UnimplementedDexServer) VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordResp, error)
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 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