Documentation ¶
Index ¶
- Variables
- func Authenticate(next http.Handler) http.Handler
- func ClientError(w http.ResponseWriter, status int)
- func HandleIBMIdLogin(w http.ResponseWriter, r *http.Request)
- func HandleIBMIdLoginCallback(w http.ResponseWriter, r *http.Request)
- func Home(w http.ResponseWriter, r *http.Request)
- func LogRequest(next http.Handler) http.Handler
- func Login(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func NotFound(w http.ResponseWriter, r *http.Request)
- func RecoverPanic(next http.Handler) http.Handler
- func Render(w http.ResponseWriter, r *http.Request, name string, data interface{})
- func SecureHeaders(next http.Handler) http.Handler
- func ServerError(w http.ResponseWriter, err error)
- func Token(w http.ResponseWriter, r *http.Request)
- type General
- type RedirectData
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var LOGGER = logging.MustGetLogger("sso")
View Source
var SessionStore = sessions.NewCookieStore([]byte("very secret"))
Functions ¶
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 ServerError ¶
func ServerError(w http.ResponseWriter, err error)
Types ¶
type RedirectData ¶
type RedirectData struct {
Data string `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.