Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubAuthenticator ¶
GitHubAuthenticator authentices with GitHub personal access token in the Authorization header (bearer token format).
func (*GitHubAuthenticator) Authenticate ¶
func (a *GitHubAuthenticator) Authenticate(ctx context.Context) (auth.AuthenticatedUser, error)
type GitHubUser ¶
type GitHubUser struct { ID uint64 // github user ID Username string // github username (can be changed by the user on GitHub) }
func VerifyUser ¶
func VerifyUser(token string) (GitHubUser, error)
func (GitHubUser) DBKey ¶
func (g GitHubUser) DBKey() string
func (GitHubUser) DisplayName ¶
func (g GitHubUser) DisplayName() string
func (GitHubUser) ProfileURL ¶
func (g GitHubUser) ProfileURL() string
Click to show internal directories.
Click to hide internal directories.