Documentation ¶
Index ¶
- Constants
- Variables
- func Register(reg *objects.Registry)
- type Component
- func (c *Component) CurrentUser(r *http.Request) *User
- func (c *Component) InitializeConfig(cfg config.Settings) (err error)
- func (c *Component) LoginURL(r *http.Request, providerName string, dest string) string
- func (c *Component) LogoutURL(r *http.Request, dest string) string
- func (c *Component) MatchHTTP(r *http.Request) bool
- func (c *Component) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Config
- type Requestor
- type User
Constants ¶
View Source
const ( SessionKeyFmt = "_auth_%s" ReturnQueryParam = "return" )
Variables ¶
View Source
var ( UserSessionKey = fmt.Sprintf(SessionKeyFmt, "user") ProviderSessionKey = fmt.Sprintf(SessionKeyFmt, "provider") ReturnSessionKey = fmt.Sprintf(SessionKeyFmt, "return") )
Functions ¶
Types ¶
type Component ¶
type Component struct { Log log.DebugLogger `com:"singleton"` Session sessions.Session `com:"singleton"` Config }
func (*Component) InitializeConfig ¶
Click to show internal directories.
Click to hide internal directories.