Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + type AuthorizeRequest struct + ProviderID string + RedirectTo string + type AuthorizeResponse struct + AuthURL string + type CallbackRequest struct + Code string + Error string + ProviderID string + State string + type CallbackResponse struct + Session *models.Session + User *models.User + type CallbackResult struct + Session *models.Session + SessionToken string + User *models.User + type LinkAccountRequest struct + Provider string + RedirectTo string + UserID string + type LinkAccountResponse struct + User *models.User + type OAuth2PluginConfig struct + Enabled bool + Providers map[string]ProviderConfig + func (c *OAuth2PluginConfig) ApplyDefaults() + type OAuth2Provider interface + Exchange func(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error) + GetAuthURL func(state string, opts ...oauth2.AuthCodeOption) string + GetConfig func() *oauth2.Config + GetUserInfo func(ctx context.Context, token *oauth2.Token) (*UserInfo, error) + Name func() string + RequiresPKCE func() bool + type ProviderConfig struct + AuthURL string + ClientID string + ClientSecret string + EmailField string + Enabled bool + NameField string + PictureField string + RedirectURL string + Scopes []string + TokenURL string + UserIDField string + UserInfoURL string + type RefreshRequest struct + Provider string + UserID string + type RefreshResponse struct + AccessToken string + ExpiresAt time.Time + ExpiresIn int + TokenType string + type UserInfo struct + Email string + Name string + Picture string + ProviderAccountID string + Raw json.RawMessage