Documentation ¶
Index ¶
- func AddByPassValidateToken(srv, method string)
- func HandleHttpAuth(fn authenticateFunc) func(http.ResponseWriter, *http.Request)
- func ValidateTokenInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (any, error)
- func ValidateTokenMiddleware(next http.Handler) http.Handler
- type Authenticated
- type Claims
- type Credentials
- type ServiceGRPC
- type ServiceHTTP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddByPassValidateToken ¶
func AddByPassValidateToken(srv, method string)
func HandleHttpAuth ¶
func HandleHttpAuth(fn authenticateFunc) func(http.ResponseWriter, *http.Request)
func ValidateTokenInterceptor ¶
func ValidateTokenInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
Types ¶
type Authenticated ¶
type Credentials ¶
type ServiceGRPC ¶
type ServiceGRPC struct { authpb.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func HandleGrpcAuth ¶
func HandleGrpcAuth(fn authenticateFunc) *ServiceGRPC
func (*ServiceGRPC) Login ¶
func (svc *ServiceGRPC) Login(ctx context.Context, req *authpb.CredentialsRequest) (*authpb.TokenResponse, error)
type ServiceHTTP ¶
type ServiceHTTP struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.