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