Versions in this module Expand all Collapse all v0 v0.0.6 Jan 9, 2018 Changes in this version + const CSRFFieldName + const ContextKeyApi + const CookieKeyWYAF + type ApiKeyClient struct + ClientID string + Description string + Name string + Scopes string type AppContext + ApiClients map[string]*ApiKeyClient + HydraClient *sdk.Client + func (app *AppContext) GetWYAF(session *sessions.Session) string v0.0.5 Aug 1, 2017 Changes in this version + const AccountSetupSalt + const ContextKeyUser + const CookieKeyAuthenticated + const CookieKeySID + const CookieKeySession + const CookieKeyUser + const ResetSalt + const TokenRegex + func NewIpaClient(withKeytab bool) *ipa.Client + type AppContext struct + DB *sqlx.DB + Tmpldir string + func NewAppContext() (*AppContext, error) + func (a *AppContext) SendEmail(email, subject, template string, data map[string]interface{}) error + func (app *AppContext) GetSession(r *http.Request) (*sessions.Session, error) + func (app *AppContext) GetUser(r *http.Request) *ipa.UserRecord + func (app *AppContext) RenderError(w http.ResponseWriter, status int) + func (app *AppContext) RenderNotFound(w http.ResponseWriter) + func (app *AppContext) RenderTemplate(w http.ResponseWriter, name string, data interface{})