commento/api/oauth.go

28 lines
393 B
Go
Raw Normal View History

package main
import ()
var configuredOauths []string
func oauthConfigure() error {
configuredOauths = []string{}
if err := googleOauthConfigure(); err != nil {
return err
}
if err := githubOauthConfigure(); err != nil {
return err
}
2019-02-23 10:23:24 +08:00
if err := twitterOauthConfigure(); err != nil {
return err
}
2019-02-23 10:54:08 +08:00
if err := gitlabOauthConfigure(); err != nil {
return err
}
return nil
}