{"id":18360827,"url":"https://github.com/unb-libraries/docker-simplesamlphp","last_synced_at":"2025-04-10T03:37:58.932Z","repository":{"id":164091616,"uuid":"639547469","full_name":"unb-libraries/docker-simplesamlphp","owner":"unb-libraries","description":"An image to test SAML authentication locally.","archived":false,"fork":false,"pushed_at":"2024-02-12T16:02:50.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"1.x","last_synced_at":"2025-02-15T18:53:28.311Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unb-libraries.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-11T17:24:11.000Z","updated_at":"2023-05-11T17:47:39.000Z","dependencies_parsed_at":"2024-11-05T22:33:29.599Z","dependency_job_id":"af21089a-e286-4085-8284-7ce8ca377243","html_url":"https://github.com/unb-libraries/docker-simplesamlphp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdocker-simplesamlphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdocker-simplesamlphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdocker-simplesamlphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdocker-simplesamlphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unb-libraries","download_url":"https://codeload.github.com/unb-libraries/docker-simplesamlphp/tar.gz/refs/heads/1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154012,"owners_count":21056534,"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":[],"created_at":"2024-11-05T22:29:55.489Z","updated_at":"2025-04-10T03:37:58.911Z","avatar_url":"https://github.com/unb-libraries.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unb-libraries/docker-simplesamlphp\nA Docker image to add local SAML authentication to your _Docker Compose_ project, based on SimpleSAMLPHP.\n\n## Usage\nAdd the following to your ```docker-compose.yml``` file:\n\n```yml\nservices:\n  # ...\n\n  idp-myproject-lib-unb-ca:\n    image: ghcr.io/unb-libraries/simplesamlphp\n    container_name: idp.myproject.lib.unb.ca\n    restart: unless-stopped\n    env_file:\n      - ./env/saml.env\n    networks:\n      - unbgeology.lib.unb.ca\n    ports:\n      - 8080:8080\n      - 8443:8443\n```\n\nProvide the following environment variables, e.g. in a ```.env``` (filename must match the file you reference in above snippet):\n\n```sh\n# A unique identifier of your local Service Provider (SP)\nSIMPLESAMLPHP_SP_ENTITY_ID='localhost'\n\n# Callback URL after successful SAML authentication\nSIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE='http://localhost:3000/login/saml'\n\n# (optional) Use a different set of users. Refer to build/config/users for available options.\nSIMPLESAMLPHP_USERSET='unb'\n```\nEdit variable values, e.g. port numbers, paths, accordingly to your project's needs.\n\nFinally, rebuild your docker project.\n\n### Users\nThe image comes with 12 sample UNB users, distributed into \"members\", \"staff\", \"faculty\", \"student\", and \"stu\" groups. Every user login follows a ```\u003cusername\u003e:\u003cusername\u003epass``` schema.\n\n| UID   | First Name | Last Name | Groups                 |\n|-------|------------|-----------|------------------------|\n| jdoe  | Jane       | Doe       | members, staff         |\n| msmi  | Michael    | Smith     | members, staff         |\n| awil  | Alice      | Wilson    | members, staff         |\n| brob  | Brian      | Robinson  | members, staff         |\n| egra  | Emily      | Grant     | members, staff         |\n| jcru  | Jessica    | Cruz      | members, faculty       |\n| brod  | Benjamin   | Rodriguez | members, staff         |\n| fmar  | Fiona      | Martin    | members, faculty       |\n| mwan  | Michelle   | Wang      | members, staff         |\n| kpat  | Kyle       | Patterson | members, student       |\n| nbak  | Natalie    | Baker     | members, staff         |\n| jpar  | Jessica    | Park      | stu                    |\n\n\n## Test\nVerify that your local SAML IDP service is setup and configured correctly:\n- visit [http://localhost:3000/simplesaml/module.php/core/authenticate.php](http://localhost:3000/simplesaml/module.php/core/authenticate.php)\n- click on _\"example-userpass\"_\n- login as a user from your chosen userset\n\n## License\n- As part of our 'open' ethos, UNB Libraries licenses its applications and workflows to be freely available to all whenever possible.\n- Consequently, the contents of this repository [unb-libraries/docker-drupal] are licensed under the [MIT License](http://opensource.org/licenses/mit-license.html). This license explicitly excludes:\n  - Any website content, which remains the exclusive property of its author(s).\n  - The UNB logo and any of the associated suite of visual identity assets, which remains the exclusive property of the University of New Brunswick.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funb-libraries%2Fdocker-simplesamlphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funb-libraries%2Fdocker-simplesamlphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funb-libraries%2Fdocker-simplesamlphp/lists"}