oauth2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WechatInstance

func WechatInstance(config *wechat.Config) *wechat.Wechat

Types

type Oauth2

type Oauth2 struct {
	// contains filtered or unexported fields
}

func NewOauth

func NewOauth(r *http.Request, w http.ResponseWriter) *Oauth2

func (*Oauth2) GetOauth

func (o *Oauth2) GetOauth() *oauth.Oauth

func (*Oauth2) GetOpenid

func (o *Oauth2) GetOpenid() *oauth.ResAccessToken

func (*Oauth2) GetUserInfo

func (o *Oauth2) GetUserInfo(token *oauth.ResAccessToken) (result oauth.UserInfo, err error)

Jump to

Keyboard shortcuts

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