Documentation
¶
Overview ¶
Package auth is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
- func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type AwaitPublicKeyConfirmationRequest
- func (m *AwaitPublicKeyConfirmationRequest) CloneMessageVT() proto.Message
- func (m *AwaitPublicKeyConfirmationRequest) CloneVT() *AwaitPublicKeyConfirmationRequest
- func (*AwaitPublicKeyConfirmationRequest) Descriptor() ([]byte, []int)deprecated
- func (this *AwaitPublicKeyConfirmationRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *AwaitPublicKeyConfirmationRequest) EqualVT(that *AwaitPublicKeyConfirmationRequest) bool
- func (x *AwaitPublicKeyConfirmationRequest) GetPublicKeyId() string
- func (m *AwaitPublicKeyConfirmationRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AwaitPublicKeyConfirmationRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *AwaitPublicKeyConfirmationRequest) MarshalVT() (dAtA []byte, err error)
- func (*AwaitPublicKeyConfirmationRequest) ProtoMessage()
- func (x *AwaitPublicKeyConfirmationRequest) ProtoReflect() protoreflect.Message
- func (x *AwaitPublicKeyConfirmationRequest) Reset()
- func (m *AwaitPublicKeyConfirmationRequest) SizeVT() (n int)
- func (x *AwaitPublicKeyConfirmationRequest) String() string
- func (m *AwaitPublicKeyConfirmationRequest) UnmarshalVT(dAtA []byte) error
- type ConfirmPublicKeyRequest
- func (m *ConfirmPublicKeyRequest) CloneMessageVT() proto.Message
- func (m *ConfirmPublicKeyRequest) CloneVT() *ConfirmPublicKeyRequest
- func (*ConfirmPublicKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (this *ConfirmPublicKeyRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *ConfirmPublicKeyRequest) EqualVT(that *ConfirmPublicKeyRequest) bool
- func (x *ConfirmPublicKeyRequest) GetPublicKeyId() string
- func (m *ConfirmPublicKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ConfirmPublicKeyRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ConfirmPublicKeyRequest) MarshalVT() (dAtA []byte, err error)
- func (*ConfirmPublicKeyRequest) ProtoMessage()
- func (x *ConfirmPublicKeyRequest) ProtoReflect() protoreflect.Message
- func (x *ConfirmPublicKeyRequest) Reset()
- func (m *ConfirmPublicKeyRequest) SizeVT() (n int)
- func (x *ConfirmPublicKeyRequest) String() string
- func (m *ConfirmPublicKeyRequest) UnmarshalVT(dAtA []byte) error
- type Identity
- func (m *Identity) CloneMessageVT() proto.Message
- func (m *Identity) CloneVT() *Identity
- func (*Identity) Descriptor() ([]byte, []int)deprecated
- func (this *Identity) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Identity) EqualVT(that *Identity) bool
- func (x *Identity) GetEmail() string
- func (m *Identity) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Identity) MarshalToVT(dAtA []byte) (int, error)
- func (m *Identity) MarshalVT() (dAtA []byte, err error)
- func (*Identity) ProtoMessage()
- func (x *Identity) ProtoReflect() protoreflect.Message
- func (x *Identity) Reset()
- func (m *Identity) SizeVT() (n int)
- func (x *Identity) String() string
- func (m *Identity) UnmarshalVT(dAtA []byte) error
- type PublicKey
- func (m *PublicKey) CloneMessageVT() proto.Message
- func (m *PublicKey) CloneVT() *PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)deprecated
- func (this *PublicKey) EqualMessageVT(thatMsg proto.Message) bool
- func (this *PublicKey) EqualVT(that *PublicKey) bool
- func (x *PublicKey) GetPgpData() []byte
- func (x *PublicKey) GetPlainKey() *PublicKey_Plain
- func (x *PublicKey) GetWebauthnData() []byte
- func (m *PublicKey) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PublicKey) MarshalToVT(dAtA []byte) (int, error)
- func (m *PublicKey) MarshalVT() (dAtA []byte, err error)
- func (*PublicKey) ProtoMessage()
- func (x *PublicKey) ProtoReflect() protoreflect.Message
- func (x *PublicKey) Reset()
- func (m *PublicKey) SizeVT() (n int)
- func (x *PublicKey) String() string
- func (m *PublicKey) UnmarshalVT(dAtA []byte) error
- type PublicKey_Plain
- func (m *PublicKey_Plain) CloneMessageVT() proto.Message
- func (m *PublicKey_Plain) CloneVT() *PublicKey_Plain
- func (*PublicKey_Plain) Descriptor() ([]byte, []int)deprecated
- func (this *PublicKey_Plain) EqualMessageVT(thatMsg proto.Message) bool
- func (this *PublicKey_Plain) EqualVT(that *PublicKey_Plain) bool
- func (x *PublicKey_Plain) GetKeyPem() string
- func (x *PublicKey_Plain) GetNotAfter() *timestamppb.Timestamp
- func (x *PublicKey_Plain) GetNotBefore() *timestamppb.Timestamp
- func (m *PublicKey_Plain) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PublicKey_Plain) MarshalToVT(dAtA []byte) (int, error)
- func (m *PublicKey_Plain) MarshalVT() (dAtA []byte, err error)
- func (*PublicKey_Plain) ProtoMessage()
- func (x *PublicKey_Plain) ProtoReflect() protoreflect.Message
- func (x *PublicKey_Plain) Reset()
- func (m *PublicKey_Plain) SizeVT() (n int)
- func (x *PublicKey_Plain) String() string
- func (m *PublicKey_Plain) UnmarshalVT(dAtA []byte) error
- type RegisterPublicKeyRequest
- func (m *RegisterPublicKeyRequest) CloneMessageVT() proto.Message
- func (m *RegisterPublicKeyRequest) CloneVT() *RegisterPublicKeyRequest
- func (*RegisterPublicKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (this *RegisterPublicKeyRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *RegisterPublicKeyRequest) EqualVT(that *RegisterPublicKeyRequest) bool
- func (x *RegisterPublicKeyRequest) GetIdentity() *Identity
- func (x *RegisterPublicKeyRequest) GetPublicKey() *PublicKey
- func (x *RegisterPublicKeyRequest) GetRole() string
- func (x *RegisterPublicKeyRequest) GetSkipUserRole() bool
- func (m *RegisterPublicKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RegisterPublicKeyRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *RegisterPublicKeyRequest) MarshalVT() (dAtA []byte, err error)
- func (*RegisterPublicKeyRequest) ProtoMessage()
- func (x *RegisterPublicKeyRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterPublicKeyRequest) Reset()
- func (m *RegisterPublicKeyRequest) SizeVT() (n int)
- func (x *RegisterPublicKeyRequest) String() string
- func (m *RegisterPublicKeyRequest) UnmarshalVT(dAtA []byte) error
- type RegisterPublicKeyResponse
- func (m *RegisterPublicKeyResponse) CloneMessageVT() proto.Message
- func (m *RegisterPublicKeyResponse) CloneVT() *RegisterPublicKeyResponse
- func (*RegisterPublicKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (this *RegisterPublicKeyResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *RegisterPublicKeyResponse) EqualVT(that *RegisterPublicKeyResponse) bool
- func (x *RegisterPublicKeyResponse) GetLoginUrl() string
- func (x *RegisterPublicKeyResponse) GetPublicKeyId() string
- func (m *RegisterPublicKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RegisterPublicKeyResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *RegisterPublicKeyResponse) MarshalVT() (dAtA []byte, err error)
- func (*RegisterPublicKeyResponse) ProtoMessage()
- func (x *RegisterPublicKeyResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterPublicKeyResponse) Reset()
- func (m *RegisterPublicKeyResponse) SizeVT() (n int)
- func (x *RegisterPublicKeyResponse) String() string
- func (m *RegisterPublicKeyResponse) UnmarshalVT(dAtA []byte) error
- type RevokePublicKeyRequest
- func (m *RevokePublicKeyRequest) CloneMessageVT() proto.Message
- func (m *RevokePublicKeyRequest) CloneVT() *RevokePublicKeyRequest
- func (*RevokePublicKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (this *RevokePublicKeyRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *RevokePublicKeyRequest) EqualVT(that *RevokePublicKeyRequest) bool
- func (x *RevokePublicKeyRequest) GetPublicKeyId() string
- func (m *RevokePublicKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RevokePublicKeyRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *RevokePublicKeyRequest) MarshalVT() (dAtA []byte, err error)
- func (*RevokePublicKeyRequest) ProtoMessage()
- func (x *RevokePublicKeyRequest) ProtoReflect() protoreflect.Message
- func (x *RevokePublicKeyRequest) Reset()
- func (m *RevokePublicKeyRequest) SizeVT() (n int)
- func (x *RevokePublicKeyRequest) String() string
- func (m *RevokePublicKeyRequest) UnmarshalVT(dAtA []byte) error
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) AwaitPublicKeyConfirmation(context.Context, *AwaitPublicKeyConfirmationRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServiceServer) ConfirmPublicKey(context.Context, *ConfirmPublicKeyRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServiceServer) RegisterPublicKey(context.Context, *RegisterPublicKeyRequest) (*RegisterPublicKeyResponse, error)
- func (UnimplementedAuthServiceServer) RevokePublicKey(context.Context, *RevokePublicKeyRequest) (*emptypb.Empty, error)
- type UnsafeAuthServiceServer
Constants ¶
const ( AuthService_RegisterPublicKey_FullMethodName = "/auth.AuthService/RegisterPublicKey" AuthService_AwaitPublicKeyConfirmation_FullMethodName = "/auth.AuthService/AwaitPublicKeyConfirmation" AuthService_ConfirmPublicKey_FullMethodName = "/auth.AuthService/ConfirmPublicKey" AuthService_RevokePublicKey_FullMethodName = "/auth.AuthService/RevokePublicKey" )
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterPublicKey", Handler: _AuthService_RegisterPublicKey_Handler, }, { MethodName: "AwaitPublicKeyConfirmation", Handler: _AuthService_AwaitPublicKeyConfirmation_Handler, }, { MethodName: "ConfirmPublicKey", Handler: _AuthService_ConfirmPublicKey_Handler, }, { MethodName: "RevokePublicKey", Handler: _AuthService_RevokePublicKey_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceHandler ¶
func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthServiceHandlerClient ¶
func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterAuthServiceHandlerFromEndpoint ¶
func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthServiceHandlerServer ¶
func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface {
RegisterPublicKey(ctx context.Context, in *RegisterPublicKeyRequest, opts ...grpc.CallOption) (*RegisterPublicKeyResponse, error)
AwaitPublicKeyConfirmation(ctx context.Context, in *AwaitPublicKeyConfirmationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
ConfirmPublicKey(ctx context.Context, in *ConfirmPublicKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
RevokePublicKey(ctx context.Context, in *RevokePublicKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface {
RegisterPublicKey(context.Context, *RegisterPublicKeyRequest) (*RegisterPublicKeyResponse, error)
AwaitPublicKeyConfirmation(context.Context, *AwaitPublicKeyConfirmationRequest) (*emptypb.Empty, error)
ConfirmPublicKey(context.Context, *ConfirmPublicKeyRequest) (*emptypb.Empty, error)
RevokePublicKey(context.Context, *RevokePublicKeyRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility.
type AwaitPublicKeyConfirmationRequest ¶
type AwaitPublicKeyConfirmationRequest struct {
PublicKeyId string `protobuf:"bytes,1,opt,name=public_key_id,json=publicKeyId,proto3" json:"public_key_id,omitempty"`
// contains filtered or unexported fields
}
func (*AwaitPublicKeyConfirmationRequest) CloneMessageVT ¶ added in v0.3.10
func (m *AwaitPublicKeyConfirmationRequest) CloneMessageVT() proto.Message
func (*AwaitPublicKeyConfirmationRequest) CloneVT ¶ added in v0.3.10
func (m *AwaitPublicKeyConfirmationRequest) CloneVT() *AwaitPublicKeyConfirmationRequest
func (*AwaitPublicKeyConfirmationRequest) Descriptor
deprecated
func (*AwaitPublicKeyConfirmationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AwaitPublicKeyConfirmationRequest.ProtoReflect.Descriptor instead.
func (*AwaitPublicKeyConfirmationRequest) EqualMessageVT ¶ added in v0.2.3
func (this *AwaitPublicKeyConfirmationRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*AwaitPublicKeyConfirmationRequest) EqualVT ¶ added in v0.2.3
func (this *AwaitPublicKeyConfirmationRequest) EqualVT(that *AwaitPublicKeyConfirmationRequest) bool
func (*AwaitPublicKeyConfirmationRequest) GetPublicKeyId ¶
func (x *AwaitPublicKeyConfirmationRequest) GetPublicKeyId() string
func (*AwaitPublicKeyConfirmationRequest) MarshalToSizedBufferVT ¶
func (m *AwaitPublicKeyConfirmationRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*AwaitPublicKeyConfirmationRequest) MarshalToVT ¶
func (m *AwaitPublicKeyConfirmationRequest) MarshalToVT(dAtA []byte) (int, error)
func (*AwaitPublicKeyConfirmationRequest) MarshalVT ¶
func (m *AwaitPublicKeyConfirmationRequest) MarshalVT() (dAtA []byte, err error)
func (*AwaitPublicKeyConfirmationRequest) ProtoMessage ¶
func (*AwaitPublicKeyConfirmationRequest) ProtoMessage()
func (*AwaitPublicKeyConfirmationRequest) ProtoReflect ¶
func (x *AwaitPublicKeyConfirmationRequest) ProtoReflect() protoreflect.Message
func (*AwaitPublicKeyConfirmationRequest) Reset ¶
func (x *AwaitPublicKeyConfirmationRequest) Reset()
func (*AwaitPublicKeyConfirmationRequest) SizeVT ¶
func (m *AwaitPublicKeyConfirmationRequest) SizeVT() (n int)
func (*AwaitPublicKeyConfirmationRequest) String ¶
func (x *AwaitPublicKeyConfirmationRequest) String() string
func (*AwaitPublicKeyConfirmationRequest) UnmarshalVT ¶
func (m *AwaitPublicKeyConfirmationRequest) UnmarshalVT(dAtA []byte) error
type ConfirmPublicKeyRequest ¶
type ConfirmPublicKeyRequest struct {
PublicKeyId string `protobuf:"bytes,1,opt,name=public_key_id,json=publicKeyId,proto3" json:"public_key_id,omitempty"`
// contains filtered or unexported fields
}
func (*ConfirmPublicKeyRequest) CloneMessageVT ¶ added in v0.3.10
func (m *ConfirmPublicKeyRequest) CloneMessageVT() proto.Message
func (*ConfirmPublicKeyRequest) CloneVT ¶ added in v0.3.10
func (m *ConfirmPublicKeyRequest) CloneVT() *ConfirmPublicKeyRequest
func (*ConfirmPublicKeyRequest) Descriptor
deprecated
func (*ConfirmPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmPublicKeyRequest.ProtoReflect.Descriptor instead.
func (*ConfirmPublicKeyRequest) EqualMessageVT ¶ added in v0.2.3
func (this *ConfirmPublicKeyRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*ConfirmPublicKeyRequest) EqualVT ¶ added in v0.2.3
func (this *ConfirmPublicKeyRequest) EqualVT(that *ConfirmPublicKeyRequest) bool
func (*ConfirmPublicKeyRequest) GetPublicKeyId ¶
func (x *ConfirmPublicKeyRequest) GetPublicKeyId() string
func (*ConfirmPublicKeyRequest) MarshalToSizedBufferVT ¶
func (m *ConfirmPublicKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ConfirmPublicKeyRequest) MarshalToVT ¶
func (m *ConfirmPublicKeyRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ConfirmPublicKeyRequest) MarshalVT ¶
func (m *ConfirmPublicKeyRequest) MarshalVT() (dAtA []byte, err error)
func (*ConfirmPublicKeyRequest) ProtoMessage ¶
func (*ConfirmPublicKeyRequest) ProtoMessage()
func (*ConfirmPublicKeyRequest) ProtoReflect ¶
func (x *ConfirmPublicKeyRequest) ProtoReflect() protoreflect.Message
func (*ConfirmPublicKeyRequest) Reset ¶
func (x *ConfirmPublicKeyRequest) Reset()
func (*ConfirmPublicKeyRequest) SizeVT ¶
func (m *ConfirmPublicKeyRequest) SizeVT() (n int)
func (*ConfirmPublicKeyRequest) String ¶
func (x *ConfirmPublicKeyRequest) String() string
func (*ConfirmPublicKeyRequest) UnmarshalVT ¶
func (m *ConfirmPublicKeyRequest) UnmarshalVT(dAtA []byte) error
type Identity ¶
type Identity struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
// contains filtered or unexported fields
}
func (*Identity) CloneMessageVT ¶ added in v0.3.10
func (*Identity) Descriptor
deprecated
func (*Identity) EqualMessageVT ¶ added in v0.2.3
func (*Identity) MarshalToSizedBufferVT ¶
func (*Identity) ProtoMessage ¶
func (*Identity) ProtoMessage()
func (*Identity) ProtoReflect ¶
func (x *Identity) ProtoReflect() protoreflect.Message
func (*Identity) UnmarshalVT ¶
type PublicKey ¶
type PublicKey struct {
PgpData []byte `protobuf:"bytes,1,opt,name=pgp_data,json=pgpData,proto3" json:"pgp_data,omitempty"`
WebauthnData []byte `protobuf:"bytes,2,opt,name=webauthn_data,json=webauthnData,proto3" json:"webauthn_data,omitempty"`
PlainKey *PublicKey_Plain `protobuf:"bytes,3,opt,name=plain_key,json=plainKey,proto3" json:"plain_key,omitempty"`
// contains filtered or unexported fields
}
func (*PublicKey) CloneMessageVT ¶ added in v0.3.10
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) EqualMessageVT ¶ added in v0.2.3
func (*PublicKey) GetPgpData ¶
func (*PublicKey) GetPlainKey ¶ added in v0.3.11
func (x *PublicKey) GetPlainKey() *PublicKey_Plain
func (*PublicKey) GetWebauthnData ¶
func (*PublicKey) MarshalToSizedBufferVT ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
func (*PublicKey) UnmarshalVT ¶
type PublicKey_Plain ¶ added in v0.3.11
type PublicKey_Plain struct {
KeyPem string `protobuf:"bytes,1,opt,name=key_pem,json=keyPem,proto3" json:"key_pem,omitempty"`
NotBefore *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=not_before,json=notBefore,proto3" json:"not_before,omitempty"`
NotAfter *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"`
// contains filtered or unexported fields
}
func (*PublicKey_Plain) CloneMessageVT ¶ added in v0.3.11
func (m *PublicKey_Plain) CloneMessageVT() proto.Message
func (*PublicKey_Plain) CloneVT ¶ added in v0.3.11
func (m *PublicKey_Plain) CloneVT() *PublicKey_Plain
func (*PublicKey_Plain) Descriptor
deprecated
added in
v0.3.11
func (*PublicKey_Plain) Descriptor() ([]byte, []int)
Deprecated: Use PublicKey_Plain.ProtoReflect.Descriptor instead.
func (*PublicKey_Plain) EqualMessageVT ¶ added in v0.3.11
func (this *PublicKey_Plain) EqualMessageVT(thatMsg proto.Message) bool
func (*PublicKey_Plain) EqualVT ¶ added in v0.3.11
func (this *PublicKey_Plain) EqualVT(that *PublicKey_Plain) bool
func (*PublicKey_Plain) GetKeyPem ¶ added in v0.3.11
func (x *PublicKey_Plain) GetKeyPem() string
func (*PublicKey_Plain) GetNotAfter ¶ added in v0.3.11
func (x *PublicKey_Plain) GetNotAfter() *timestamppb.Timestamp
func (*PublicKey_Plain) GetNotBefore ¶ added in v0.3.11
func (x *PublicKey_Plain) GetNotBefore() *timestamppb.Timestamp
func (*PublicKey_Plain) MarshalToSizedBufferVT ¶ added in v0.3.11
func (m *PublicKey_Plain) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PublicKey_Plain) MarshalToVT ¶ added in v0.3.11
func (m *PublicKey_Plain) MarshalToVT(dAtA []byte) (int, error)
func (*PublicKey_Plain) MarshalVT ¶ added in v0.3.11
func (m *PublicKey_Plain) MarshalVT() (dAtA []byte, err error)
func (*PublicKey_Plain) ProtoMessage ¶ added in v0.3.11
func (*PublicKey_Plain) ProtoMessage()
func (*PublicKey_Plain) ProtoReflect ¶ added in v0.3.11
func (x *PublicKey_Plain) ProtoReflect() protoreflect.Message
func (*PublicKey_Plain) Reset ¶ added in v0.3.11
func (x *PublicKey_Plain) Reset()
func (*PublicKey_Plain) SizeVT ¶ added in v0.3.11
func (m *PublicKey_Plain) SizeVT() (n int)
func (*PublicKey_Plain) String ¶ added in v0.3.11
func (x *PublicKey_Plain) String() string
func (*PublicKey_Plain) UnmarshalVT ¶ added in v0.3.11
func (m *PublicKey_Plain) UnmarshalVT(dAtA []byte) error
type RegisterPublicKeyRequest ¶
type RegisterPublicKeyRequest struct {
PublicKey *PublicKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
Identity *Identity `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
// The role of the public key. When skip_user_role is true, this field is ignored.
Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"`
// If true, the role field will be used to determine the role of the public key.
SkipUserRole bool `protobuf:"varint,6,opt,name=skip_user_role,json=skipUserRole,proto3" json:"skip_user_role,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterPublicKeyRequest) CloneMessageVT ¶ added in v0.3.10
func (m *RegisterPublicKeyRequest) CloneMessageVT() proto.Message
func (*RegisterPublicKeyRequest) CloneVT ¶ added in v0.3.10
func (m *RegisterPublicKeyRequest) CloneVT() *RegisterPublicKeyRequest
func (*RegisterPublicKeyRequest) Descriptor
deprecated
func (*RegisterPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterPublicKeyRequest.ProtoReflect.Descriptor instead.
func (*RegisterPublicKeyRequest) EqualMessageVT ¶ added in v0.2.3
func (this *RegisterPublicKeyRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*RegisterPublicKeyRequest) EqualVT ¶ added in v0.2.3
func (this *RegisterPublicKeyRequest) EqualVT(that *RegisterPublicKeyRequest) bool
func (*RegisterPublicKeyRequest) GetIdentity ¶
func (x *RegisterPublicKeyRequest) GetIdentity() *Identity
func (*RegisterPublicKeyRequest) GetPublicKey ¶
func (x *RegisterPublicKeyRequest) GetPublicKey() *PublicKey
func (*RegisterPublicKeyRequest) GetRole ¶ added in v0.2.5
func (x *RegisterPublicKeyRequest) GetRole() string
func (*RegisterPublicKeyRequest) GetSkipUserRole ¶ added in v0.2.5
func (x *RegisterPublicKeyRequest) GetSkipUserRole() bool
func (*RegisterPublicKeyRequest) MarshalToSizedBufferVT ¶
func (m *RegisterPublicKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RegisterPublicKeyRequest) MarshalToVT ¶
func (m *RegisterPublicKeyRequest) MarshalToVT(dAtA []byte) (int, error)
func (*RegisterPublicKeyRequest) MarshalVT ¶
func (m *RegisterPublicKeyRequest) MarshalVT() (dAtA []byte, err error)
func (*RegisterPublicKeyRequest) ProtoMessage ¶
func (*RegisterPublicKeyRequest) ProtoMessage()
func (*RegisterPublicKeyRequest) ProtoReflect ¶
func (x *RegisterPublicKeyRequest) ProtoReflect() protoreflect.Message
func (*RegisterPublicKeyRequest) Reset ¶
func (x *RegisterPublicKeyRequest) Reset()
func (*RegisterPublicKeyRequest) SizeVT ¶
func (m *RegisterPublicKeyRequest) SizeVT() (n int)
func (*RegisterPublicKeyRequest) String ¶
func (x *RegisterPublicKeyRequest) String() string
func (*RegisterPublicKeyRequest) UnmarshalVT ¶
func (m *RegisterPublicKeyRequest) UnmarshalVT(dAtA []byte) error
type RegisterPublicKeyResponse ¶
type RegisterPublicKeyResponse struct {
LoginUrl string `protobuf:"bytes,1,opt,name=login_url,json=loginUrl,proto3" json:"login_url,omitempty"`
PublicKeyId string `protobuf:"bytes,2,opt,name=public_key_id,json=publicKeyId,proto3" json:"public_key_id,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterPublicKeyResponse) CloneMessageVT ¶ added in v0.3.10
func (m *RegisterPublicKeyResponse) CloneMessageVT() proto.Message
func (*RegisterPublicKeyResponse) CloneVT ¶ added in v0.3.10
func (m *RegisterPublicKeyResponse) CloneVT() *RegisterPublicKeyResponse
func (*RegisterPublicKeyResponse) Descriptor
deprecated
func (*RegisterPublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterPublicKeyResponse.ProtoReflect.Descriptor instead.
func (*RegisterPublicKeyResponse) EqualMessageVT ¶ added in v0.2.3
func (this *RegisterPublicKeyResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*RegisterPublicKeyResponse) EqualVT ¶ added in v0.2.3
func (this *RegisterPublicKeyResponse) EqualVT(that *RegisterPublicKeyResponse) bool
func (*RegisterPublicKeyResponse) GetLoginUrl ¶
func (x *RegisterPublicKeyResponse) GetLoginUrl() string
func (*RegisterPublicKeyResponse) GetPublicKeyId ¶
func (x *RegisterPublicKeyResponse) GetPublicKeyId() string
func (*RegisterPublicKeyResponse) MarshalToSizedBufferVT ¶
func (m *RegisterPublicKeyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RegisterPublicKeyResponse) MarshalToVT ¶
func (m *RegisterPublicKeyResponse) MarshalToVT(dAtA []byte) (int, error)
func (*RegisterPublicKeyResponse) MarshalVT ¶
func (m *RegisterPublicKeyResponse) MarshalVT() (dAtA []byte, err error)
func (*RegisterPublicKeyResponse) ProtoMessage ¶
func (*RegisterPublicKeyResponse) ProtoMessage()
func (*RegisterPublicKeyResponse) ProtoReflect ¶
func (x *RegisterPublicKeyResponse) ProtoReflect() protoreflect.Message
func (*RegisterPublicKeyResponse) Reset ¶
func (x *RegisterPublicKeyResponse) Reset()
func (*RegisterPublicKeyResponse) SizeVT ¶
func (m *RegisterPublicKeyResponse) SizeVT() (n int)
func (*RegisterPublicKeyResponse) String ¶
func (x *RegisterPublicKeyResponse) String() string
func (*RegisterPublicKeyResponse) UnmarshalVT ¶
func (m *RegisterPublicKeyResponse) UnmarshalVT(dAtA []byte) error
type RevokePublicKeyRequest ¶ added in v0.3.10
type RevokePublicKeyRequest struct {
PublicKeyId string `protobuf:"bytes,1,opt,name=public_key_id,json=publicKeyId,proto3" json:"public_key_id,omitempty"`
// contains filtered or unexported fields
}
func (*RevokePublicKeyRequest) CloneMessageVT ¶ added in v0.3.10
func (m *RevokePublicKeyRequest) CloneMessageVT() proto.Message
func (*RevokePublicKeyRequest) CloneVT ¶ added in v0.3.10
func (m *RevokePublicKeyRequest) CloneVT() *RevokePublicKeyRequest
func (*RevokePublicKeyRequest) Descriptor
deprecated
added in
v0.3.10
func (*RevokePublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokePublicKeyRequest.ProtoReflect.Descriptor instead.
func (*RevokePublicKeyRequest) EqualMessageVT ¶ added in v0.3.10
func (this *RevokePublicKeyRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*RevokePublicKeyRequest) EqualVT ¶ added in v0.3.10
func (this *RevokePublicKeyRequest) EqualVT(that *RevokePublicKeyRequest) bool
func (*RevokePublicKeyRequest) GetPublicKeyId ¶ added in v0.3.10
func (x *RevokePublicKeyRequest) GetPublicKeyId() string
func (*RevokePublicKeyRequest) MarshalToSizedBufferVT ¶ added in v0.3.10
func (m *RevokePublicKeyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RevokePublicKeyRequest) MarshalToVT ¶ added in v0.3.10
func (m *RevokePublicKeyRequest) MarshalToVT(dAtA []byte) (int, error)
func (*RevokePublicKeyRequest) MarshalVT ¶ added in v0.3.10
func (m *RevokePublicKeyRequest) MarshalVT() (dAtA []byte, err error)
func (*RevokePublicKeyRequest) ProtoMessage ¶ added in v0.3.10
func (*RevokePublicKeyRequest) ProtoMessage()
func (*RevokePublicKeyRequest) ProtoReflect ¶ added in v0.3.10
func (x *RevokePublicKeyRequest) ProtoReflect() protoreflect.Message
func (*RevokePublicKeyRequest) Reset ¶ added in v0.3.10
func (x *RevokePublicKeyRequest) Reset()
func (*RevokePublicKeyRequest) SizeVT ¶ added in v0.3.10
func (m *RevokePublicKeyRequest) SizeVT() (n int)
func (*RevokePublicKeyRequest) String ¶ added in v0.3.10
func (x *RevokePublicKeyRequest) String() string
func (*RevokePublicKeyRequest) UnmarshalVT ¶ added in v0.3.10
func (m *RevokePublicKeyRequest) UnmarshalVT(dAtA []byte) error
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct{}
UnimplementedAuthServiceServer 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 (UnimplementedAuthServiceServer) AwaitPublicKeyConfirmation ¶
func (UnimplementedAuthServiceServer) AwaitPublicKeyConfirmation(context.Context, *AwaitPublicKeyConfirmationRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServiceServer) ConfirmPublicKey ¶
func (UnimplementedAuthServiceServer) ConfirmPublicKey(context.Context, *ConfirmPublicKeyRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServiceServer) RegisterPublicKey ¶
func (UnimplementedAuthServiceServer) RegisterPublicKey(context.Context, *RegisterPublicKeyRequest) (*RegisterPublicKeyResponse, error)
func (UnimplementedAuthServiceServer) RevokePublicKey ¶ added in v0.3.10
func (UnimplementedAuthServiceServer) RevokePublicKey(context.Context, *RevokePublicKeyRequest) (*emptypb.Empty, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.