{"id":20718642,"url":"https://github.com/os2web/os2web_simplesaml","last_synced_at":"2026-02-07T02:01:19.980Z","repository":{"id":57033270,"uuid":"222924272","full_name":"OS2web/os2web_simplesaml","owner":"OS2web","description":"Drupal 8 os2web_simplesaml module","archived":false,"fork":false,"pushed_at":"2026-01-13T12:49:01.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"8.x","last_synced_at":"2026-01-13T15:41:32.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OS2web.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2019-11-20T11:40:26.000Z","updated_at":"2025-01-15T13:54:07.000Z","dependencies_parsed_at":"2025-07-05T15:46:08.279Z","dependency_job_id":null,"html_url":"https://github.com/OS2web/os2web_simplesaml","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.2666666666666667,"last_synced_commit":"968a39ecfacfcb5bfb04a4ac2d353aa38575506e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/OS2web/os2web_simplesaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_simplesaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_simplesaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_simplesaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_simplesaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OS2web","download_url":"https://codeload.github.com/OS2web/os2web_simplesaml/tar.gz/refs/heads/8.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_simplesaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29184977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"online","status_checked_at":"2026-02-07T02:00:07.217Z","response_time":63,"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":[],"created_at":"2024-11-17T03:14:21.219Z","updated_at":"2026-02-07T02:01:19.966Z","avatar_url":"https://github.com/OS2web.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OS2Web SimpleSAML Drupal module  [![Build Status](https://travis-ci.org/OS2web/os2web_simplesaml.svg?branch=8.x)](https://travis-ci.org/OS2web/os2web_simplesaml)\n\n## Module purpose\n\nThe aim of this module is to enhance integration with **simplesamlphp_auth** module, by force triggering **SimpleSAML auth page** redirect when certain criteria are met.\n\n## How does it work\n\nModule performs checks on a single redirect triggering page. In order for it to work the cache for anonymous user for that page response is programmatically killed.\n\nThe redirect check cannot be done on all pages. Reason for that is the performance. The redirect only works properly when page response cache is killed (otherwise response is cached for all anonymous users), so in order for it to work on all pages anonymous page response caches must be killed (which is the same as disabling page cache entirely).\n\nAs a compromise between the functionality and performance it has been decided to use a single page to trigger redirect check.\n\nIf the request passes all the criteria (meaning user is anonymous and the IP is within whitelist), request is redirected to **SimpleSAML auth page**.\n\nTo improve the performance, the redirect decision is stored in cookies to a limited time.\n\nAdditionally module provides a special field for user entity, called **SimpleSAML UID** that allows to create a **SimpleSAML mapping** with the existing Drupal users.\n\n## Additional setings\n\n### Local authentication\nPath: `/admin/config/people/simplesamlphp_auth/local`\n- **IP's whitelist**\nComma separate values of IP or IP ranges that will be redirected to SimpleSAML auth page.\n- **Redirect triggering page**\nA certain page that triggers the redirect to SimpleSAML auth page if the criteria pass (_defaults: front page \"/\"_).\n- **Cookies TTL**\nStores the redirect response in the cookies for a certain period of time (_defaults: 5min_).\n\n### User info and syncing\nPath: `/admin/config/people/simplesamlphp_auth/sync`\n- **OS2Web user fields mapping** Allows to create mapping between SimpleSAML claims and user profile fields.\nUpon login user fields will be populated using specified SimpleSAML claims.\n\n    Each field mapping also supports param **Force sync on every login**. Having it *OFF* will only populate the field from claim if the field is empty, having this param *ON* will make field to be populated each time user has logged in.\n\n## Install\n\nModule is available to download via composer.\n```\ncomposer require os2web/os2web_simplesaml\ndrush en os2web_simplesaml\n```\n\n## Update\nUpdating process for OS2Web SimpleSAML module is similar to usual Drupal 8 module.\nUse Composer's built-in command for listing packages that have updates available:\n\n```\ncomposer outdated os2web/os2web_simplesaml\n```\n\n## Automated testing and code quality\nSee [OS2Web testing and CI information](https://github.com/OS2Web/docs#testing-and-ci)\n\n## Contribution\n\nProject is opened for new features and os course bugfixes.\nIf you have any suggestion or you found a bug in project, you are very welcome\nto create an issue in github repository issue tracker.\nFor issue description there is expected that you will provide clear and\nsufficient information about your feature request or bug report.\n\n### Code review policy\nSee [OS2Web code review policy](https://github.com/OS2Web/docs#code-review)\n\n### Git name convention\nSee [OS2Web git name convention](https://github.com/OS2Web/docs#git-guideline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos2web%2Fos2web_simplesaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fos2web%2Fos2web_simplesaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos2web%2Fos2web_simplesaml/lists"}