Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles OAuth2 providers.
func NewManager ¶
func NewManager(ctx context.Context, clientID, clientSecret, redirectURL, oidcDiscoveryEndpoint string) *Manager
NewManager returns a new Manager.
func (*Manager) AddProvider ¶
AddProvider add a new OAuth2 provider.
type Provider ¶
type Provider interface { GetUserExtraKey() string GetRedirectURL(state string) string GetProfile(ctx context.Context, code string) (*Profile, error) PopulateUserCreationWithProfileID(user *model.UserCreationRequest, profile *Profile) PopulateUserWithProfileID(user *model.User, profile *Profile) UnsetUserProfileID(user *model.User) }
Provider is an interface for OAuth2 providers.
Click to show internal directories.
Click to hide internal directories.