gauth

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2016 License: MIT Imports: 8 Imported by: 0

README

Gauth

GoDoc Build Status codecov.io

A wrapper for gologin for Google OAuth.

Google authentication made easy, see the example to get started!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func New

func New(id, secret, redirectURL string) Auth

func (*Auth) CallbackHandler

func (a *Auth) CallbackHandler(redirectURL string) http.Handler

func (*Auth) ConditionalHandler

func (a *Auth) ConditionalHandler(logged bool, redirectURL string, h http.Handler) http.Handler

func (*Auth) LoginHandler

func (a *Auth) LoginHandler() http.Handler

func (*Auth) LogoutHandler

func (a *Auth) LogoutHandler(redirectURL string) http.Handler

func (*Auth) WhoAmI

func (a *Auth) WhoAmI(r *http.Request) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL