handlers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiKeyHandler added in v0.0.6

func ApiKeyHandler(ctx *app.AppContext) http.Handler

func ApiKeyRequired added in v0.0.6

func ApiKeyRequired(ctx *app.AppContext, keyString string, w http.ResponseWriter, r *http.Request, next http.Handler)

func AuthRequired

func AuthRequired(ctx *app.AppContext, next http.Handler) http.Handler

AuthRequired ensures the user has successfully completed the authentication process including any 2FA.

func ChangePasswordHandler

func ChangePasswordHandler(ctx *app.AppContext) http.Handler

func ConsentHandler added in v0.0.6

func ConsentHandler(ctx *app.AppContext) http.Handler

func ForgotPasswordHandler

func ForgotPasswordHandler(ctx *app.AppContext) http.Handler

func IndexHandler

func IndexHandler(ctx *app.AppContext) http.Handler

func LoginHandler

func LoginHandler(ctx *app.AppContext) http.Handler

func LoginRequired

func LoginRequired(ctx *app.AppContext, next http.Handler) http.Handler

LoginRequired ensure the user has logged in and has a valid FreeIPA session. Stores the ipa.UserRecord in the request context

func LogoutHandler

func LogoutHandler(ctx *app.AppContext) http.Handler

func NewSSHPubKeyHandler

func NewSSHPubKeyHandler(ctx *app.AppContext) http.Handler

func OTPTokensHandler

func OTPTokensHandler(ctx *app.AppContext) http.Handler

func QRCode

func QRCode(otptoken *ipa.OTPToken) (string, error)

func RateLimit

func RateLimit(ctx *app.AppContext, next http.Handler) http.Handler

func RemoveAllOTPTokens

func RemoveAllOTPTokens(uid, sid string) error

func ResetPasswordHandler

func ResetPasswordHandler(ctx *app.AppContext) http.Handler

func SSHPubKeyHandler

func SSHPubKeyHandler(ctx *app.AppContext) http.Handler

func SetupAccountHandler

func SetupAccountHandler(ctx *app.AppContext) http.Handler

func SetupQuestionHandler

func SetupQuestionHandler(ctx *app.AppContext) http.Handler

func TwoFactorAuthHandler

func TwoFactorAuthHandler(ctx *app.AppContext) http.Handler

func TwoFactorHandler

func TwoFactorHandler(ctx *app.AppContext) http.Handler

func UpdateSecurityQuestionHandler

func UpdateSecurityQuestionHandler(ctx *app.AppContext) http.Handler

func UserNameRequired

func UserNameRequired(ctx *app.AppContext, next http.Handler) http.Handler

UserNameRequired ensure the user has submitted a valid username.

Types

This section is empty.

Jump to

Keyboard shortcuts

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