servant-auth-cookie v0.6.0 Release Notes
Release Date: 2017-11-08 // over 7 years ago-
โ Added
getHeaderSession
function to access session data without denying access to a route (issue #30).cookied
function:- support for multiple-parametered handlers (issue #34).
-
CookiedWrapper
type synonym andCookieWrapperClass
class to ease work with the function (issue #38).๐ Support for session cookies (issue #35):
ssExpirationType
ofSessionSetting
record
-
ExpirationType
datatype๐ Support for refreshing cookies (issue #37):
-
ssAutoRenew
ofSessionSetting
recordType synonyms for common boilerplates:
AuthCookieExceptionHandler
AuthCookieHandler
๐ Changed
cookied
function's signature, added argument of typeProxy Session
.- 0๏ธโฃ
addSession*
functions' signatures, added argument ofSessionSettings
type. Usedef
(fromData.Default
) for fallback mode. - ๐ Fixed bug with wrong time format in
removeSession*
functions (issue #39). - ๐จ Refactored internals:
- Format of encoding cookies is different.
Cookie
record is completely changed.WithMetadata
replaced withPayloadWrapper
/ExtendedPayloadWrapper
. Use the latter one in cookie handlers.encryptCookie
/decryptCookie
merged with their session counterparts.
โ Removed
- ๐
acsExpirationFormat
field andCannotParseExpirationTime
exception constructor are no longer needed.
Previous changes from v0.5.0
-
๐ Changed
- Server keys management:
ServerKey
becomesServerKeySet
.mkServerKeyFromBytes
becomesmkPersistentServerKey
.
โ Deleted
mkServerKey
(instead use custom instance ofServerKeySet
.
โ Added
- class
Cookied
and functioncookied
to faciliate usage of mutable server keys.
- Server keys management: