(w http.ResponseWriter, r *http.Request)
| 49 | } |
| 50 | |
| 51 | func CallbackHandler(w http.ResponseWriter, r *http.Request) { |
| 52 | user, err := gothic.CompleteUserAuth(w, r) |
| 53 | if err != nil { |
| 54 | fmt.Fprintln(w, err) |
| 55 | return |
| 56 | } |
| 57 | ptTemplate.ExecuteTemplate(w, "home.tpl", user) |
| 58 | } |
| 59 | |
| 60 | func main() { |
| 61 | githubProvider := github.New(clientKey, clientSecret, "http://localhost:8080/auth/github/callback") |
nothing calls this directly
no outgoing calls
no test coverage detected