oauth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessToken

func AccessToken(clt *core.SdkClient, authCode string) (*oauth.AccessTokenResponse, error)

AccessToken 获取Access Token

func GrantUrl

func GrantUrl(clt *core.SdkClient, redirectUrl string, state string) string

GrantUrl 授权URL

func RefreshToken

func RefreshToken(clt *core.SdkClient, refreshToken string) (*oauth.AccessTokenResponse, error)

RefreshToken 刷新Refresh Token

func UserInfo

func UserInfo(clt *core.SdkClient, accessToken string) (*oauth.UserInfoResponse, error)

UserInfo 获取授权User信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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