Popularity
7.2
Growing
Activity
0.0
Stable
9
9
2

Monthly Downloads: 16
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Web    
Latest version: v0.1.2.0

rails-session alternatives and similar packages

Based on the "Web" category.
Alternatively, view rails-session alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of rails-session or a related project?

Add another 'Web' Package

README

rails-session

Build Status

Haskell library to decrypt Ruby on Rails sessions in order to allow you to share them between Ruby on Rails and Haskell web applications.

Usage

-- | Read session id from encrypted Rails cookie on the filesystem.
example :: FilePath -> IO (Maybe ByteString)
example path = do
  rawCookie <- BS.readFile path
  let appSecret = mkSecretKeyBase "development_secret_token"
  let cookie = mkCookie rawCookie
  case decodeEither Nothing appSecret cookie of
    Left _ ->
      pure Nothing
    Right rubyObject ->
      pure $ sessionId rubyObject

See more in Spec.hs.

Contributing

  1. Fork it.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create new Pull Request.

Contributors

Similar Libraries