oauth

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OAuthGoogle    = "google"
	OAuthApple     = "apple"
	OAuthTelegram  = "telegram"
	AuthEmail      = "email"
	AuthExpire     = 86400
	TelegramDomain = "ppanel.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppleLoginCallbackLogic

type AppleLoginCallbackLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewAppleLoginCallbackLogic

func NewAppleLoginCallbackLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AppleLoginCallbackLogic

Apple Login Callback

func (*AppleLoginCallbackLogic) AppleLoginCallback

type OAuthLoginGetTokenLogic

type OAuthLoginGetTokenLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewOAuthLoginGetTokenLogic

func NewOAuthLoginGetTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OAuthLoginGetTokenLogic

NewOAuthLoginGetTokenLogic OAuth login get token

func (*OAuthLoginGetTokenLogic) OAuthLoginGetToken

func (l *OAuthLoginGetTokenLogic) OAuthLoginGetToken(req *types.OAuthLoginGetTokenRequest, ip, userAgent string) (resp *types.LoginResponse, err error)

type OAuthLoginLogic

type OAuthLoginLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewOAuthLoginLogic

func NewOAuthLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OAuthLoginLogic

OAuth login

func (*OAuthLoginLogic) OAuthLogin

func (l *OAuthLoginLogic) OAuthLogin(req *types.OAthLoginRequest) (resp *types.OAuthLoginResponse, err error)

Jump to

Keyboard shortcuts

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