Documentation
¶
Index ¶
- type AuthProvider
- type AuthProviders
- func (a *AuthProviders) Logout(ctx context.Context, w http.ResponseWriter) (err error)
- func (a *AuthProviders) LogoutURL(redirectTo string) string
- func (a *AuthProviders) Providers(ctx context.Context) ([]*AuthProvider, error)
- func (a *AuthProviders) RequireUser(authorizedHandler, unauthorizedHandler http.Handler) http.Handler
- func (a *AuthProviders) User(ctx context.Context) (*goth.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
func (*AuthProvider) LoginURL ¶
func (a *AuthProvider) LoginURL(redirectTo string) string
func (*AuthProvider) Logout ¶
func (a *AuthProvider) Logout(ctx context.Context, w http.ResponseWriter) ( err error)
type AuthProviders ¶
func NewAuthProviders ¶
func NewAuthProviders(baseURL, sessionNamespace string, providers ...goth.Provider) (a *AuthProviders)
func NewLazyAuthProviders ¶
func (*AuthProviders) Logout ¶
func (a *AuthProviders) Logout(ctx context.Context, w http.ResponseWriter) ( err error)
func (*AuthProviders) LogoutURL ¶
func (a *AuthProviders) LogoutURL(redirectTo string) string
func (*AuthProviders) Providers ¶
func (a *AuthProviders) Providers(ctx context.Context) ( []*AuthProvider, error)
func (*AuthProviders) RequireUser ¶
func (a *AuthProviders) RequireUser( authorizedHandler, unauthorizedHandler http.Handler) http.Handler