()
| 58 | } |
| 59 | |
| 60 | func (f *fakeGitHub) endpoint() oauth2.Endpoint { |
| 61 | return oauth2.Endpoint{ |
| 62 | AuthURL: f.URL + "/login/oauth/authorize", |
| 63 | TokenURL: f.URL + "/login/oauth/access_token", |
| 64 | DeviceAuthURL: f.URL + "/login/device/code", |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | func (f *fakeGitHub) handleAuthorize(w http.ResponseWriter, r *http.Request) { |
| 69 | q := r.URL.Query() |