2018-05-27 22:40:42 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import ()
|
|
|
|
|
2018-06-11 01:15:56 +08:00
|
|
|
var configuredOauths []string
|
|
|
|
|
2018-05-27 22:40:42 +08:00
|
|
|
func oauthConfigure() error {
|
2018-06-11 01:15:56 +08:00
|
|
|
configuredOauths = []string{}
|
|
|
|
|
2018-05-27 22:40:42 +08:00
|
|
|
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
|
|
|
|
}
|