Skip to content

Instantly share code, notes, and snippets.

@as27
Created March 15, 2017 16:29
Show Gist options
  • Save as27/6e0aecba1b3cff5a59092416b4447f57 to your computer and use it in GitHub Desktop.
Save as27/6e0aecba1b3cff5a59092416b4447f57 to your computer and use it in GitHub Desktop.
Buffalo Auth Tutorial: Setting scope
goth.UseProviders(
github.New(
os.Getenv("GITHUB_KEY"),
os.Getenv("GITHUB_SECRET"),
fmt.Sprintf("%s%s", App().Host, "/auth/github/callback"),
"user:email"),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment