whgoth.v1: gopkg.in/go-webhelp/whgoth.v1 Index | Files

package whgoth

import "gopkg.in/go-webhelp/whgoth.v1"

Index

Package Files

goth.go

type AuthProvider Uses

type AuthProvider struct {
    goth.Provider
    // contains filtered or unexported fields
}

func (*AuthProvider) LoginURL Uses

func (a *AuthProvider) LoginURL(redirectTo string) string

func (*AuthProvider) Logout Uses

func (a *AuthProvider) Logout(ctx context.Context, w http.ResponseWriter) (
    err error)

func (*AuthProvider) User Uses

func (a *AuthProvider) User(ctx context.Context) (*goth.User, error)

type AuthProviders Uses

type AuthProviders struct {
    whmux.Dir
    // contains filtered or unexported fields
}

func NewAuthProviders Uses

func NewAuthProviders(baseURL, sessionNamespace string,
    providers ...goth.Provider) (a *AuthProviders)

func NewLazyAuthProviders Uses

func NewLazyAuthProviders(baseURL, sessionNamespace string,
    providers func(context.Context) ([]goth.Provider, error)) (
    a *AuthProviders)

func (*AuthProviders) Logout Uses

func (a *AuthProviders) Logout(ctx context.Context, w http.ResponseWriter) (
    err error)

func (*AuthProviders) LogoutURL Uses

func (a *AuthProviders) LogoutURL(redirectTo string) string

func (*AuthProviders) Providers Uses

func (a *AuthProviders) Providers(ctx context.Context) (
    []*AuthProvider, error)

func (*AuthProviders) RequireUser Uses

func (a *AuthProviders) RequireUser(
    authorizedHandler, unauthorizedHandler http.Handler) http.Handler

func (*AuthProviders) User Uses

func (a *AuthProviders) User(ctx context.Context) (*goth.User, error)

Package whgoth imports 17 packages (graph). Updated 2017-02-20. Refresh now. Tools for package owners.