{"id":15430874,"url":"https://github.com/iconnect/rails-session","last_synced_at":"2025-03-01T05:30:40.811Z","repository":{"id":19717811,"uuid":"87718128","full_name":"iconnect/rails-session","owner":"iconnect","description":"Decrypt Ruby on Rails sessions in Haskell","archived":false,"fork":false,"pushed_at":"2024-08-22T12:53:58.000Z","size":68,"stargazers_count":9,"open_issues_count":3,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-28T19:38:18.875Z","etag":null,"topics":["haskell","rails","ruby","web"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iconnect.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-09T15:22:09.000Z","updated_at":"2024-08-22T12:54:01.000Z","dependencies_parsed_at":"2025-01-28T19:35:10.520Z","dependency_job_id":"a0f561e1-ba19-41ff-ba6f-e1e5ee0ee192","html_url":"https://github.com/iconnect/rails-session","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iconnect%2Frails-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iconnect%2Frails-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iconnect%2Frails-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iconnect%2Frails-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iconnect","download_url":"https://codeload.github.com/iconnect/rails-session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241322618,"owners_count":19944073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","rails","ruby","web"],"created_at":"2024-10-01T18:19:18.367Z","updated_at":"2025-03-01T05:30:40.789Z","avatar_url":"https://github.com/iconnect.png","language":"Haskell","readme":"# rails-session\n\n[![Build Status](https://travis-ci.org/iconnect/rails-session.svg?branch=issue-3)](https://travis-ci.org/iconnect/rails-session)\n\nHaskell library to decrypt Ruby on Rails sessions in order to allow you to share\nthem between Ruby on Rails and Haskell web applications.\n\n## Usage\n\n``` haskell\n-- | Read session id from encrypted Rails cookie on the filesystem.\nexample :: FilePath -\u003e IO (Maybe ByteString)\nexample path = do\n  rawCookie \u003c- BS.readFile path\n  let appSecret = mkSecretKeyBase \"development_secret_token\"\n  let cookie = mkCookie rawCookie\n  case decodeEither Nothing appSecret cookie of\n    Left _ -\u003e\n      pure Nothing\n    Right rubyObject -\u003e\n      pure $ sessionId rubyObject\n```\n\nSee more in [Spec.hs](https://github.com/iconnect/rails-session/blob/master/test/Spec.hs).\n\n## Contributing\n\n1. Fork it.\n2. Create your feature branch (`git checkout -b my-new-feature`).\n3. Commit your changes (`git commit -am 'Add some feature'`).\n4. Push to the branch (`git push origin my-new-feature`).\n5. Create new Pull Request.\n\n### Contributors\n\n- [@filib](https://github.com/filib)\n- [@adinapoli](https://github.com/adinapoli)\n- [@saurabhnanda](https://github.com/saurabhnanda)\n\n## Similar Libraries\n\n- [adjust/gorails](https://github.com/adjust/gorails)\n- [cconstantin/plug_rails_cookie_session_store](https://github.com/cconstantin/plug_rails_cookie_session_store)\n- [instore/rails-cookie-parser](https://github.com/instore/rails-cookie-parser)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficonnect%2Frails-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficonnect%2Frails-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficonnect%2Frails-session/lists"}