{"id":21065100,"url":"https://github.com/prolificinteractive/simplesamlphp-module-mongo","last_synced_at":"2025-09-06T10:35:00.856Z","repository":{"id":57045175,"uuid":"112641431","full_name":"prolificinteractive/simplesamlphp-module-mongo","owner":"prolificinteractive","description":"SimpleSAML Store implementation for MongoDB","archived":false,"fork":false,"pushed_at":"2019-02-20T22:57:16.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":26,"default_branch":"develop","last_synced_at":"2025-05-16T02:38:19.083Z","etag":null,"topics":["modules","mongodb","php","simplesamlphp","simplesamlphp-module","store"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prolificinteractive.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-11-30T17:40:50.000Z","updated_at":"2018-01-11T23:44:39.000Z","dependencies_parsed_at":"2022-08-24T04:50:24.647Z","dependency_job_id":null,"html_url":"https://github.com/prolificinteractive/simplesamlphp-module-mongo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/prolificinteractive/simplesamlphp-module-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prolificinteractive","download_url":"https://codeload.github.com/prolificinteractive/simplesamlphp-module-mongo/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273892835,"owners_count":25186561,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["modules","mongodb","php","simplesamlphp","simplesamlphp-module","store"],"created_at":"2024-11-19T17:53:37.963Z","updated_at":"2025-09-06T10:35:00.829Z","avatar_url":"https://github.com/prolificinteractive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleSAMLphp Mongo Module\n\n[![Travis build status](https://img.shields.io/travis/prolificinteractive/simplesamlphp-module-mongo.svg?style=flat-square)](https://travis-ci.org/prolificinteractive/simplesamlphp-module-mongo)\n\nThe mongo module is an implementation of a SimpleSAMLphp (SSP) data store.   \n\n## Features\n\n- Can be used for backend storage of sessions in MongoDB\n- Includes support for replica sets\n\n## Requirements\n\nPHP 5.4 through 5.6 \n\n[SimpleSAMLphp](https://simplesamlphp.org/)\n\n[MongoDB](https://www.mongodb.com/)\n\n[Mongo PHP extension](http://php.net/manual/en/book.mongo.php)\n\n## Installation\n\nIf your project manages SSP with [Composer](https://getcomposer.org/) run:\n```\nphp composer.phar require prolificinteractive/simplesamlphp-module-mongo\n```\nThis command will add `prolificinteractive/simplesamlphp-module-mongo` to your projects' composer.json file and install the module \ninto SSP's `modules` directory, which relative to your project's root directory is conventionally `vendor/simplesamlphp/simplesamlphp/modules`.\n\n## Usage\n\nSet the `store.type` option in your SSP config file to `mongo:Store`.\n\nProvide your MongoDB connection information to the module by copying the file provided in the `config-templates` directory into SSP's config directory, and setting the following environment variables:\n```\nDB_MONGODB_HOST\nDB_MONGODB_PORT\nDB_MONGODB_USERNAME\nDB_MONGODB_PASSWORD\nDB_MONGODB_DATABASE\n``` \n\nIf your connecting to a replica set, you'll need to set the following environment variables below as well:\n```\nDB_DEFAULT_CONNECTION   # Must contain the substring \"_replica\"\nDB_MONGODB_REPLICASET\nDB_MONGODB_READ_PREFERENCE\n```\nSee the [Mongo extension PHP Manual](http://php.net/manual/en/mongo.manual.php) for more information about appropriate values for `DB_MONGODB_REPLICASET` and `DB_MONGODB_READ_PREFERENCE`. \n\nFinally, you can enable the module by creating an empty file name `enable` in the `vendor/simplesamlphp/simplesamlphp/modules/mongo` directory.\n\n**Note:** This module stores PHP session data in the `session` collection. \n\n## Contributing to SimpleSAMLphp Mongo Module\n\nTo report a bug or enhancement request, feel free to file an issue under the respective heading.\n\nIf you wish to contribute to the project, fork this repo and submit a pull request.\n\n## License\n\n![prolific](https://s3.amazonaws.com/prolificsitestaging/logos/Prolific_Logo_Full_Color.png)\n\nCopyright (c) 2017 Prolific Interactive\n\nSimpleSAMLphp Mongo Module is maintained and sponsored by Prolific Interactive. It may be redistributed under the terms specified in the [LICENSE] file.\n\n[LICENSE]: ./LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolificinteractive%2Fsimplesamlphp-module-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprolificinteractive%2Fsimplesamlphp-module-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolificinteractive%2Fsimplesamlphp-module-mongo/lists"}