MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / getSinaWeiboConfig

Function getSinaWeiboConfig

cmd/cql-proxy/auth/user.go:194–204  ·  view source on GitHub ↗
(clientID string, clientSecret string, callback string)

Source from the content-addressed store, hash-verified

192}
193
194func 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
206func googleAuthCallback(c *gin.Context, success UserSuccessCallback, fail UserFailCallback) http.Handler {
207 return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {

Callers 2

HandleUserAuthFunction · 0.85
HandleUserCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected