oauth

package
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL