Documentation ¶
Index ¶
- type Oauth
- func (o *Oauth) AuthCodeURL() string
- func (o *Oauth) Client(ctx context.Context, token *oauth2.Token) *github.Client
- func (o *Oauth) ClientFrom(ctx context.Context, tokenStr string) (*github.Client, error)
- func (o *Oauth) Exchange(ctx context.Context, code string) (*oauth2.Token, error)
- func (o *Oauth) IsStateValid(state string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oauth ¶
type Oauth struct {
// contains filtered or unexported fields
}
Oauth info
func (*Oauth) AuthCodeURL ¶
AuthCodeURL URL to OAuth 2.0 provider's consent page
func (*Oauth) ClientFrom ¶
ClientFrom for a given string token
func (*Oauth) IsStateValid ¶
IsStateValid true if state is valid
Click to show internal directories.
Click to hide internal directories.