Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthImpl ¶
type OAuthImpl struct {
// contains filtered or unexported fields
}
type OAuthInterface ¶
type OAuthInterface interface { Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error) Client(ctx context.Context, t *oauth2.Token) *http.Client GetOAuthUser(logger *zap.Logger, code string) (user *github.User, err error) // contains filtered or unexported methods }
func CreateOAuth ¶
func CreateOAuth(clientID, clientSecret string) OAuthInterface
Click to show internal directories.
Click to hide internal directories.