Versions in this module Expand all Collapse all v0 v0.1.2 Jul 31, 2023 Changes in this version + var Authentication_ServiceDesc = grpc.ServiceDesc + var File_auth_proto protoreflect.FileDescriptor + var GenerateTokenRequestResultEnum_name = map[int32]string + var GenerateTokenRequestResultEnum_value = map[string]int32 + var RevokeTokenRequestResultEnum_name = map[int32]string + var RevokeTokenRequestResultEnum_value = map[string]int32 + var TokenIntent_name = map[int32]string + var TokenIntent_value = map[string]int32 + var VerifyTokenRequestResultEnum_name = map[int32]string + var VerifyTokenRequestResultEnum_value = map[string]int32 + func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer) + type AuthenticationClient interface + GenerateToken func(ctx context.Context, in *GenerateTokenRequest, opts ...grpc.CallOption) (*GenerateTokenRequestResult, error) + GithubLogin func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*LoginUrl, error) + RefreshToken func(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Token, error) + RevokeToken func(ctx context.Context, in *Token, opts ...grpc.CallOption) (*RevokeTokenRequestResult, error) + VerifyToken func(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenRequestResult, error) + func NewAuthenticationClient(cc grpc.ClientConnInterface) AuthenticationClient + type AuthenticationServer interface + GenerateToken func(context.Context, *GenerateTokenRequest) (*GenerateTokenRequestResult, error) + GithubLogin func(context.Context, *emptypb.Empty) (*LoginUrl, error) + RefreshToken func(context.Context, *Token) (*Token, error) + RevokeToken func(context.Context, *Token) (*RevokeTokenRequestResult, error) + VerifyToken func(context.Context, *VerifyTokenRequest) (*VerifyTokenRequestResult, error) + type GenerateTokenRequest struct + Intent TokenIntent + Name *Name + func (*GenerateTokenRequest) Descriptor() ([]byte, []int) + func (*GenerateTokenRequest) ProtoMessage() + func (x *GenerateTokenRequest) GetIntent() TokenIntent + func (x *GenerateTokenRequest) GetName() *Name + func (x *GenerateTokenRequest) ProtoReflect() protoreflect.Message + func (x *GenerateTokenRequest) Reset() + func (x *GenerateTokenRequest) String() string + type GenerateTokenRequestResult struct + Status GenerateTokenRequestResultEnum + Token *Token + func (*GenerateTokenRequestResult) Descriptor() ([]byte, []int) + func (*GenerateTokenRequestResult) ProtoMessage() + func (x *GenerateTokenRequestResult) GetStatus() GenerateTokenRequestResultEnum + func (x *GenerateTokenRequestResult) GetToken() *Token + func (x *GenerateTokenRequestResult) ProtoReflect() protoreflect.Message + func (x *GenerateTokenRequestResult) Reset() + func (x *GenerateTokenRequestResult) String() string + type GenerateTokenRequestResultEnum int32 + const GenerateTokenRequestResultEnum_NAME_ALREADY_EXISTS + const GenerateTokenRequestResultEnum_TOKEN_ALREADY_EXISTS + const GenerateTokenRequestResultEnum_TOKEN_GENERATION_SUCCEEDED + func (GenerateTokenRequestResultEnum) Descriptor() protoreflect.EnumDescriptor + func (GenerateTokenRequestResultEnum) EnumDescriptor() ([]byte, []int) + func (GenerateTokenRequestResultEnum) Type() protoreflect.EnumType + func (x GenerateTokenRequestResultEnum) Enum() *GenerateTokenRequestResultEnum + func (x GenerateTokenRequestResultEnum) Number() protoreflect.EnumNumber + func (x GenerateTokenRequestResultEnum) String() string + type LoginUrl struct + Url string + func (*LoginUrl) Descriptor() ([]byte, []int) + func (*LoginUrl) ProtoMessage() + func (x *LoginUrl) GetUrl() string + func (x *LoginUrl) ProtoReflect() protoreflect.Message + func (x *LoginUrl) Reset() + func (x *LoginUrl) String() string + type Name struct + Inner string + func (*Name) Descriptor() ([]byte, []int) + func (*Name) ProtoMessage() + func (x *Name) GetInner() string + func (x *Name) ProtoReflect() protoreflect.Message + func (x *Name) Reset() + func (x *Name) String() string + type RevokeTokenRequestResult struct + Message string + Status RevokeTokenRequestResultEnum + func (*RevokeTokenRequestResult) Descriptor() ([]byte, []int) + func (*RevokeTokenRequestResult) ProtoMessage() + func (x *RevokeTokenRequestResult) GetMessage() string + func (x *RevokeTokenRequestResult) GetStatus() RevokeTokenRequestResultEnum + func (x *RevokeTokenRequestResult) ProtoReflect() protoreflect.Message + func (x *RevokeTokenRequestResult) Reset() + func (x *RevokeTokenRequestResult) String() string + type RevokeTokenRequestResultEnum int32 + const RevokeTokenRequestResultEnum_TOKEN_NOT_FOUND + const RevokeTokenRequestResultEnum_TOKEN_REVOKATION_SUCCEEDED + func (RevokeTokenRequestResultEnum) Descriptor() protoreflect.EnumDescriptor + func (RevokeTokenRequestResultEnum) EnumDescriptor() ([]byte, []int) + func (RevokeTokenRequestResultEnum) Type() protoreflect.EnumType + func (x RevokeTokenRequestResultEnum) Enum() *RevokeTokenRequestResultEnum + func (x RevokeTokenRequestResultEnum) Number() protoreflect.EnumNumber + func (x RevokeTokenRequestResultEnum) String() string + type Token struct + Intent TokenIntent + Name *Name + Permissions *TokenPermissions + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (x *Token) GetIntent() TokenIntent + func (x *Token) GetName() *Name + func (x *Token) GetPermissions() *TokenPermissions + func (x *Token) ProtoReflect() protoreflect.Message + func (x *Token) Reset() + func (x *Token) String() string + type TokenIntent int32 + const TokenIntent_FRONTEND + const TokenIntent_LOGGER + func (TokenIntent) Descriptor() protoreflect.EnumDescriptor + func (TokenIntent) EnumDescriptor() ([]byte, []int) + func (TokenIntent) Type() protoreflect.EnumType + func (x TokenIntent) Enum() *TokenIntent + func (x TokenIntent) Number() protoreflect.EnumNumber + func (x TokenIntent) String() string + type TokenPermissions struct + Read bool + Write bool + func (*TokenPermissions) Descriptor() ([]byte, []int) + func (*TokenPermissions) ProtoMessage() + func (x *TokenPermissions) GetRead() bool + func (x *TokenPermissions) GetWrite() bool + func (x *TokenPermissions) ProtoReflect() protoreflect.Message + func (x *TokenPermissions) Reset() + func (x *TokenPermissions) String() string + type UnimplementedAuthenticationServer struct + func (UnimplementedAuthenticationServer) GenerateToken(context.Context, *GenerateTokenRequest) (*GenerateTokenRequestResult, error) + func (UnimplementedAuthenticationServer) GithubLogin(context.Context, *emptypb.Empty) (*LoginUrl, error) + func (UnimplementedAuthenticationServer) RefreshToken(context.Context, *Token) (*Token, error) + func (UnimplementedAuthenticationServer) RevokeToken(context.Context, *Token) (*RevokeTokenRequestResult, error) + func (UnimplementedAuthenticationServer) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenRequestResult, error) + type UnsafeAuthenticationServer interface + type VerifyTokenRequest struct + Intent TokenIntent + Token *Token + func (*VerifyTokenRequest) Descriptor() ([]byte, []int) + func (*VerifyTokenRequest) ProtoMessage() + func (x *VerifyTokenRequest) GetIntent() TokenIntent + func (x *VerifyTokenRequest) GetToken() *Token + func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message + func (x *VerifyTokenRequest) Reset() + func (x *VerifyTokenRequest) String() string + type VerifyTokenRequestResult struct + Message string + Status VerifyTokenRequestResultEnum + func (*VerifyTokenRequestResult) Descriptor() ([]byte, []int) + func (*VerifyTokenRequestResult) ProtoMessage() + func (x *VerifyTokenRequestResult) GetMessage() string + func (x *VerifyTokenRequestResult) GetStatus() VerifyTokenRequestResultEnum + func (x *VerifyTokenRequestResult) ProtoReflect() protoreflect.Message + func (x *VerifyTokenRequestResult) Reset() + func (x *VerifyTokenRequestResult) String() string + type VerifyTokenRequestResultEnum int32 + const VerifyTokenRequestResultEnum_AUTHORISED + const VerifyTokenRequestResultEnum_NOTFOUND + const VerifyTokenRequestResultEnum_UNAUTHORISED + func (VerifyTokenRequestResultEnum) Descriptor() protoreflect.EnumDescriptor + func (VerifyTokenRequestResultEnum) EnumDescriptor() ([]byte, []int) + func (VerifyTokenRequestResultEnum) Type() protoreflect.EnumType + func (x VerifyTokenRequestResultEnum) Enum() *VerifyTokenRequestResultEnum + func (x VerifyTokenRequestResultEnum) Number() protoreflect.EnumNumber + func (x VerifyTokenRequestResultEnum) String() string