{"id":15501448,"url":"https://github.com/fgm/accounts-drupal","last_synced_at":"2026-03-01T20:34:50.290Z","repository":{"id":55077991,"uuid":"50913671","full_name":"fgm/accounts-drupal","owner":"fgm","description":"A Meteor 1.8 accounts package using Drupal 8 or Symfony sessions","archived":false,"fork":false,"pushed_at":"2021-01-12T13:50:55.000Z","size":194,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T14:55:45.775Z","etag":null,"topics":["accounts-drupal","atmospherejs","cookie","cookie-sharing","drupal","meteor","sso","symfony"],"latest_commit_sha":null,"homepage":"https://atmospherejs.com/meteor/fgm:accounts-drupal","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fgm.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}},"created_at":"2016-02-02T10:41:39.000Z","updated_at":"2021-01-12T13:50:58.000Z","dependencies_parsed_at":"2022-08-14T11:20:35.701Z","dependency_job_id":null,"html_url":"https://github.com/fgm/accounts-drupal","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/fgm/accounts-drupal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Faccounts-drupal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Faccounts-drupal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Faccounts-drupal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Faccounts-drupal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgm","download_url":"https://codeload.github.com/fgm/accounts-drupal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Faccounts-drupal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29983221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["accounts-drupal","atmospherejs","cookie","cookie-sharing","drupal","meteor","sso","symfony"],"created_at":"2024-10-02T09:04:23.368Z","updated_at":"2026-03-01T20:34:50.258Z","avatar_url":"https://github.com/fgm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accounts-drupal\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffgm%2Faccounts-drupal.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffgm%2Faccounts-drupal?ref=badge_shield)\n\n\nThis is an accounts package for Meteor 1.8, using Drupal 8 or pure Symfony\nbackend sessions transparently:\n\n- The Meteor app is configured to use a specific backend server for sessions\n- Any user with a session on the backend server is automatically logged in on\n  Meteor, without any UI-level intervention\n- Switching from anonymous to authenticated (and vice-versa) on the backend\n  server automatically refreshes the status on connected Meteor applications\n- Changes in the backend user account fields and roles reflects in real-time on\n  connected Meteor applications.\n- No dependency on [Drupal DDP] nor any intervening `ddp.js` NodeJS server.\n\n\n## Requirements\n\n- Meteor 1.8.x. \n  - Use the latest 0.3.x version of the package to support Meteor 1.2 to 1.7.\n- For the backend site: \n  - either Drupal 8.0.x to 8.6.x, with the Drupal [meteor module] from FGM's \n    Github, not to be confused with the existing [meteor sandbox] from \n    drupal.org. Drupal [8.7.x session changes] will be updated in a later\n    version\n  - or Symfony 3.4.x or 4.x, with equivalent support in a Symfony backend. Such\n    existing code is currently only available as proprietary. Follow issue for\n    an [Open Source version] of the Symfony backend\n- The cookie domain for the Meteor application *must* be the same or a subdomain\n  of the backend site. This is a consequence of [cookie scope]. Using the same\n  domain on different IP ports works, as long as the backend cookies settings:\n  - do not include the port number (included by default in Symfony)\n  - do not mark the cookie as `HTTPonly` (marked by default in Symfony)\n\n- If the Template package is present, Blaze helpers will be available, but that\n  package is not a requirement.\n\n[8.7.x session changes]:  https://github.com/fgm/accounts-drupal/issues/22\n[Open Source version]: https://github.com/fgm/meteor/issues/8\n[cookie scope]: https://en.wikipedia.org/wiki/HTTP_cookie#Domain_and_Path\n[meteor module]: https://github.com/FGM/meteor\n[meteor sandbox]: https://www.drupal.org/sandbox/rgarand/2020935\n[Drupal DDP]: https://www.drupal.org/sandbox/bfodeke/2354859\n\n\n## Adding the package to your application\n\nThe package needs to be added to both the client and server parts of your Meteor\napplication. Assuming you defined a `logger` instance of a Meteor-compatible \nlogger component like [filog] for both sides, the setup looks like:\n\n[filog]: https://npmjs.org/filog\n\n```ecmascript 6\n// (app)/package.json\n// ...\n  \"meteor\": {\n    \"mainModule\": {\n      \"client\": \"imports/client/main.js\",\n      \"server\": \"imports/server/main.js\"\n    }\n  },\n// ...\n```\n\n```ecmascript 6\n// (app)/imports/client/main.js\n\nMeteor.startup(() =\u003e {\n  // Configure a logger instance, then...\n  onStartup(logger, Meteor.settings.public);\n));\n```\n\n```ecmascript 6\n// (app)/imports/server/main.js\n\nMeteor.startup(() =\u003e {\n  // Configure a logger instance, then...\n  onStartup(logger, Meteor.settings);\n});\n```\n\n\n## Updaters note after package version 0.2.6\n\nIf you disabled update buffering on the client using code like the fragment\nbelow to support Meteor 1.3.3 and later with earlier versions of this package\nwhich relied on `arunoda:streams` or the `fgm:streams` fork, this stopped being\nneeded after version 0.2.6:\n\n    Meteor.startup(function () {\n      Meteor.connection._bufferedWritesInterval = 0;\n    });\n\nThe package now uses `rocketchat:streamer` instead, so you *should* remove this\nline to take advantage of the buffered writes present since Meteor 1.3.3.\n\n\u003c!--\n# Running a demo\n# Configuring the package\n## Drupal configuration\n## Meteor configuration\n# Logging in and out\n--\u003e\n\n# Running tests\n\nThe package can be tested once added to an application. Note that the\n`test-packages` command needs a `--settings` argument like a normal application\nlaunch. This can be the example settings file from the package.\n\n```bash\ncd \u003csome parent dir\u003e\ngit clone https://github.com/fgm/accounts-drupal.git\ncd accounts-drupal\nmeteor yarn\nmeteor test-packages --driver-package meteortesting:mocha --settings ./example.settings.json ./  \n\n# This will run the server-side tests and report on them. \n# Open your browser at http://localhost:3000 to observe the client-side test report.\n```\n\nRemember not to have anything already running on port 3000, like an actual Meteor\napplication, to avoid IP binding conflicts.\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffgm%2Faccounts-drupal.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffgm%2Faccounts-drupal?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgm%2Faccounts-drupal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgm%2Faccounts-drupal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgm%2Faccounts-drupal/lists"}