Documentation ¶
Index ¶
Constants ¶
View Source
const ( // https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#1-request-a-users-github-identity GithubAuthURL = "https://github.com/login/oauth/authorize" // https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#2-users-are-redirected-back-to-your-site-by-github GithubTokenURL = "https://github.com/login/oauth/access_token" GithubUserInfoEndpoint = "https://api.github.com/user" GitHubEmailsEndpoint = "https://api.github.com/user/emails" )
Variables ¶
View Source
var Duration30MinutesSeconds = 1800
View Source
var GithubScopes = []string{"user:email"}
Functions ¶
func AddSingletonIGithubCodeExchange ¶
func AddSingletonIGithubCodeExchange(cb di.ContainerBuilder)
Types ¶
type GitHubEmail ¶
type GithubUser ¶
type GithubUserEmails ¶
type GithubUserEmails []GitHubEmail
Click to show internal directories.
Click to hide internal directories.