iris/adaptors
Gerasimos (Makis) Maropoulos d51c0b7b50 Implement feature request: http://support.iris-go.com/d/29-mark-cookie-for-session-as-secure
Example:

app := iris.New()
app.Adapt(httprouter.New())
// IMPORTANT
cookieName := "mycustomsessionid"
// AES only supports key sizes of 16, 24 or 32 bytes.
// You either need to provide exactly that amount or you derive the key
from what you type in.
hashKey := []byte("the-big-and-secret-fash-key-here")
blockKey := []byte("lot-secret-of-characters-big-too")
secureCookie := securecookie.New(hashKey, blockKey)

app.Adapt(sessions.New(sessions.Config{
Cookie: cookieName,
Encode: secureCookie.Encode,
Decode: secureCookie.Decode,
}))

Former-commit-id: 6fe5ce6cb834d55862242e08405fad4e721caa5b
2017-03-18 12:22:20 +02:00
..
cors Adapt the httprouter on cors adaptor example 2017-02-17 08:25:25 +02:00
gorillamux Add a simple pprof middleware for newcomers 2017-03-05 03:36:00 +02:00
httprouter Add some _examples in the main repository too. 2017-03-13 15:16:12 +02:00
sessions Implement feature request: http://support.iris-go.com/d/29-mark-cookie-for-session-as-secure 2017-03-18 12:22:20 +02:00
typescript Nothing special: when iris.DevLogger() used then group logs based on time. 2017-02-28 05:37:53 +02:00
view Nothing special here, just split the static handler to a package-level func and per-route func (same as before) 2017-03-14 02:58:56 +02:00
websocket Nothing special: when iris.DevLogger() used then group logs based on time. 2017-02-28 05:37:53 +02:00