コード例 #1
0
ファイル: providers.go プロジェクト: jtolds/webhelp-oauth2
func LinkedIn(conf Config) *Provider {
	if conf.Endpoint.AuthURL == "" {
		conf.Endpoint = linkedin.Endpoint
	}
	return &Provider{
		Name:   "linkedin",
		Config: oauth2.Config(conf)}
}
コード例 #2
0
ファイル: providers.go プロジェクト: jtolds/webhelp-oauth2
func Google(conf Config) *Provider {
	if conf.Endpoint.AuthURL == "" {
		conf.Endpoint = google.Endpoint
	}
	return &Provider{
		Name:   "google",
		Config: oauth2.Config(conf)}
}
コード例 #3
0
ファイル: providers.go プロジェクト: jtolds/webhelp-oauth2
func Facebook(conf Config) *Provider {
	if conf.Endpoint.AuthURL == "" {
		conf.Endpoint = facebook.Endpoint
	}
	return &Provider{
		Name:   "facebook",
		Config: oauth2.Config(conf)}
}
コード例 #4
0
ファイル: providers.go プロジェクト: jtolds/webhelp-oauth2
func Github(conf Config) *Provider {
	if conf.Endpoint.AuthURL == "" {
		conf.Endpoint = github.Endpoint
	}
	return &Provider{
		Name:   "github",
		Config: oauth2.Config(conf)}
}