Documentation ¶
Index ¶
- type Oauth2Basic
- func (o *Oauth2Basic) CodeUrl(state string) string
- func (o *Oauth2Basic) CodeUrl2(state string) string
- func (o *Oauth2Basic) Exchange(code string) (*oauth2.Token, error)
- func (o *Oauth2Basic) Exchange2(code string) (*oauth2.Token, error)
- func (o *Oauth2Basic) Logout() error
- func (o *Oauth2Basic) Setup() error
- func (o *Oauth2Basic) UserInfo(oauth2Token *oauth2.Token) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oauth2Basic ¶
type Oauth2Basic struct{}
func (*Oauth2Basic) CodeUrl ¶
func (o *Oauth2Basic) CodeUrl(state string) string
CodeUrl get url to redirect client for auth
func (*Oauth2Basic) CodeUrl2 ¶
func (o *Oauth2Basic) CodeUrl2(state string) string
func (*Oauth2Basic) Exchange ¶
func (o *Oauth2Basic) Exchange(code string) (*oauth2.Token, error)
Exchange exchange code for Oauth2 token
func (*Oauth2Basic) Logout ¶
func (o *Oauth2Basic) Logout() error
Click to show internal directories.
Click to hide internal directories.