Versions in this module Expand all Collapse all v0 v0.2.0 Dec 11, 2021 v0.1.0 Nov 13, 2021 Changes in this version + type Component struct + Client *oauth2.Config + Config *Config + func (c *Component) OauthCode(w http.ResponseWriter, r *http.Request) (*OauthToken, error) + func (c *Component) OauthLogin(w http.ResponseWriter, r *http.Request, req OauthLoginParams) + type Config struct + AuthURL string + ClientID string + ClientSecret string + OauthStateCookieName string + RedirectURL string + TokenURL string + UserInfoURL string + func DefaultConfig() *Config + type Container struct + Config *Config + func DefaultContainer() *Container + func Load(key string) *Container + func (c *Container) Build(options ...Option) *Component + type OauthLoginParams struct + Referer string + type OauthState struct + Referer string + State string + type OauthToken struct + Client *oauth2.Config + func (o *OauthToken) UserInfo(ctx context.Context, user interface{}) (err error) + type Option func(c *Container)