Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthURL ¶
BuildAuthURL returns the GitHub OAuth authorization URL and a random state token.
Types ¶
type Config ¶
type Config struct {
ClientID string
ClientSecret string
RedirectURL string
AuthURL string // override for testing
TokenURL string // override for testing
UserURL string // override for testing
EmailsURL string // override for testing
}
Config holds GitHub OAuth App credentials.
type GitHubUser ¶
type GitHubUser struct {
ID int64 `json:"id"`
Login string `json:"login"`
Email string `json:"email"`
AvatarURL string `json:"avatar_url"`
Name string `json:"name"`
Company string `json:"company"`
Location string `json:"location"`
Bio string `json:"bio"`
}
GitHubUser represents the authenticated GitHub user profile.
Click to show internal directories.
Click to hide internal directories.