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-01-31 10:15:16 +08:00
|
|
|
if err := githubOauthConfigure(); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2018-05-27 22:40:42 +08:00
|
|
|
return nil
|
|
|
|
}
|