servant-auth-cookie v0.6.0 Release Notes

Release Date: 2017-11-08 // over 6 years ago
  • โž• Added

    getHeaderSession function to access session data without denying access to a route (issue #30).

    cookiedfunction:

    • support for multiple-parametered handlers (issue #34).

    - CookiedWrapper type synonym and CookieWrapperClass class to ease work with the function (issue #38).

    ๐Ÿ‘Œ Support for session cookies (issue #35):

    • ssExpirationType of SessionSetting record

    - ExpirationType datatype

    ๐Ÿ‘Œ Support for refreshing cookies (issue #37):

    - ssAutoRenew of SessionSetting record

    Type synonyms for common boilerplates:

    • AuthCookieExceptionHandler
    • AuthCookieHandler

    ๐Ÿ”„ Changed

    • cookied function's signature, added argument of type Proxy Session.
    • 0๏ธโƒฃ addSession* functions' signatures, added argument of SessionSettings type. Use def (from Data.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 with PayloadWrapper/ExtendedPayloadWrapper. Use the latter one in cookie handlers.
      • encryptCookie/decryptCookie merged with their session counterparts.

    โœ‚ Removed

    • ๐Ÿ‘€ acsExpirationFormat field and CannotParseExpirationTime exception constructor are no longer needed.

Previous changes from v0.5.0

  • ๐Ÿ”„ Changed

    • Server keys management:
      • ServerKey becomes ServerKeySet.
      • mkServerKeyFromBytes becomes mkPersistentServerKey.

    โœ‚ Deleted

    • mkServerKey (instead use custom instance of ServerKeySet.

    โž• Added

    • class Cookied and function cookied to faciliate usage of mutable server keys.