handlers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureOAuthHandler

func ConfigureOAuthHandler(ctx context.Context, baseURL string) error

ConfigureOAuthHandler initializes auth handler

func DefaultHandler

func DefaultHandler(w http.ResponseWriter, r *http.Request)

DefaultHandler handles index page

func ErrorHandler

func ErrorHandler(w http.ResponseWriter, r *http.Request)

ErrorHandler handles all app errors

func LogOutHandler

func LogOutHandler(w http.ResponseWriter, r *http.Request)

LogOutHandler resets cookie and redirects to home page

func OAuthCallbackHandler

func OAuthCallbackHandler(w http.ResponseWriter, r *http.Request)

OAuthCallbackHandler handles oauth callback

func OAuthLoginHandler

func OAuthLoginHandler(w http.ResponseWriter, r *http.Request)

OAuthLoginHandler handles oauth login

Types

This section is empty.

Jump to

Keyboard shortcuts

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