Versions in this module Expand all Collapse all v0 v0.1.1 Nov 12, 2026 v0.1.0 Oct 14, 2026 Changes in this version + const AnnotationAction + const AppleAuthURL + const AppleIssuer + const AppleJWKSURL + const AppleTokenURL + const AtlassianAuthURL + const AtlassianProfileURL + const AtlassianTokenURL + const CloudflareAuthURL + const CloudflareProfileURL + const CloudflareTokenURL + const ColAccountAccess + const ColAccountCreated + const ColAccountEmail + const ColAccountExpires + const ColAccountID + const ColAccountIDToken + const ColAccountProvider + const ColAccountRefresh + const ColAccountRefreshExpires + const ColAccountRefreshParams + const ColAccountScope + const ColAccountSubject + const ColAccountUserID + const DefaultHTTPTimeout + const DefaultMountPrefix + const DefaultStateTTL + const DiscordAuthURL + const DiscordTokenURL + const DiscordUserURL + const DropboxAuthURL + const DropboxProfileURL + const DropboxTokenURL + const DubAuthURL + const DubTokenURL + const DubUserInfoURL + const EndpointAccessToken + const EndpointAccounts + const EndpointLogout + const EndpointProviders + const EndpointReauthenticate + const EndpointReauthenticateIDToken + const EndpointUnlink + const FacebookAuthURL + const FacebookProfileURL + const FacebookTokenURL + const FigmaAuthURL + const FigmaProfileURL + const FigmaTokenURL + const GitHubAPIURL + const GitHubAuthURL + const GitHubTokenURL + const GitLabIssuer + const GoogleAuthURL + const GoogleJWKSURL + const GoogleTokenURL + const GoogleUserInfoURL + const GumroadAuthURL + const GumroadProfileURL + const GumroadTokenURL + const HubSpotAuthURL + const HubSpotTokenInfoURL + const HubSpotTokenURL + const HuggingFaceIssuer + const InstagramAuthURL + const InstagramMeURL + const InstagramTokenLifetime + const InstagramTokenURL + const KakaoAuthURL + const KakaoProfileURL + const KakaoTokenURL + const KickAuthURL + const KickProfileURL + const KickTokenURL + const LINEIssuer + const LinearAuthURL + const LinearGraphQLURL + const LinearTokenURL + const LinkFlag + const LinkedInIssuer + const MaxPhotoDataURL + const MicrosoftAuthURLFormat + const MicrosoftIssuerFormat + const MicrosoftJWKSURLFormat + const MicrosoftPhotoURLFormat + const MicrosoftTokenURLFormat + const MicrosoftUserInfoURL + const NaverAuthURL + const NaverProfileURL + const NaverTokenURL + const NotionAuthURL + const NotionMeURL + const NotionTokenURL + const NotionVersion + const ParamReauth + const ParamReauthTicket + const PatreonAuthURL + const PatreonProfileURL + const PatreonTokenURL + const PayPalAuthURL + const PayPalProfileURL + const PayPalSandboxAuthURL + const PayPalSandboxProfileURL + const PayPalSandboxTokenURL + const PayPalTokenURL + const PaybinIssuer + const PluginName + const PolarAuthURL + const PolarProfileURL + const PolarTokenURL + const PurposeIDTokenClaim + const PurposeState + const RailwayIssuer + const ReauthFresh + const ReauthSecondFactor + const RedditAuthURL + const RedditProfileURL + const RedditTokenURL + const RefreshMargin + const RobloxIssuer + const SalesforceIssuer + const SalesforceSandboxIssuer + const SignUpFlag + const SlackIssuer + const SnapchatAuthURL + const SnapchatMeURL + const SnapchatRevokeURL + const SnapchatScopePrefix + const SnapchatTokenURL + const SpotifyAuthURL + const SpotifyProfileURL + const SpotifyTokenURL + const TableAliasAccount + const TableNameAccount + const TikTokAuthURL + const TikTokRevokeURL + const TikTokTokenURL + const TikTokUserInfoURL + const TwitchIssuer + const UIMethodKind + const VKAuthURL + const VKTokenURL + const VKUserInfoURL + const VercelAuthURL + const VercelProfileURL + const VercelTokenURL + const WarnIDTokenReplayAllowed + const WarnLinkUnverifiedLocal + const WarnStateCookieCheckOff + const WeChatAuthURL + const WeChatLangCN + const WeChatLangEN + const WeChatRefreshURL + const WeChatTokenURL + const WeChatUserInfoURL + const XAuthURL + const XProfileURL + const XTokenURL + const YandexAuthURL + const YandexProfileURL + const YandexTokenURL + const ZoomAuthURL + const ZoomProfileURL + const ZoomTokenURL + var AccountAccess = sqlb.Col[string](TableAccount, ColAccountAccess) + var AccountActionValues = []AccountAction + var AccountCreated = sqlb.Col[time.Time](TableAccount, ColAccountCreated) + var AccountEmail = sqlb.Col[string](TableAccount, ColAccountEmail) + var AccountExpires = sqlb.Col[*time.Time](TableAccount, ColAccountExpires) + var AccountID = sqlb.Col[string](TableAccount, ColAccountID) + var AccountIDToken = sqlb.Col[*string](TableAccount, ColAccountIDToken) + var AccountProvider = sqlb.Col[string](TableAccount, ColAccountProvider) + var AccountRefresh = sqlb.Col[string](TableAccount, ColAccountRefresh) + var AccountRefreshExpires = sqlb.Col[*time.Time](TableAccount, ColAccountRefreshExpires) + var AccountRefreshParams = sqlb.Col[*string](TableAccount, ColAccountRefreshParams) + var AccountScope = sqlb.Col[string](TableAccount, ColAccountScope) + var AccountSubject = sqlb.Col[string](TableAccount, ColAccountSubject) + var AccountUserID = sqlb.Col[string](TableAccount, ColAccountUserID) + var CallbackParamValues = []CallbackParam + var ErrAccountExists = auth.NewError("oauth.account_exists", http.StatusConflict, ...) + var ErrAccountLinkedElsewhere = auth.NewError("oauth.linked_elsewhere", http.StatusConflict, ...) + var ErrAllProvidersBroken = errors.New("oauth: every provider is broken") + var ErrAppleKey = errors.New("oauth: the Apple key is a PEM-encoded PKCS #8 ECDSA P-256 private key") + var ErrAppleSecret = errors.New("oauth: AppleClientSecret needs teamID, clientID, keyID and a key") + var ErrAssertionConfig = errors.New(...) + var ErrAssertionKey = errors.New("oauth: ClientAssertion needs an ECDSA P-256 or RSA private key") + var ErrBadParam = auth.NewError("oauth.bad_param", http.StatusBadRequest, ...) + var ErrBadReturnTo = auth.NewError("oauth.bad_return_to", http.StatusBadRequest, ...) + var ErrBadScope = auth.NewError("oauth.bad_scope", http.StatusBadRequest, ...) + var ErrBadTokenKey = errors.New("oauth: StoreTokens needs a 32-byte key, or auth.WithSecret to derive one") + var ErrCallbackParam = errors.New("oauth: unknown callback parameter") + var ErrCannotRefresh = auth.NewError("oauth.cannot_refresh", http.StatusNotFound, ...) + var ErrDataTooLong = auth.NewError("oauth.data_too_long", http.StatusBadRequest, ...) + var ErrEmailMismatch = auth.NewError("oauth.email_mismatch", http.StatusConflict, ...) + var ErrEmailNotFound = auth.NewError("oauth.email_not_found", http.StatusForbidden, ...) + var ErrEmailNotVerified = auth.NewError("oauth.email_not_verified", http.StatusForbidden, ...) + var ErrEmailUnverified = auth.NewError("oauth.email_unverified", http.StatusForbidden, ...) + var ErrExchange = errors.New("oauth: provider exchange failed") + var ErrExposeNeedsStoreTokens = errors.New("oauth: ExposeAccessTokens needs StoreTokens") + var ErrFallbackIncomplete = errors.New("oauth: an OIDC Fallback needs AuthURL, TokenURL and UserInfoURL") + var ErrHostedDomain = fmt.Errorf("%w: the account is not in the required Google Workspace domain", ErrExchange) + var ErrIDTokenConfig = errors.New("oauth: IDToken needs JWKSURL and Issuers (ProfileFromToken needs both)") + var ErrIDTokenInvalid = auth.NewError("oauth.id_token_invalid", http.StatusUnauthorized, ...) + var ErrIDTokenReplayConfig = errors.New("oauth: ID-token replay protection") + var ErrIDTokenReplayed = auth.NewError("oauth.id_token_replayed", http.StatusUnauthorized, ...) + var ErrIDTokenUnsupported = auth.NewError("oauth.id_token_unsupported", http.StatusBadRequest, ...) + var ErrImportSubject = errors.New("oauth: ImportAccount needs a user id and a provider account id") + var ErrJWKSFailed = errors.New("oauth: provider key set could not be read") + var ErrLogoutProvider = auth.NewError("oauth.logout_provider", http.StatusBadRequest, ...) + var ErrLogoutUnsupported = auth.NewError("oauth.logout_unsupported", http.StatusNotFound, ...) + var ErrNoCallbackURL = errors.New("oauth: callback URLs need auth.WithBaseURL or oauth.CallbackURL") + var ErrNoProviders = errors.New("oauth: no providers") + var ErrNoTokens = auth.NewError("oauth.no_tokens", http.StatusNotFound, ...) + var ErrNonceRequired = auth.NewError("oauth.nonce_required", http.StatusUnauthorized, ...) + var ErrNotLinked = auth.NewError("oauth.not_linked", http.StatusNotFound, "Not found.") + var ErrPhotoSize = errors.New("oauth: MicrosoftPhoto size must be one of MicrosoftPhotoSizes") + var ErrProfileRefused = auth.NewError("oauth.profile_refused", http.StatusForbidden, ...) + var ErrProfileUnsupported = auth.NewError("oauth.profile_unsupported", http.StatusNotFound, ...) + var ErrProviderDenied = auth.NewError("oauth.denied", http.StatusBadRequest, ...) + var ErrProviderFailed = auth.NewError("oauth.provider_failed", http.StatusBadGateway, ...) + var ErrProviderIncomplete = errors.New(...) + var ErrProviderInitiatedConfig = errors.New(...) + var ErrProviderUnknown = errors.New("oauth: provider is not configured") + var ErrPublicClientPKCE = errors.New(...) + var ErrReauthNotLinked = auth.NewError("oauth.reauth_not_linked", http.StatusForbidden, ...) + var ErrRedirectRefused = errors.New(...) + var ErrRefreshFailed = auth.NewError("oauth.refresh_failed", http.StatusBadGateway, ...) + var ErrRequestParams = auth.NewError("oauth.params_unsupported", http.StatusBadRequest, ...) + var ErrServerContextTooLong = errors.New("oauth: WithServerContext values exceed 1024 characters as JSON") + var ErrSignUpDisabled = auth.NewError("oauth.sign_up_disabled", http.StatusForbidden, ...) + var ErrSignUpNotRequested = auth.NewError("oauth.sign_up_not_requested", http.StatusForbidden, ...) + var ErrStateCookieKey = errors.New(...) + var ErrStateInvalid = auth.NewError("oauth.state_invalid", http.StatusBadRequest, ...) + var MicrosoftPhotoSizes = []MicrosoftPhotoSize + var Presets = []string + var ProfileActionValues = []ProfileAction + var TableAccount = sqlb.Table + var TokenAuthValues = []TokenAuth + var ZohoRegionValues = []ZohoRegion + func AppleClientSecret(teamID, clientID, keyID string, key *ecdsa.PrivateKey) (func(ctx context.Context) (string, error), error) + func ApplePostedUser(raw string, p *Profile) + func AppleScopes() []string + func AtlassianProfile(u string) ... + func CallbackEndpoint(provider string) auth.EndpointID + func ClientAssertion(clientID, kid string, key crypto.Signer) (func(ctx context.Context, tokenURL string) (string, error), error) + func CloudflareProfile(u string) ... + func DiscordProfile(u string) ... + func DropboxProfile(u string) ... + func DubProfile(u string) ... + func FacebookProfile(u string) ... + func FigmaProfile(u string) ... + func FormPostEndpoint(provider string) auth.EndpointID + func GitHubProfile(base string) ... + func GoogleProfile(u string) ... + func GoogleProfileFor(u, hostedDomain string) ... + func GumroadProfile(u string) ... + func HubSpotProfile(base string) ... + func IDTokenEndpoint(provider string) auth.EndpointID + func InstagramProfile(u string) ... + func KakaoProfile(u string) ... + func KickProfile(u string) ... + func LinearProfile(u string) ... + func LogoutEndpoint(provider string) auth.EndpointID + func MicrosoftPhoto(...) (...) + func NaverProfile(u string) ... + func NotionProfile(u string) ... + func PKCEChallenge(verifier string) string + func ParseAppleKey(p8 []byte) (*ecdsa.PrivateKey, error) + func PatreonProfile(u string) ... + func RedditProfile(u, userAgent string) ... + func SnapchatProfile(u string) ... + func SpotifyProfile(u string) ... + func StartEndpoint(provider string) auth.EndpointID + func TikTokProfile(u string) ... + func UserInfoProfile(u, subjectClaim string) ... + func VKProfile(u, clientID string) ... + func ValidateProvider(prov Provider) error + func WeChatProfile(u string) func(ctx context.Context, hc *http.Client, ts TokenSet) (Profile, error) + func WithCallbackValues(ctx context.Context, v CallbackValues) context.Context + func XProfile(u string) ... + func YandexProfile(u string) ... + func ZoomProfile(u string) ... + type AccessTokenRequest struct + Provider string + type AccessTokenResult struct + AccessToken string + ExpiresAt *time.Time + IDToken string + Scopes []string + type Account struct + CreatedAt time.Time + Email string + ID string + Provider string + Scopes []string + Subject string + UserID string + type AccountAction string + const AccountLinked + const AccountLinkedByEmail + const AccountReauthenticated + const AccountSignIn + const AccountSignUp + type AccountsResult struct + Accounts []Account + type CallbackParam string + const CallbackParamDeviceID + const CallbackParamState + type CallbackRequest struct + AuthUser string + Code string + DeviceID string + Error string + ErrorDescription string + HD string + Iss string + Prompt string + Scope string + State string + User string + type CallbackResult struct + Created bool + Data string + EmailVerificationRequired bool + Linked bool + Reauthentication *auth.Reauthentication + RedirectTo string + SecondFactorRequired bool + ServerContext map[string]string + Token auth.Token + User auth.UserView + type CallbackValues struct + DeviceID string + State string + func CallbackValuesOf(ctx context.Context) CallbackValues + type Discoverer interface + Discover func(ctx context.Context, hc *http.Client) error + type Endpoints struct + AuthURL string + EndSessionURL string + IssParameterSupported bool + JWKSURL string + RevokeURL string + TokenURL string + UserInfoURL string + func (e Endpoints) Enabled() bool + type FormPostRequest struct + Code string + Error string + State string + User string + type FormPostResult struct + RedirectTo string + type FormPoster interface + PostsBack func() bool + type IDTokenClaim struct + Key string + Provider string + Until time.Time + type IDTokenConfig struct + Audiences []string + HostedDomain string + Issuers []string + JWKSURL string + ProfileFromToken bool + RequireNonce bool + func GoogleIDTokens(audiences ...string) IDTokenConfig + func GoogleIDTokensFor(hostedDomain string, audiences ...string) IDTokenConfig + func (c IDTokenConfig) Enabled() bool + type IDTokenReplayGuard interface + Claim func(ctx context.Context, claim IDTokenClaim) error + type IDTokenReplayGuardFunc func(ctx context.Context, claim IDTokenClaim) error + func (f IDTokenReplayGuardFunc) Claim(ctx context.Context, claim IDTokenClaim) error + type IDTokenRequest struct + AccessToken string + IDToken string + Nonce string + SignUp bool + type IDTokenVerifier interface + VerifyIDToken func(ctx context.Context, hc *http.Client, token, nonce string) (Profile, error) + type ImportAccount struct + Email string + Provider string + ProviderAccountID string + UserID string + type InitiatedExchanger interface + ExchangeInitiated func(ctx context.Context, hc *http.Client, code, redirectURI string) (Profile, error) + type IssuerChecker interface + ExpectedIssuer func() string + type Labeler interface + Label func() string + type Loader interface + Load func(ctx context.Context, hc *http.Client) error + type LogoutRequest struct + Provider string + ReturnTo string + type LogoutResult struct + URL string + type Logouter interface + EndSession func(ctx context.Context, hc *http.Client) (string, error) + type MicrosoftPhotoSize int + const MicrosoftPhoto120 + const MicrosoftPhoto240 + const MicrosoftPhoto360 + const MicrosoftPhoto432 + const MicrosoftPhoto48 + const MicrosoftPhoto504 + const MicrosoftPhoto64 + const MicrosoftPhoto648 + const MicrosoftPhoto96 + type OAuth2 struct + AuthParams url.Values + AuthURL string + AuthURLFragment string + AuthorizationIssuer string + CallbackParams []CallbackParam + ClientAssertion func(ctx context.Context, tokenURL string) (string, error) + ClientID string + ClientIDParam string + ClientSecret string + ClientSecretFunc func(ctx context.Context) (string, error) + ClientSecretParam string + DisplayName string + EndSessionURL string + FetchProfile func(ctx context.Context, hc *http.Client, accessToken string) (Profile, error) + FetchProfileFromTokens func(ctx context.Context, hc *http.Client, tokens TokenSet) (Profile, error) + FormPost bool + GetToken func(ctx context.Context, code, verifier, redirectURI string) (TokenSet, error) + Headers http.Header + ID string + IDToken IDTokenConfig + NoPKCE bool + OptionalParams []string + OptionalScopes []string + PostedUser func(raw string, p *Profile) + RefreshCallbackParams []CallbackParam + RefreshParams url.Values + RevokeURL string + ScopeSeparator string + Scopes []string + TokenAuth TokenAuth + TokenLifetime time.Duration + TokenParams url.Values + TokenURL string + func Apple(clientID string, secret func(ctx context.Context) (string, error), ...) *OAuth2 + func AppleWithEmail(clientID string, secret func(ctx context.Context) (string, error), ...) *OAuth2 + func Atlassian(clientID, clientSecret string) *OAuth2 + func Cloudflare(clientID, clientSecret string) *OAuth2 + func Discord(clientID, clientSecret string) *OAuth2 + func Dropbox(clientID, clientSecret string) *OAuth2 + func Dub(clientID, clientSecret string) *OAuth2 + func Facebook(clientID, clientSecret string) *OAuth2 + func Figma(clientID, clientSecret string) *OAuth2 + func GitHub(clientID, clientSecret string) *OAuth2 + func Google(clientID, clientSecret string) *OAuth2 + func Gumroad(clientID, clientSecret string) *OAuth2 + func HubSpot(clientID, clientSecret string) *OAuth2 + func Instagram(appID, appSecret string) *OAuth2 + func Kakao(clientID, clientSecret string) *OAuth2 + func Kick(clientID, clientSecret string) *OAuth2 + func Linear(clientID, clientSecret string) *OAuth2 + func Microsoft(tenant, clientID, clientSecret string) *OAuth2 + func Naver(clientID, clientSecret string) *OAuth2 + func Notion(clientID, clientSecret string) *OAuth2 + func Patreon(clientID, clientSecret string) *OAuth2 + func PayPal(clientID, clientSecret string, sandbox bool) *OAuth2 + func Polar(clientID, clientSecret string) *OAuth2 + func Reddit(clientID, clientSecret, userAgent string) *OAuth2 + func Snapchat(clientID, clientSecret string) *OAuth2 + func Spotify(clientID, clientSecret string) *OAuth2 + func TikTok(clientKey, clientSecret string) *OAuth2 + func VK(clientID, clientSecret string) *OAuth2 + func Vercel(clientID, clientSecret string) *OAuth2 + func WeChat(appID, appSecret, lang string) *OAuth2 + func X(clientID, clientSecret string) *OAuth2 + func Yandex(clientID, clientSecret string) *OAuth2 + func Zoom(clientID, clientSecret string) *OAuth2 + func (o *OAuth2) ApplyPosted(raw string, p *Profile) + func (o *OAuth2) AuthCodeURL(state, challenge, redirectURI string) string + func (o *OAuth2) AuthCodeURLWithParams(state, challenge, redirectURI string, rp RequestParams) string + func (o *OAuth2) EndSession(context.Context, *http.Client) (string, error) + func (o *OAuth2) Exchange(ctx context.Context, hc *http.Client, code, verifier, redirectURI string) (Profile, error) + func (o *OAuth2) ExchangeInitiated(ctx context.Context, hc *http.Client, code, redirectURI string) (Profile, error) + func (o *OAuth2) ExpectedIssuer() string + func (o *OAuth2) FetchProfileWith(ctx context.Context, hc *http.Client, ts TokenSet) (Profile, error) + func (o *OAuth2) Label() string + func (o *OAuth2) Load(ctx context.Context, hc *http.Client) error + func (o *OAuth2) Name() string + func (o *OAuth2) OptionalParamList() []string + func (o *OAuth2) OptionalScopeList() []string + func (o *OAuth2) PostsBack() bool + func (o *OAuth2) Refresh(ctx context.Context, hc *http.Client, refreshToken auth.Token) (TokenSet, error) + func (o *OAuth2) RefreshWithParams(ctx context.Context, hc *http.Client, refreshToken auth.Token, ...) (TokenSet, error) + func (o *OAuth2) Revoke(ctx context.Context, hc *http.Client, ts TokenSet) error + func (o *OAuth2) VerifyIDToken(ctx context.Context, hc *http.Client, token, nonce string) (Profile, error) + type OIDCProvider struct + AuthParams url.Values + ClientAssertion func(ctx context.Context, tokenURL string) (string, error) + ClientID string + ClientSecret string + DiscoveryHeaders http.Header + DisplayName string + EndSessionURL string + Fallback Endpoints + GetToken func(ctx context.Context, code, verifier, redirectURI string) (TokenSet, error) + Headers http.Header + ID string + IDToken IDTokenConfig + Issuer string + Logger *slog.Logger + OptionalParams []string + OptionalScopes []string + RefreshParams url.Values + RevokeURL string + Scopes []string + SubjectClaim string + TokenAuth TokenAuth + TokenLifetime time.Duration + TokenParams url.Values + func Auth0(domain, clientID, clientSecret string) *OIDCProvider + func Cognito(region, userPoolID, clientID, clientSecret string) *OIDCProvider + func GitLab(issuer, clientID, clientSecret string) *OIDCProvider + func HuggingFace(clientID, clientSecret string) *OIDCProvider + func Keycloak(issuer, clientID, clientSecret string) *OIDCProvider + func LINE(clientID, clientSecret string) *OIDCProvider + func LinkedIn(clientID, clientSecret string) *OIDCProvider + func OIDC(name, issuer, clientID, clientSecret string) *OIDCProvider + func Okta(issuer, clientID, clientSecret string) *OIDCProvider + func Paybin(clientID, clientSecret string) *OIDCProvider + func Railway(clientID, clientSecret string) *OIDCProvider + func Roblox(clientID, clientSecret string) *OIDCProvider + func Salesforce(issuer, clientID, clientSecret string) *OIDCProvider + func Slack(clientID, clientSecret string) *OIDCProvider + func Twitch(clientID, clientSecret string) *OIDCProvider + func Zitadel(issuer, clientID, clientSecret string) *OIDCProvider + func Zoho(region ZohoRegion, clientID, clientSecret string) *OIDCProvider + func (o *OIDCProvider) AuthCodeURL(state, challenge, redirectURI string) string + func (o *OIDCProvider) AuthCodeURLWithParams(state, challenge, redirectURI string, rp RequestParams) string + func (o *OIDCProvider) Discover(ctx context.Context, hc *http.Client) error + func (o *OIDCProvider) EndSession(ctx context.Context, hc *http.Client) (string, error) + func (o *OIDCProvider) Exchange(ctx context.Context, hc *http.Client, code, verifier, redirectURI string) (Profile, error) + func (o *OIDCProvider) ExchangeInitiated(ctx context.Context, hc *http.Client, code, redirectURI string) (Profile, error) + func (o *OIDCProvider) ExpectedIssuer() string + func (o *OIDCProvider) FetchProfileWith(ctx context.Context, hc *http.Client, ts TokenSet) (Profile, error) + func (o *OIDCProvider) Label() string + func (o *OIDCProvider) Load(ctx context.Context, hc *http.Client) error + func (o *OIDCProvider) Name() string + func (o *OIDCProvider) OptionalParamList() []string + func (o *OIDCProvider) OptionalScopeList() []string + func (o *OIDCProvider) Refresh(ctx context.Context, hc *http.Client, refreshToken auth.Token) (TokenSet, error) + func (o *OIDCProvider) Revoke(ctx context.Context, hc *http.Client, ts TokenSet) error + func (o *OIDCProvider) VerifyIDToken(ctx context.Context, hc *http.Client, token, nonce string) (Profile, error) + type Option func(*Plugin) + func AllowIDTokenReplay() Option + func AllowProviderInitiated(provider string, more ...string) Option + func AllowUnlinkingAll() Option + func CallbackURL(fn func(provider string) string) Option + func ErrorURL(path string) Option + func ExplicitSignUp(providers ...string) Option + func ExposeAccessTokens() Option + func LinkUnverifiedLocalEmail() Option + func NoImplicitLinking() Option + func NoSignUp(providers ...string) Option + func OnResolved(fn ResolvedHook) Option + func PostLogoutURL(fn func(provider string) string) Option + func RequireEmail() Option + func RequireSameEmailOnLink() Option + func RequireVerifiedEmail() Option + func RestartProviderInitiated(provider string, more ...string) Option + func SkipBrokenProviders() Option + func SkipStateCookieCheck() Option + func StateInCookie() Option + func StoreTokens(key ...[]byte) Option + func StoreTokensWith(s auth.Sealer) Option + func TrustedProviders(providers ...string) Option + func UpdateProfileOnSignIn() Option + func ValidateProfile(fn ProfileHook) Option + func VerifyEmailBeforeSignIn() Option + func WithHTTPClient(hc *http.Client) Option + func WithIDTokenReplayGuard(g IDTokenReplayGuard) Option + func WithProviders(ps ...Provider) Option + func WithServerContext(fn ServerContextFunc) Option + func WithStateTTL(d time.Duration) Option + type ParamRefresher interface + RefreshWithParams func(ctx context.Context, hc *http.Client, refreshToken auth.Token, ...) (TokenSet, error) + type ParamsAllowLister interface + OptionalParamList func() []string + type ParamsProvider interface + AuthCodeURLWithParams func(state, codeChallenge, redirectURI string, rp RequestParams) string + OptionalScopeList func() []string + type Plugin struct + func New(opts ...Option) *Plugin + func (p *Plugin) Accounts(ctx context.Context, userID string) ([]Account, error) + func (p *Plugin) Callback(ctx context.Context, provider string, in CallbackRequest) (CallbackResult, error) + func (p *Plugin) ImportAccount(ctx context.Context, in ImportAccount) error + func (p *Plugin) Init(a *auth.Auth) error + func (p *Plugin) Name() string + func (p *Plugin) Operations() []auth.Operation + func (p *Plugin) OptionErr() error + func (p *Plugin) Profile(ctx context.Context, userID, provider string) (Profile, error) + func (p *Plugin) Providers() []ProviderInfo + func (p *Plugin) RateLimits() []auth.RateRule + func (p *Plugin) Reauthenticate(ctx context.Context, in ReauthenticateRequest) (StartResult, error) + func (p *Plugin) ReauthenticateIDToken(ctx context.Context, in ReauthenticateIDTokenRequest) (auth.Reauthentication, error) + func (p *Plugin) Refresh(ctx context.Context, userID, provider string) (TokenSet, error) + func (p *Plugin) SignInCredentials(ctx context.Context, userID, exceptID string) (int, error) + func (p *Plugin) SignInMethods() []authhttp.SignInMethod + func (p *Plugin) SignsIn() bool + func (p *Plugin) Start(ctx context.Context, provider string, in StartRequest) (StartResult, error) + func (p *Plugin) Tables() []sqlb.Table + func (p *Plugin) Tokens(ctx context.Context, userID, provider string) (TokenSet, error) + func (p *Plugin) TypedMigrations(engine string, t auth.SQLTypes) ([]auth.Migration, error) + func (p *Plugin) Unlink(ctx context.Context, provider string) error + func (p *Plugin) UnlinkAccount(ctx context.Context, provider, accountID string) error + func (p *Plugin) UserTables() []auth.UserTable + func (p *Plugin) Validate(c *auth.Config) error + type PostedProfile interface + ApplyPosted func(raw string, p *Profile) + type Profile struct + Claims map[string]json.RawMessage + Email string + EmailVerified bool + Image string + Name string + Subject string + Tokens TokenSet + type ProfileAction string + const ActionLink + const ActionSignIn + const ActionSignUp + type ProfileEvent struct + Action ProfileAction + Data string + Profile Profile + Provider string + ProviderInitiated bool + Reauthentication bool + ServerContext map[string]string + UserID string + type ProfileFetcher interface + FetchProfileWith func(ctx context.Context, hc *http.Client, tokens TokenSet) (Profile, error) + type ProfileHook func(ctx context.Context, c *auth.Call, ev ProfileEvent) error + type Provider interface + AuthCodeURL func(state, codeChallenge, redirectURI string) string + Exchange func(ctx context.Context, hc *http.Client, code, codeVerifier, redirectURI string) (Profile, error) + Name func() string + type ProviderInfo struct + ID string + Name string + type ProvidersResult struct + Providers []ProviderInfo + type ReauthenticateIDTokenRequest struct + AccessToken string + IDToken string + Nonce string + Provider string + type ReauthenticateRequest struct + ErrorTo string + LoginHint string + Prompt string + Provider string + ReturnTo string + type Refresher interface + Refresh func(ctx context.Context, hc *http.Client, refreshToken auth.Token) (TokenSet, error) + type RequestAuthURLer interface + AuthCodeURLForRequest func(ctx context.Context, state, codeChallenge, redirectURI string, ...) string + type RequestParams struct + Extra url.Values + LoginHint string + Prompt string + Scopes []string + type ResolvedEvent struct + Created bool + Linked bool + type ResolvedHook func(ctx context.Context, c *auth.Call, ev ResolvedEvent) error + type Revoker interface + Revoke func(ctx context.Context, hc *http.Client, tokens TokenSet) error + type ServerContextFunc func(ctx context.Context, c *auth.Call, provider string) (map[string]string, error) + type StartRequest struct + Data string + ErrorTo string + Link string + LoginHint string + NewUserTo string + Params string + Prompt string + ReturnTo string + Scopes string + SignUp string + type StartResult struct + URL string + type TokenAuth string + const ClientSecretBasic + const ClientSecretPost + const PrivateKeyJWT + const PublicClient + type TokenSet struct + AccessToken auth.Token + ExpiresAt time.Time + IDToken auth.Token + Raw json.RawMessage + RefreshExpiresAt time.Time + RefreshParams url.Values + RefreshToken auth.Token + Scope string + type UnlinkRequest struct + AccountID string + Provider string + type ZohoRegion string + const ZohoAustralia + const ZohoCanada + const ZohoChina + const ZohoEU + const ZohoIndia + const ZohoJapan + const ZohoSaudi + const ZohoUK + const ZohoUS