oauthcli

package module
v0.0.0-...-ea3c94a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(ctx context.Context, conf *oauth2.Config) (*oauth2.Token, error)

GetToken retrieves a github oauth2 token

func GetUser

func GetUser(client *http.Client) error

GetUser uses an initialized oauth2 client to get information about a user

func Setup

func Setup() *oauth2.Config

Setup return an oauth2Config configured to talk to github, you need environment variables set for your id and secret

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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