Documentation ¶
Index ¶
- func Authenticate(ctx *core.Context, req *proto.AuthenticateRequest) (user *models.User, err error)
- func ValidatePassword(user *models.User, pass string) bool
- type Service
- func (s *Service) Authenticate(ctx context.Context, req *proto.AuthRequest) (*proto.AuthResponse, error)
- func (s *Service) CallbackOAUTH(ctx context.Context, req *proto.OAUTHRequest) (*proto.AuthResponse, error)
- func (s *Service) RefreshToken(ctx context.Context, req *proto.RefreshTokenRequest) (*proto.AuthResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Types ¶
type Service ¶
type Service struct { *core.Context proto.UnimplementedAuthServiceServer }
func NewService ¶
func (*Service) Authenticate ¶
func (s *Service) Authenticate(ctx context.Context, req *proto.AuthRequest) (*proto.AuthResponse, error)
func (*Service) CallbackOAUTH ¶
func (s *Service) CallbackOAUTH(ctx context.Context, req *proto.OAUTHRequest) (*proto.AuthResponse, error)
func (*Service) RefreshToken ¶
func (s *Service) RefreshToken(ctx context.Context, req *proto.RefreshTokenRequest) (*proto.AuthResponse, error)
Click to show internal directories.
Click to hide internal directories.