handler

package
v0.0.0-...-84de27b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	*api.OAuth2
	APIAddr string
	Domain  string
}

func NewHandler

func NewHandler(domain, clientID, clientSecret, redirect string) *Handler

func (*Handler) Callback

func (h *Handler) Callback(loggedInPath string) http.HandlerFunc

func (*Handler) Login

func (a *Handler) Login(aud string) http.HandlerFunc

func (*Handler) Logout

func (a *Handler) Logout(returnTo string) http.HandlerFunc

func (*Handler) RenderFile

func (a *Handler) RenderFile(name string, data []byte) http.HandlerFunc

func (*Handler) RequireLogin

func (a *Handler) RequireLogin(redirect string, next http.HandlerFunc) http.HandlerFunc

func (*Handler) WriteFile

func (a *Handler) WriteFile(name string) http.HandlerFunc

Jump to

Keyboard shortcuts

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