Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StoreAccessToken ¶
func StoreAccessToken( logger lager.Logger, handler http.Handler, generator Generator, claimsParser ClaimsParser, accessTokenFactory db.AccessTokenFactory, userFactory db.UserFactory, ) http.Handler
Types ¶
type ClaimsParser ¶
func NewClaimsParser ¶
func NewClaimsParser() ClaimsParser
type Factory ¶
type Factory struct { }
func (Factory) GenerateAccessToken ¶
GenerateAccessToken generates a token with 20 bytes of entropy with the unix timestamp appended.
type Middleware ¶
type Middleware interface { SetAuthToken(http.ResponseWriter, string, time.Time) error UnsetAuthToken(http.ResponseWriter) GetAuthToken(*http.Request) string SetCSRFToken(http.ResponseWriter, string, time.Time) error UnsetCSRFToken(http.ResponseWriter) GetCSRFToken(*http.Request) string SetStateToken(http.ResponseWriter, string, time.Time) error UnsetStateToken(http.ResponseWriter) GetStateToken(*http.Request) string }
func NewMiddleware ¶
func NewMiddleware(secureCookies bool) Middleware
Click to show internal directories.
Click to hide internal directories.