providers

package
v0.0.0-...-4f13886 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Google = internal.Provider{
	Config: oauth2.Config{
		ClientID:     googleID,
		ClientSecret: googleSecret,
		Endpoint: oauth2.Endpoint{
			AuthURL:  "https://accounts.google.com/o/oauth2/auth",
			TokenURL: "https://accounts.google.com/o/oauth2/token",
		},
		Scopes: []string{
			"https://www.googleapis.com/auth/youtube.readonly",
			"https://www.googleapis.com/auth/userinfo.profile",
			"https://www.googleapis.com/auth/userinfo.email",
		},
	},
	CustomParams: map[string]string{
		"access_type": "offline",
		"prompt":      "consent",
	},
	FetchUser: googleFetchUser,
}
View Source
var Twitch = internal.Provider{
	Config: oauth2.Config{
		ClientID:     twitchID,
		ClientSecret: twitchSecret,
		Endpoint: oauth2.Endpoint{
			AuthURL:  "https://api.twitch.tv/kraken/oauth2/authorize",
			TokenURL: "https://api.twitch.tv/kraken/oauth2/token",
		},
		Scopes: []string{
			"channel_subscriptions",
			"chat_login",
			"user_read",
		},
	},
	FetchUser: twitchFetchUser,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL