sso

package
v0.0.0-...-e76cf3b Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("sso")
View Source
var SessionStore = sessions.NewCookieStore([]byte("very secret"))

Functions

func Authenticate

func Authenticate(next http.Handler) http.Handler

func ClientError

func ClientError(w http.ResponseWriter, status int)

func HandleIBMIdLogin

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

func HandleIBMIdLoginCallback

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

func Home

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

func LogRequest

func LogRequest(next http.Handler) http.Handler

func Login

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

func Logout

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

func NotFound

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

func RecoverPanic

func RecoverPanic(next http.Handler) http.Handler

func Render

func Render(w http.ResponseWriter, r *http.Request, name string, data interface{})

func SecureHeaders

func SecureHeaders(next http.Handler) http.Handler

func ServerError

func ServerError(w http.ResponseWriter, err error)

func Token

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

Types

type General

type General struct {
	Email string `json:"email"`
}

type RedirectData

type RedirectData struct {
	Data string `json:"data"`
}

type User

type User struct {
	UID   string `json:"uid"`
	Email string `json:"email"`
}

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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