auth

package
v3.2.16 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	*kernel.AccessToken
}

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*AccessToken, error)

func (*AccessToken) OverrideGetCredentials

func (accessToken *AccessToken) OverrideGetCredentials()

Override GetCredentials

type Client added in v3.2.0

type Client struct {
	BaseClient *kernel.BaseClient
}

func NewClient added in v3.2.0

func NewClient(app kernel.ApplicationInterface) (*Client, error)

func (*Client) GetUserDetail added in v3.2.0

func (comp *Client) GetUserDetail(ctx context.Context, userTicket string) (*userResponse.UserDetail, error)

获取访问用户敏感信息 https://developer.work.weixin.qq.com/document/path/95833

func (*Client) GetUserInfo added in v3.2.0

func (comp *Client) GetUserInfo(ctx context.Context, code string) (*response.ResponseGetUserInfo, error)

获取访问用户身份 https://developer.work.weixin.qq.com/document/path/91023

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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