Documentation ¶
Index ¶
- type Config
- func (c *Config) LoginURL(params []elogin.URLParam) string
- func (c *Config) OAuth2Config() *oauth2.Config
- func (c *Config) Protocol() string
- func (c *Config) Provider() string
- func (c *Config) UserData(ctx context.Context, values url.Values, params []elogin.URLParam) (*elogin.Token, *elogin.UserData, error)
- type DataExtractor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ProviderName string OAuth2 *oauth2.Config Extractor DataExtractor StateCode string }
Config provides a configuration for oauth2 authentication
func (*Config) OAuth2Config ¶
OAuth2Config returns the oauth2 configuration
Click to show internal directories.
Click to hide internal directories.