(clientID string, clientSecret string, callback string)
| 192 | } |
| 193 | |
| 194 | func getSinaWeiboConfig(clientID string, clientSecret string, callback string) *oauth2.Config { |
| 195 | return &oauth2.Config{ |
| 196 | ClientID: clientID, |
| 197 | ClientSecret: clientSecret, |
| 198 | RedirectURL: callback, |
| 199 | Endpoint: oauth2.Endpoint{ |
| 200 | AuthURL: "https://api.weibo.com/oauth2/authorize", |
| 201 | TokenURL: "https://api.weibo.com/oauth2/access_token", |
| 202 | }, |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | func googleAuthCallback(c *gin.Context, success UserSuccessCallback, fail UserFailCallback) http.Handler { |
| 207 | return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { |
no outgoing calls
no test coverage detected