Пример #1
0
func LinkedIn(conf Config) *Provider {
	if conf.Endpoint.AuthURL == "" {
		conf.Endpoint = linkedin.Endpoint
	}
	return &Provider{
		Name:   "linkedin",
		Config: oauth2.Config(conf)}
}
Пример #2
0
func Google(conf Config) *Provider {
	if conf.Endpoint.AuthURL == "" {
		conf.Endpoint = google.Endpoint
	}
	return &Provider{
		Name:   "google",
		Config: oauth2.Config(conf)}
}
Пример #3
0
func Facebook(conf Config) *Provider {
	if conf.Endpoint.AuthURL == "" {
		conf.Endpoint = facebook.Endpoint
	}
	return &Provider{
		Name:   "facebook",
		Config: oauth2.Config(conf)}
}
Пример #4
0
func Github(conf Config) *Provider {
	if conf.Endpoint.AuthURL == "" {
		conf.Endpoint = github.Endpoint
	}
	return &Provider{
		Name:   "github",
		Config: oauth2.Config(conf)}
}