authorization

package
v1.1.35 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	authorizationapi.UnimplementedAuthorizationServer
	// contains filtered or unexported fields
}

Service 权限服务

func NewAuthorizationService

func NewAuthorizationService(
	captchaBiz *biz.CaptchaBiz,
	authorizationBiz *biz.AuthorizationBiz,
) *Service

NewAuthorizationService 创建权限服务

func (*Service) Captcha

Captcha 获取验证码

func (*Service) CheckPermission

CheckPermission 权限检查

func (*Service) CheckToken

CheckToken 检查token

func (*Service) Login

Login 登录

func (*Service) Logout

Logout 登出

func (*Service) OAuthLogin

func (s *Service) OAuthLogin(app vobj.OAuthAPP) http.HandlerFunc

OAuthLogin oauth登录

func (*Service) OAuthLoginCallback

func (s *Service) OAuthLoginCallback(app vobj.OAuthAPP) http.HandlerFunc

OAuthLoginCallback oauth登录回调

func (*Service) RefreshToken

RefreshToken 刷新token

func (*Service) RegisterWithEmail added in v1.1.27

RegisterWithEmail 通过邮箱注册

func (*Service) SetEmailWithLogin

SetEmailWithLogin 设置邮箱并登录

func (*Service) VerifyEmail

VerifyEmail 验证邮箱

Jump to

Keyboard shortcuts

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