Versions in this module Expand all Collapse all v1 v1.0.20 Apr 8, 2023 Changes in this version + func CreateRedirectURL(konf *koanf.Koanf, providerType string) (string, error) + type AccessProvider interface + AuthenticateExternalUser func(ctx context.Context, email string, meta map[string]string) (string, error) + type ExternalProviderClaims struct + Provider string + SiteURL string + func DecodeJwtClaims(ctx context.Context, konf *koanf.Koanf, state string) (*ExternalProviderClaims, error) + type OAuthProvider interface + AuthCodeURL func(string, ...oauth2.AuthCodeOption) string + GetOAuthToken func(string) (*oauth2.Token, error) + GetUserData func(context.Context, *oauth2.Token) (*UserProvidedData, error) + func NewGoogleProvider(konf *koanf.Koanf) (OAuthProvider, error) + type UserProvidedData struct + AvatarURL string + Email string + FirstName string + LastName string + Name string + Provider string + Verified bool + func AuthenticateUser(ctx context.Context, konf *koanf.Koanf, state string, oauthCode string) (*UserProvidedData, error)