2018-05-27 22:40:42 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import ()
|
|
|
|
|
2019-04-20 07:03:34 +08:00
|
|
|
var googleConfigured bool
|
|
|
|
var twitterConfigured bool
|
|
|
|
var githubConfigured bool
|
|
|
|
var gitlabConfigured bool
|
2018-06-11 01:15:56 +08:00
|
|
|
|
2018-05-27 22:40:42 +08:00
|
|
|
func oauthConfigure() error {
|
|
|
|
if err := googleOauthConfigure(); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2019-02-24 00:19:58 +08:00
|
|
|
if err := twitterOauthConfigure(); err != nil {
|
2019-01-31 10:15:16 +08:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2019-02-24 00:19:58 +08:00
|
|
|
if err := githubOauthConfigure(); err != nil {
|
2019-02-23 10:23:24 +08:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2019-02-23 10:54:08 +08:00
|
|
|
if err := gitlabOauthConfigure(); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2018-05-27 22:40:42 +08:00
|
|
|
return nil
|
|
|
|
}
|