Documentation
¶
Index ¶
- type OAuthService
- func (s *OAuthService) AppleLoginCallback(ctx context.Context, req *pb.AppleLoginCallbackRequest) (*pb.CallbackReply, error)
- func (s *OAuthService) OAuthLogin(ctx context.Context, req *pb.OAuthLoginRequest) (*pb.LoginRedirectReply, error)
- func (s *OAuthService) OAuthLoginGetToken(ctx context.Context, req *pb.OAuthLoginGetTokenRequest) (*pb.LoginTokenReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthService ¶
type OAuthService struct {
pb.UnimplementedOAuthServer
// contains filtered or unexported fields
}
OAuthService OAuth服务实现
func NewOAuthService ¶
func NewOAuthService(uc oauth.OAuthUseCase, logger log.Logger) *OAuthService
NewOAuthService 创建OAuth服务实例
func (*OAuthService) AppleLoginCallback ¶
func (s *OAuthService) AppleLoginCallback(ctx context.Context, req *pb.AppleLoginCallbackRequest) (*pb.CallbackReply, error)
AppleLoginCallback Apple登录回调处理
func (*OAuthService) OAuthLogin ¶
func (s *OAuthService) OAuthLogin(ctx context.Context, req *pb.OAuthLoginRequest) (*pb.LoginRedirectReply, error)
OAuthLogin OAuth登录 - 获取OAuth提供商的授权URL
func (*OAuthService) OAuthLoginGetToken ¶
func (s *OAuthService) OAuthLoginGetToken(ctx context.Context, req *pb.OAuthLoginGetTokenRequest) (*pb.LoginTokenReply, error)
OAuthLoginGetToken OAuth登录获取令牌 - 处理OAuth回调并返回JWT token
Click to show internal directories.
Click to hide internal directories.