package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

ClearProviders clears all OAuth2 providers from the goth lib.
GetOAuth2Providers returns the list of configured OAuth2 providers.
GetSupportedOAuth2Providers returns the map of unconfigured OAuth2 providers key is used as technical name (like in the callbackURL) values to display.
Init initializes the oauth source.
IsErrOpenIDConnectInitialize checks if an error is a ExternalLoginUserAlreadyExist.
NewCustomProvider is a constructor function for custom providers.
NewSimpleProvider is a constructor function for simple providers.
RegisterGothProvider registers a GothProvider.
RegisterProviderWithGothic register a OAuth2 provider in goth lib.
RemoveProviderFromGothic removes the given OAuth2 provider from the goth lib.
ResetOAuth2 clears existing OAuth2 providers and loads them from DB.

# Constants

ProviderHeaderKey is the HTTP header key.
UsersStoreKey is the key for the store.

# Variables

# Structs

Attribute describes the availability, and required status for a custom url configuration.
AuthSourceProvider provides a provider for an AuthSource.
BaseProvider represents a common base for Provider.
CustomProvider is a GothProvider that has CustomURL features.
CustomURLMapping describes the urls values to use when customizing OAuth2 provider URLs.
CustomURLSettings describes the urls values and availability to use when customizing OAuth2 provider URLs.
ErrOpenIDConnectInitialize represents a "OpenIDConnectInitialize" kind of error.
OpenIDProvider is a GothProvider for OpenID.
SessionsStore creates a gothic store from our session.
SimpleProvider is a GothProvider which does not have custom url features.
Source holds configuration for the OAuth2 login source.

# Interfaces

GothProvider is an interface for describing a single OAuth2 provider.
GothProviderCreator provides a function to create a goth.Provider.
Provider is an interface for describing a single OAuth2 provider.

# Type aliases

CustomProviderNewFn creates a goth.Provider using a custom url mapping.
SimpleProviderNewFn create goth.Providers without custom url features.