auth

package
v0.0.0-...-491560f Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthURL

func GetAuthURL() (string, error)

GetAuthURL returns URL to authenticate with Google

func Initialize

func Initialize()

Initialize initializes the authentication options (right now only Google is supported)

func RequireBearerMiddleware

func RequireBearerMiddleware(handle context.HandlerWithContext) httprouter.Handle

RequireBearerMiddleware ensures that the Bearer token is valid and assigns the user to the current context

func TokenizeHandler

func TokenizeHandler(state string, code string) (string, error)

TokenizeHandler handles the callback code and will create a user

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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